landscapelaser


Namelandscapelaser JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryA library to calculate sharpness value of loss-landscapes
upload_time2022-12-25 19:51:30
maintainer
docs_urlNone
authorSaksham Bassi
requires_python
licenseMIT License
keywords loss-landscapes sharpness nlp machinelearning
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # landscapelaser


### Implementation of the [landscapelaser](https://pypi.org/project/landscapelaser/) PyPi package.


Calculates sharpness of the loss landscape of a model. 

## Use
To use the package, do:

```
from landscapelaser import LandscapeLaser
ll = LandscapeLaser()

import numpy as np
arr = np.random.random((20,20))

sharpness, mean_loss = ll.calculate(values=arr)
print(
    f'The sharpness measure of the loss landscape is `{sharpness}`'
    f' with mean loss over the landscape equal to `{mean_loss}`'
)
```

Here, arr is a 2d numpy array containing the loss values in the landscape. To calculate this, refer to [loss-landscapes package](https://pypi.org/project/loss-landscapes/0.1.1/).


## Installation
The package is available on PyPI. Install using:

`pip install landscapelaser`

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "landscapelaser",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "loss-landscapes,sharpness,nlp,machinelearning",
    "author": "Saksham Bassi",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/ab/b8/1b2af57dadabe5fe41cabf0b126df13d888b7b02df5e43f55f849f0a518d/landscapelaser-0.1.1.tar.gz",
    "platform": null,
    "description": "# landscapelaser\n\n\n### Implementation of the [landscapelaser](https://pypi.org/project/landscapelaser/) PyPi package.\n\n\nCalculates sharpness of the loss landscape of a model. \n\n## Use\nTo use the package, do:\n\n```\nfrom landscapelaser import LandscapeLaser\nll = LandscapeLaser()\n\nimport numpy as np\narr = np.random.random((20,20))\n\nsharpness, mean_loss = ll.calculate(values=arr)\nprint(\n    f'The sharpness measure of the loss landscape is `{sharpness}`'\n    f' with mean loss over the landscape equal to `{mean_loss}`'\n)\n```\n\nHere, arr is a 2d numpy array containing the loss values in the landscape. To calculate this, refer to [loss-landscapes package](https://pypi.org/project/loss-landscapes/0.1.1/).\n\n\n## Installation\nThe package is available on PyPI. Install using:\n\n`pip install landscapelaser`\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A library to calculate sharpness value of loss-landscapes",
    "version": "0.1.1",
    "split_keywords": [
        "loss-landscapes",
        "sharpness",
        "nlp",
        "machinelearning"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "4052a9e60f363b21356c212af739a920",
                "sha256": "a53a88f37cc570aca19a8b3a5cbba39e61d307fdcb897df928f38a4bca4c076f"
            },
            "downloads": -1,
            "filename": "landscapelaser-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4052a9e60f363b21356c212af739a920",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4013,
            "upload_time": "2022-12-25T19:51:30",
            "upload_time_iso_8601": "2022-12-25T19:51:30.041106Z",
            "url": "https://files.pythonhosted.org/packages/ab/b8/1b2af57dadabe5fe41cabf0b126df13d888b7b02df5e43f55f849f0a518d/landscapelaser-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-25 19:51:30",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "landscapelaser"
}
        
Elapsed time: 0.07591s