Machine Learning based Species Distribution Modeling Library for Python > 3.6
Project description
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlsdm-0.1.0.tar.gz.
File metadata
- Download URL: mlsdm-0.1.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14bb6820067dfea441cc10bec7dfff6b6bbc9f65330c82c1095dcb7133bb60b9
|
|
| MD5 |
fc624a762f97f3c03647d231fd740db8
|
|
| BLAKE2b-256 |
774abf9d2da095f5735b165943645326fad31b944bae729a7233685f798fe488
|
File details
Details for the file mlsdm-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mlsdm-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
881ff8a24013958edcbdb10a6fc6938b5dd261b7a481e4ec8c4ecd24ef72acd6
|
|
| MD5 |
b3e0d7804b972c968678339623a36674
|
|
| BLAKE2b-256 |
bb54f359cd4fbe8e7a7f2dd679d2948e8b0e8b20b453c41614a56c5e9cb5c952
|