MLwrap0.3.0 package

Machine Learning Modelling for Everyone

build_model

Create ML Model

fine_tuning

Fine Tune ML Model

pipe

Pipe operator

plot_ale

Plot Accumulated Local Effects (ALE)

plot_calibration_curve

Plotting Calibration Curve

plot_confusion_matrix

Plotting Confusion Matrix

plot_distribution_by_class

Plotting Output Distribution By Class

plot_gain_curve

Plotting Gain Curve

plot_graph_nn

Plot Neural Network Architecture

plot_integrated_gradients

Plotting Integrated Gradients Plots

plot_lift_curve

Plotting Lift Curve

plot_loss_curve

Plot Neural Network Loss Curve

plot_olden

Plotting Olden Values Barplot

plot_pdp

Plot Partial Dependence (PDP)

plot_pfi

Plotting Permutation Feature Importance Barplot

plot_pr_curve

Plotting Precision-Recall Curve

plot_residuals_distribution

Plotting Residuals Distribution

plot_roc_curve

Plotting ROC Curve

plot_scatter_predictions

Plotting Observed vs Predictions

plot_scatter_residuals

Plotting Residuals vs Predictions

plot_shap

Plotting SHAP Plots

plot_sobol_jansen

Plotting Sobol-Jansen Values Barplot

plot_tuning_results

Plotting Tuner Search Results

preprocessing

Preprocessing Data Matrix

sensitivity_analysis

Perform Sensitivity Analysis and Interpretable ML methods

table_best_hyperparameters

Best Hyperparameters Configuration

table_evaluation_results

Evaluation Results

table_h2_total

Friedman's H-Statistic Table

table_integrated_gradients_results

Integrated Gradients Summarized Results Table

table_olden_results

Olden Results Table

table_pairwise_interaction

Friedman's H-Statistic Pairwise Interaction Table

table_pfi_results

Permutation Feature Importance Results Table

table_shap_results

SHAP Summarized Results Table

table_sobol_jansen_results

Sobol-Jansen Results Table

tutorial

MLwrap Comprehensive Tutorial

A minimal library specifically designed to make the estimation of Machine Learning (ML) techniques as easy and accessible as possible, particularly within the framework of the Knowledge Discovery in Databases (KDD) process in data mining. The package provides essential tools to structure and execute each stage of a predictive or classification modeling workflow, aligning closely with the fundamental steps of the KDD methodology, from data selection and preparation, through model building and tuning, to the interpretation and evaluation of results using Sensitivity Analysis. The 'MLwrap' workflow is organized into four core steps; preprocessing(), build_model(), fine_tuning(), and sensitivity_analysis(). It also includes global and pairwise interaction analysis based on Friedman’s H-statistic to support a more detailed interpretation of complex feature relationships.These steps correspond, respectively, to data preparation and transformation, model construction, hyperparameter optimization, and sensitivity analysis. The user can access comprehensive model evaluation results including fit assessment metrics, plots, predictions, and performance diagnostics for ML models implemented through 'Neural Networks', 'Random Forest', 'XGBoost' (Extreme Gradient Boosting), and 'Support Vector Machines' (SVM) algorithms. By streamlining these phases, 'MLwrap' aims to simplify the implementation of ML techniques, allowing analysts and data scientists to focus on extracting actionable insights and meaningful patterns from large datasets, in line with the objectives of the KDD process.

  • Maintainer: Albert Sesé
  • License: GPL-3
  • Last published: 2025-12-15