Skip to main content

A package for generation of landslide susceptibility mapping with ML models

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

landslideml-1.0.1.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

landslideml-1.0.1-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file landslideml-1.0.1.tar.gz.

File metadata

  • Download URL: landslideml-1.0.1.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for landslideml-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dc8617fba94ced8ffc1d16f01842175ce57a475d1ea55cc806d733425d684164
MD5 4e81a425dc38c9fb70542ad3ab8a2aeb
BLAKE2b-256 8b3f19e4737e193778fb6699c9b9749d88480a47cb23c26115f6257eebfb2402

See more details on using hashes here.

File details

Details for the file landslideml-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: landslideml-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for landslideml-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 400e9a30fd351b139d51d9f46d9f9c33a7cd398531a3c9fc688c4681c272f1a4
MD5 ba6eb480734404fe233c15f52fc042f5
BLAKE2b-256 9f08c0213ff96677b5604770ed1856d82daaf00b458c09ece2bb9f01aaf551da

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page