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 | |
|---|---|---|---|
| landslideml-1.0.1.tar.gz | 18.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| landslideml-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
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
|