Skip to content

RadwaElShawi/Auto-Machine-Learning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartML:

Curently, SmartML is an R-Package representing a meta learning-based framework for automated selection and hyperparameter tuning for machine learning algorithms. Being meta-learning based, the framework is able to simulate the role of the machine learning expert. In particular, the framework is equipped with a continuously updated knowledge base that stores information about the meta-features of all processed datasets along with the associated performance of the different classifiers and their tuned parameters. Thus, for any new dataset, SmartML automatically extracts its meta features and searches its knowledge base for the best performing algorithm to start its optimization process. In addition, SmartML makes use of the new runs to continuously enrich its knowledge base to improve its performance and robustness for future runs.


Contribution and Goals:

The goal of SmartML is to automate the process of classifier algorithm selection, and hyper-parameter tuning in supervised machine learning using a modified version of SMAC bayesian optimization that prefers explitation more than exploration thanks to Meta-Learning.

  1. SmartML is the first R package to deal with the sueprvised machine learning automation, and it is built over 16 different classifier algorithms from different R packages.
  2. In addition, we offer different data preprocessing, and feature engineering algorithms that can be specified by user and applied on tabular datasets of either CSV or ARFF extensions easily.
  3. SmartML has a collaborative knowledge base that grows by time as more users are using our tool.
  4. Finally, SmartML has the ability to do some model interpretability plots for feature importance and interaction by help of iml package for ML model interpretability.
  5. SmartML has a web service for the tool with a simple R Shiny interface that can be found HERE , and demonstration for how to use the web service can be found HERE.

Installation

You can install the released version of SmartML from Github with:

install_github("DataSystemsGroupUT/Auto-Machine-Learning")

User Manual

Manual for the SmartML R package can be found HERE


Example

This is a basic example which shows you how to run SmartML simply:

#' Option 2 = Classifier Selection Only
result1 <- autoRLearn(1, 'sampleDatasets/car/train.arff', 'sampleDatasets/car/test.arff', option = 2, preProcessF = 'normalize', nModels = 2) #option 2 runs for Classifier Algorithm Selection Only
result1$clfs  #Vector of recommended nModels classifiers
result1$params #Vector of initial suggested parameter configurations of nModels classifiers
#' Option 1 = Both Classifier Selection and Parameter Optimization
result2 <- autoRLearn(10, 'sampleDatasets/shuttle/train.arff', 'sampleDatasets/shuttle/test.arff', interp = 1) # Option 1 runs for both classifier algorithm selection and parameter tuning for 10 minutes.
result2$clfs #best classifier found
result2$params #parameter configuration for best classifier
result2$perf #performance of chosen classifier on testing set
library(ggplot2)
print(plot(result2$interp$featImp)) #Feature Importance Plot


Publication

SmartML has been accepted as a DEMO paper at EDBT 19 in Lisbon Portugal [PDF]:

Mohamed Maher, Sherif Sakr.,SMARTML: A Meta Learning-Based Framework for Automated Selection and Hyperparameter Tuning for Machine Learning Algorithms (2019). Advances in Database Technology-EDBT 2019: 22nd International Conference on Extending Database Technology, Lisbon, Portugal, March 26-29.

About

SmartML: Supervised Machine Learning Automation in R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%