Skip to main content

mlsdm: Machine Learning based Species Distribution Modeling Library for Python > 3.6

mlsdm is a Python library for species distribution modeling (SDM) using machine learning and geospatial data processing. It provides tools for handling raster data, generating pseudo-absence points, training machine learning models, and visualizing results, making it ideal for ecological niche research and modeling. More information can be found in the Vignette document. An example use case with code and context can be found in the example notebook.

Capabilities

  • Raster Processing: Clip rasters to presence extents, stack rasters, and convert to DataFrames.
  • Pseudo-Absence Sampling: Generate pseudo-absence points using PCA+KDE or random sampling methods.
  • Machine Learning: Train and evaluate ensemble SDModels (RandomForest, ExtraTrees, XGBoost, LightGBM).
  • Hypertuning: Hypertune each individual model
  • Visualization: Plot rasters, partial dependence plots, and presence vs. pseudo-absence points.
  • Feature Analysis: Analyze feature importance and perform recursive feature elimination (RFE) with Cross-validation (CV).
mlsdm/
├── mlsdm/
│   ├── __init__.py
│   └── mlsdm.py
├── tests/
│   ├── __init__.py
│   └── test_mylibrary.py
├── example/
│   ├── example.ipynb
│   └── example_data/
|       |── raw_current_rasters/
|       |── raw_future_rasters/
|       |── presence/
|       |── outputs/     
├── README.md
├── Vignette.md
├── setup.py
├── LICENSE
└── requirements.txt

Installation

pip install -r requirements.txt
pip install mlsdm

OR

git clone https://github.com/yourusername/sdmtools.git
cd sdmtools
pip install .

Dependencies

requirements.txt

pip install -r requirements.txt
sudo apt-get install libgdal-dev #in case of error

Testing

python -m unittest discover tests

Contact

For questions or issues, please open an issue on the GitHub repository. For other enquires contact EpiPandit Lab at UC Davis

Metadata

Release files for mlsdm 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlsdm 0.1.0
File Size Uploaded Provenance
mlsdm-0.1.0.tar.gz 11.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mlsdm 0.1.0
File Interpreter ABI Platform
mlsdm-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.5 kB

Release files / mlsdm-0.1.0.tar.gz

Download URL mlsdm-0.1.0.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
14bb6820067dfea441cc10bec7dfff6b6bbc9f65330c82c1095dcb7133bb60b9
BLAKE2b-256 checksum
How to use checksums
774abf9d2da095f5735b165943645326fad31b944bae729a7233685f798fe488
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release files / mlsdm-0.1.0-py3-none-any.whl

Download URL mlsdm-0.1.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
881ff8a24013958edcbdb10a6fc6938b5dd261b7a481e4ec8c4ecd24ef72acd6
BLAKE2b-256 checksum
How to use checksums
bb54f359cd4fbe8e7a7f2dd679d2948e8b0e8b20b453c41614a56c5e9cb5c952
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Security for mlsdm 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page