landscapelaser
Implementation of the 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.
Installation
The package is available on PyPI. Install using:
pip install landscapelaser
Metadata
Release files for landscapelaser 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| landscapelaser-0.1.1.tar.gz | 4.0 kB | Without provenance | Details for landscapelaser-0.1.1.tar.gz |
Release files / landscapelaser-0.1.1.tar.gz
| Download URL | landscapelaser-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a53a88f37cc570aca19a8b3a5cbba39e61d307fdcb897df928f38a4bca4c076f
|
|
BLAKE2b-256 checksum How to use checksums |
abb81b2af57dadabe5fe41cabf0b126df13d888b7b02df5e43f55f849f0a518d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for landscapelaser 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.