Skip to main content

Highlander project

Project description

Highlander Project

This repository contains all the information for the Machine learning data analyses used in the Highlander project

Dependencies

The following dependencies are required to perform the analysis in Python:

pandas>=1.3.4 
numpy>=1.21.2
scikit-learn>=1.0
h2o>=3.38.0.1

The main functions are grouped into two files:

RFE_module.py
H2O_module.py

Modules and functions

Two modules are required to perform the analyses in the highlander_script/ directory. The RFE_module.py perform a Recursive Feature Elimination reducing the input variables. The user can define the number of features to maintain. The discarded features are the most uninformative and redundant in the dataset. Consequently, this step can reduce the variables, allowing a more precise and quick analysis using the Machine Learning algorithms. It can be considered a feature selection before analyzing the data. The function name is: "RFE_highlander()". The H2O_module.py contains several functions to perform the Machine Learning analyses. In detail:

  • It searches for the best algorithm to perform the prediction; the best algorithm is chosen using a set of different models (best_model)
  • Once the best model is selected, the best hyper-parameters are tuned using a grid search approach (grid_search_gbm)
  • The relative importance of all the variables in the prediction is then evaluated (varimp)
  • The model is then trained and tested, and the accuracy is evaluated using the Mean Absolute Error metric (mae_nf)
  • The subset of the most important variables is identified. This step an be considered a feature selection after the data analysis (varimp)
  • The SHAP algorithm is then used to evaluate the contribution and the explanation of each feature to the classification (shap)
  • The explaination of the model is useful to evaluate the contribution of the feature to the model (explain_model)

Tutorial

The whole pipeline to perform and end-to-end data analysis is reported as a Python notebook file ("Highlander_ML_notebook.ipynb") in the "Notebook" directory.

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

HighlanderML-1.0.1.1.8.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

HighlanderML-1.0.1.1.8-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file HighlanderML-1.0.1.1.8.tar.gz.

File metadata

  • Download URL: HighlanderML-1.0.1.1.8.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for HighlanderML-1.0.1.1.8.tar.gz
Algorithm Hash digest
SHA256 cbbb399fbaac2ed744ec372f639f58454bc088903e7c92bbd1365429241b85d0
MD5 830e9d3b02844028e41a8a463dc9b059
BLAKE2b-256 bb4e0588927df3d59f474c8914a3814cc3bb0fbb8285a06abdd482efd9a94803

See more details on using hashes here.

File details

Details for the file HighlanderML-1.0.1.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for HighlanderML-1.0.1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 25b6cb43e378c9c88cb4fb158fbc998189b67a356034e8150a638bbe505138e6
MD5 78b480b9030038ad5525004fe5e264ed
BLAKE2b-256 e225252e7dfa5c1a9d32d778cf416cdedaf26b07a20e94e0b8afc5635ba82bfe

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