LandslideML
About
'LandslideML' is a Python package designed to generate landslide susceptibility map using machine learning models present in the scikit-learn toolbox. It is capable of:
- Creating a Classifier Machine Learning Model amongst tested types (Random Forest, SVM or GBM)
- Training and validating such models with scikit-learn
- Predicting the label values for a given dataset and mapping to a dataframe
- Plotting the resulting structure into a 2D map
Features
- Read and preprocess datasets for landslide susceptibility analysis.
- Train multiple machine learning models including SVM, Logistic Regression, K-Nearest Neighbors, Decision Trees, Gradient Boosting, and Neural Networks.
- Generate and save susceptibility maps.
Installation
Dependencies
Ensure you have the required dependencies installed, which are listed in requirements.txt. You can install them using:
pip install -r requirements.txt
User installation
To install the library, you can use the 'pip' command:
pip install landslideml
Folder structure
landslideml ├─── README.md ├─── LICENSE ├─── NOTES.md ├─── examples │ ├─── workflow_comparison_models.py │ ├─── workflow_gbm.py │ ├─── workflow_random_forest.py │ └─── workflow_svm.py ├─── landslideml │ ├─── init.py │ ├─── config.py │ ├─── model.py │ ├─── output.py │ └─── reader.py ├─── pyproject.toml ├─── requirements.txt ├─── setup.py ├─── testcase_data │ ├─── prediction.nc │ ├─── sample_prediction.nc │ ├─── shapefile.shp │ ├─── shapefile.shx │ └─── training.csv ├─── tests │ ├─── test_gbm_workflow.py │ ├─── test_model_evaluate_model.py │ ├─── test_model_mapping.py │ ├─── test_model_predict.py │ ├─── test_model_save_model.py │ ├─── test_model_setup.py │ ├─── test_output_compare_features.py │ ├─── test_output_heatmap.py │ ├─── test_output_plot_map.py │ ├─── test_reader_generate_model.py │ ├─── test_reader_load_model.py │ └─── test_svm_workflow.py
Examples
Some usage examples of the library can be found in the examples folder
License
This software is distributed under the MIT License and further information about the license can be found in the LICENSE file
Third-party libraries
The library currently uses the following third-party libraries:
Contributing
The project is in the early development phase. Upon completion and delivery, contributions will be welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.
Metadata
Release files for landslideml 1.0.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 |
|---|---|---|---|---|
| landslideml-1.0.1.tar.gz | 18.3 kB | Without provenance | Details for landslideml-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| landslideml-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for landslideml-1.0.1-py3-none-any.whl |
Total release size: 30.4 kB
Release files / landslideml-1.0.1.tar.gz
| Download URL | landslideml-1.0.1.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc8617fba94ced8ffc1d16f01842175ce57a475d1ea55cc806d733425d684164
|
|
BLAKE2b-256 checksum How to use checksums |
8b3f19e4737e193778fb6699c9b9749d88480a47cb23c26115f6257eebfb2402
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / landslideml-1.0.1-py3-none-any.whl
| Download URL | landslideml-1.0.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
400e9a30fd351b139d51d9f46d9f9c33a7cd398531a3c9fc688c4681c272f1a4
|
|
BLAKE2b-256 checksum How to use checksums |
9f08c0213ff96677b5604770ed1856d82daaf00b458c09ece2bb9f01aaf551da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for landslideml 1.0.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.