sjSDM - Fast and Accurate Joint Species distribution Modeling
Currently we don't provide specifically a API for joint species distribution models. However, it's just a deep multivariate probit model with one layer (example below).
We provide a R package with an API focused on JSDMs which is available here.
References:
Install instructions
Dependencies:
- PyTorch >= 1.7, see PyTorch for install instructions.
pip install sjSDM_py
Example
linear jSDM:
import sjSDM_py as sa
import numpy as np
Env = np.random.randn(100, 5)
Occ = np.random.binomial(1, 0.5, [100, 10])
model = sa.Model_base(5) # input_shape == number of environmental predictors
model.add_layer(sa.layers.Layer_dense(hidden=10)) # number of hidden units in the layer == number of species
model.build(df=5, optimizer=sa.optimizer_adamax(lr=0.1, weight_decay = 0.01)) # df = degree of freedom
model.fit(X = Env, Y = Occ)
print(model.weights_numpy)
print(model.get_cov())
- For species intercept, use 'bias=True' in 'Layer_dense(...)'.
- We recommend setting 'df = number of species / 2.'
Metadata
Release files for sjSDM-py 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 |
|---|---|---|---|---|
| sjSDM_py-0.1.1.tar.gz | 17.8 kB | Without provenance | Details for sjSDM_py-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sjSDM_py-0.1.1-py2-none-any.whl | Python 2 | none | any | Details for sjSDM_py-0.1.1-py2-none-any.whl |
Total release size: 53.1 kB
Release files / sjSDM_py-0.1.1.tar.gz
| Download URL | sjSDM_py-0.1.1.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06f6b5b98f412cec4309da6f55f2dabefb1213034f04332b97056cd3f22ce226
|
|
BLAKE2b-256 checksum How to use checksums |
541406cc4a214f78046e311e26935827da11901efdbcf921e58a8ac485fca395
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13
|
Release files / sjSDM_py-0.1.1-py2-none-any.whl
| Download URL | sjSDM_py-0.1.1-py2-none-any.whl |
|---|---|
| Size | 35.4 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
b1a24dc3a453f593dc157ce284396b92ae647f296d9089cc5f19492d4c81f649
|
|
BLAKE2b-256 checksum How to use checksums |
49abbbbed2d7823340398e19e80f4d0e8ed986018f772431f378b9ab5c46e930
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.13
|
Security for sjSDM-py 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.