| Title: | Automated Multi-Class Stacking Ensembles and Predictive Diagnostics |
|---|---|
| Description: | Automated multi-class classification ensemble pipeline executing concurrent parameter optimizations across logistic, tree, kernel, and neural configurations. Implements dynamic out-of-sample blending, automated feature reduction via iterative Variance Inflation Factors (VIF), and native S3 diagnostic dashboards. |
| Authors: | Russ Conte [aut, cre, cph] |
| Maintainer: | Russ Conte <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 1.1.0 |
| Built: | 2026-10-26 07:01:53 UTC |
| Source: | https://github.com/infinitecuriosity/classificationensembles |
This is the Carseats data as shown in the ISLR package.
CarseatsCarseats
Carseats A simulated data set with 400 observations and 11 rows
Unit sales (in thousands) at each location
Price charged by competitor at each location
Community income level (in thousands of dollars)
Local advertising budget for company at each location (in thousands of dollars)
Population size in region (in thousands)
Price company charges for car seats at each site
A factor with levels Bad, Good and Medium indicating the quality of the shelving location for the car seats at each site
Average age of the local population
A factor with levels No and Yes to indicate whether the store is in an urban or rural location
A factor with levels No and Yes to indicate whether the store is in the US or not
ISLR data set, https://www.rdocumentation.org/packages/ISLR/versions/1.4/topics/Carseats
Comprehensive Multi-Class Classification Ensemble Pipeline Engine
Classification( dataset = NULL, target_col = NULL, palette_style = c("standard", "viridis", "modern"), config = ClassificationEnsemblesConfig(), verbose = TRUE )Classification( dataset = NULL, target_col = NULL, palette_style = c("standard", "viridis", "modern"), config = ClassificationEnsemblesConfig(), verbose = TRUE )
dataset |
A data frame containing the predictors and target variable. |
target_col |
Character string specifying the name of the target categorical variable factor. |
palette_style |
Character choice layout. Visual color scheme for plot vectors: "standard", "viridis", or "modern". |
config |
A pre-configured architecture configuration parameter matrix list from |
verbose |
Logical. If TRUE, logs operational pipeline milestones to console. Default is TRUE. |
An object of class classification_pipeline containing evaluation metrics matrices, models, data dictionaries, and plots.
Configuration Parameters Matrix for Classification Pipeline
ClassificationEnsemblesConfig( cv_folds = 5, train_pct = 0.75, vif_threshold = 5, transform_steps = c("nzv", "medianImpute", "center", "scale"), rf_tune = 5, glmnet_grid = expand.grid(alpha = seq(0, 1, length = 4), lambda = seq(0.001, 0.1, length = 5)), svm_tune_length = 5, nnet_tune_length = 5, tree_tune_length = 5, leverage_threshold = 999 )ClassificationEnsemblesConfig( cv_folds = 5, train_pct = 0.75, vif_threshold = 5, transform_steps = c("nzv", "medianImpute", "center", "scale"), rf_tune = 5, glmnet_grid = expand.grid(alpha = seq(0, 1, length = 4), lambda = seq(0.001, 0.1, length = 5)), svm_tune_length = 5, nnet_tune_length = 5, tree_tune_length = 5, leverage_threshold = 999 )
cv_folds |
Integer. The number of cross-validation folds. Default is 5. |
train_pct |
Numeric. The training data proportion as a decimal between 0 and 1. Default is 0.75. |
vif_threshold |
Numeric. Variance Inflation Factor threshold for filtering multicollinear predictors. Default is 5. |
transform_steps |
Character vector. Preprocessing transforms to pass to caret. Default is c("nzv", "medianImpute", "center", "scale"). |
rf_tune |
Integer. Tuning length parameter for Random Forest/Ranger models. Default is 5. |
glmnet_grid |
Optional custom tuning grid for Elastic Net models. |
svm_tune_length |
Integer. Tuning length parameter for SVM models. Default is 5. |
nnet_tune_length |
Integer. Tuning length parameter for Neural Network models. Default is 5. |
tree_tune_length |
Integer. Tuning length parameter for tree-based models (Rpart, C5.0, gbm). Default is 5. |
leverage_threshold |
Numeric. Outlier removal multiplier relative to mean hatvalues. 999 deactivates filter. Default is 999. |
A structured list containing isolated operational tuning parameters.
Run Fast Validation Classification Demo Suite
ClassificationEnsemblesDemo()ClassificationEnsemblesDemo()
An invisible trained classification_pipeline object run over a standard medical diagnostic set.
Fast-Execution Configuration Matrix for Classification Verification
ClassificationEnsemblesFastConfig()ClassificationEnsemblesFastConfig()
A fast-track parameter subset list optimized for rapid package verification checks.
Posted by John Gennari, 3/13/90, This is Dr. Detrano's database modified to be a real MIXED dataset.
Cleveland_heartCleveland_heart
Cleveland_heart These are the original attributes: Attributes: 8 symbolic, 6 numeric. Age; sex; chest pain type (angina, abnang, notang, asympt) Trestbps (resting blood pres); cholesteral; fasting blood sugar < 120 (true or false); resting ecg (norm, abn, hyper); max heart rate; exercise induced angina (true or false); oldpeak; slope (up, flat, down) number of vessels colored (???); thal (norm, fixed, rever). Finally, the class is either healthy (buff) or with heart-disease (sick).
https://archive-beta.ics.uci.edu/dataset/45/heart+disease/files?path=cleve.mod
The column names were corrected to be usable by R ('Chest_pain_type' instead of 'chest pain type'), removed the '<' symbol from a column name because the '<' symbol causes some errors reading the column names (such as tree models), removed three columns due to very high number of missing cells (noted as '?' in the original file.) Those three columns are 'Number_of_vessels_colored', 'Thal', and 'Resting_ECG'.
Age of the subject
Sex of the subject, either male or female
One of angina, abnang, notang, or asympt
The resting blood pressure for the subject
The patient's cholesterol
Binary, whether the fasting blood sugar is <120
The maximum measured heart rate for the patient
Binary, whether angina was induced due to exercise
Numeric value
Three levels: Down, flat, up
Binary, is the patient sick or buff
0 is healthy, 1,2,3,4 is sick.
A data set of dry beans
Dry_BeansDry_Beans
Dry_Beans
The full data set is on UCI: https://archive.ics.uci.edu/dataset/602/dry+bean+dataset
The area of a bean zone and the number of pixels within its boundaries
Bean circumference is defined as the length of its border
The distance between the ends of the longest line that can be drawn from a bean
The longest line that can be drawn from the bean while standing perpendicular to the main axis
Defines the relationship between MajorAxisLength and MinorAxisLength
Eccentricity of the ellipse having the same moments as the region
Number of pixels in the smallest convex polygon that can contain the area of a bean seed
Equivalent diameter: The diameter of a circle having the same area as a bean seed area
The ratio of the pixels in the bounding box to the bean area
Also known as convexity. The ratio of the pixels in the convex shell to those found in beans.
Calculated with the following formula: (4piA)/(P^2)
Measures the roundness of an object
Continuous value
Continuous value
Continuous value
Continuous value
(Seker, Barbunya, Bombay, Cali, Dermosan, Horoz and Sira)
Load and Decompress Package Pipeline Footprints
load_pipeline(file_path)load_pipeline(file_path)
file_path |
Character path mapping to a serialized rds file. |
A deserialized classification_pipeline object.
Data has been collected from different hospitals, community clinics, maternal health cares from the rural areas of Bangladesh through the IoT based risk monitoring system.
Maternal_Health_RiskMaternal_Health_Risk
Maternal_Health_Risk Age, Systolic Blood Pressure as SystolicBP, Diastolic BP as DiastolicBP, Blood Sugar as BS, Body Temperature as BodyTemp, HeartRate and RiskLevel. All these are the responsible and significant risk factors for maternal mortality, that is one of the main concern of SDG of UN.
https://archive.ics.uci.edu/dataset/602/dry+bean+dataset
Any ages in years when a women during pregnant.
Upper value of Blood Pressure in mmHg, another significant attribute during pregnancy.
Lower value of Blood Pressure in mmHg, another significant attribute during pregnancy.
Blood glucose levels is in terms of a molar concentration
Body temperature in Farenheit
A normal resting heart rate
Predicted Risk Intensity Level during pregnancy considering the previous attribute.
Plot Classification Pipeline Diagnostics Curves Canvas
## S3 method for class 'classification_pipeline' plot(x, pace_output = TRUE, ...)## S3 method for class 'classification_pipeline' plot(x, pace_output = TRUE, ...)
x |
A classification_pipeline object generated by the Classification() engine. |
pace_output |
Logical. If TRUE, paces chart rendering frames via devAskNewPage. Default is TRUE. |
... |
Additional arguments passed to underlying plot methods. |
Evaluates champion architectures against un-indexed datasets, appending classification projection labels and probability assignments.
predict_production(object, newdata)predict_production(object, newdata)
object |
A trained |
newdata |
A data frame containing incoming raw feature data templates. |
Production Prediction Wrapper with Probability Metrics
A data frame matching input dimensions appended with prediction classes and matching row probability matrices for the top 3 models.
Predict with Classification Pipeline Object
## S3 method for class 'classification_pipeline' predict(object, newdata, model_name = "best", type = c("class", "prob"), ...)## S3 method for class 'classification_pipeline' predict(object, newdata, model_name = "best", type = c("class", "prob"), ...)
object |
A trained classification_pipeline asset. |
newdata |
A data frame containing incoming data rows to score. |
model_name |
Character string specifying the target model from the leaderboard to score. Default is "best". |
type |
Character choice layout. Type of prediction to return: "class" for factor labels, "prob" for a probability assignment matrix. Default is "class". |
... |
Additional arguments passed to underlying predict methods. |
A factor vector or numeric probability matrix of classifications.
Print Classification Pipeline Summary Report
## S3 method for class 'classification_pipeline' print(x, ...)## S3 method for class 'classification_pipeline' print(x, ...)
x |
A classification_pipeline object generated by the Classification() engine. |
... |
Additional arguments passed to underlying print methods. |
Compress and Save Trained Classification Pipeline Assets
save_pipeline(object, file_path)save_pipeline(object, file_path)
object |
A trained |
file_path |
Character path mapping where to save the binary output. |
Invisible NULL.