Learn R Programming

⚠️There's a newer version (0.6.1) of this package.Take me there.

fastml: Fast Machine Learning Model Training and Evaluation

fastml is a streamlined R package designed to simplify the training, evaluation, and comparison of multiple machine learning models. It offers comprehensive data preprocessing, supports a wide range of algorithms with hyperparameter tuning, and provides performance metrics alongside visualization tools to facilitate efficient and effective machine learning workflows.

Features

  • Comprehensive Data Preprocessing: Handle missing values, encode categorical variables, and apply various scaling methods with minimal code.
  • Support for Multiple Algorithms: Train a wide array of machine learning models including XGBoost, Random Forest, SVMs, KNN, Neural Networks, and more.
  • Hyperparameter Tuning: Customize and automate hyperparameter tuning for each algorithm to optimize model performance.
  • Performance Evaluation: Evaluate models using metrics like Accuracy, Kappa, Sensitivity, Specificity, Precision, F1 Score, and ROC AUC.
  • Visualization Tools: Generate comparison plots to visualize and compare the performance of different models effortlessly.
  • Easy Integration: Designed to integrate seamlessly into your existing R workflows with intuitive function interfaces.

Installation

From CRAN

You can install the latest stable version of fastml from CRAN using:

install.packages("fastml")

From GitHub

For the development version, install directly from GitHub using the devtools package:

# Install devtools if you haven't already
install.packages("devtools")

# Install fastml from GitHub
devtools::install_github("selcukorkmaz/fastml")

Quick Start

Here's a simple workflow to get you started with fastml:

library(fastml)

# Example dataset
data(iris)
iris <- iris[iris$Species != "setosa", ]  # Binary classification
iris$Species <- factor(iris$Species)

# Train models
model <- fastml(
  data = iris,
  label = "Species"
)

# View model summary
summary(model)

Copy Link

Version

Install

install.packages('fastml')

Monthly Downloads

493

Version

0.2.0

License

GPL (>= 2)

Maintainer

Selcuk Korkmaz

Last Published

November 30th, 2024

Functions in fastml (0.2.0)

predict.fastml_model

Predict Function for fastml_model
define_svm_linear_spec

Define SVM Linear Model Specification
define_random_forest_spec

Define Random Forest Model Specification
summary.fastml_model

Summary Function for fastml_model
define_qda_spec

Define Quadratic Discriminant Analysis Model Specification
save_model

Save Model Function
define_svm_radial_spec

Define SVM Radial Model Specification
define_naive_bayes_spec

Define Naive Bayes Model Specification
define_neural_network_spec

Define Neural Network Model Specification (nnet)
evaluate_models

Evaluate Models Function
define_xgboost_spec

Define XGBoost Model Specification
train_models

Train Specified Machine Learning Algorithms on the Training Data
define_deep_learning_spec

Define Deep Learning Model Specification (keras)
define_c5_0_spec

Define C5.0 Model Specification
define_bagging_spec

Define Bagging Model Specification
define_elastic_net_spec

Define Elastic Net Model Specification
define_decision_tree_spec

Define Decision Tree Model Specification
define_penalized_logistic_regression_spec

Define Penalized Logistic Regression Model Specification
define_lda_spec

Define Linear Discriminant Analysis Model Specification
define_bayes_glm_spec

Define Bayesian GLM Model Specification
define_linear_regression_spec

Define Linear Regression Model Specification
define_logistic_regression_spec

Define Logistic Regression Model Specification
define_ranger_spec

Define Ranger Model Specification
plot.fastml_model

Plot Function for fastml_model
define_pls_spec

Define Partial Least Squares Model Specification
define_lightgbm_spec

Define LightGBM Model Specification
define_lasso_regression_spec

Define Lasso Regression Model Specification
define_knn_spec

Define K-Nearest Neighbors Model Specification
define_ridge_regression_spec

Define Ridge Regression Model Specification
fastml

Fast Machine Learning Function
load_model

Load Model Function