OptimalFlow is an Omni-ensemble Automated Machine Learning toolkit to help data scientists building optimal models in easy way, and automate Machine Learning workflow with simple code.
Project description
OptimalFlow
Author: Tony Dong
OptimalFlow is an Omni-ensemble Automated Machine Learning toolkit, which is based on Pipeline Cluster Traversal Experiment approach, to help data scientists building optimal models in easy way, and automate Supervised Learning workflow with simple codes.
In the latest version(0.1.10), it added a "no-code" Web App, based on flask framework, as OptimalFlow's GUI. Users could build Automated Machine Learning workflow all by clicks, without any coding at all! (Read more details https://optimal-flow.readthedocs.io/en/latest/webapp.html)
Comparing other popular "AutoML or Automated Machine Learning" APIs, OptimalFlow is designed as an omni-ensembled ML workflow optimizer with higher-level API targeting to avoid manual repetitive train-along-evaluate experiments in general pipeline building.
To achieve that, OptimalFlow applies Pipeline Cluster Traversal Experiments algorithm to assemble all cross-matching pipelines covering major tasks of Machine Learning workflow, and apply traversal-experiment to search the optimal baseline model.
Besides, by modularizing all key pipeline components in reuseable packages, it allows all components to be custom tunable along with high scalability.
The core concept in OptimalFlow is Pipeline Cluster Traversal Experiments, which is a theory, first raised by Tony Dong during Genpact 2020 GVector Conference, to optimize and automate Machine Learning Workflow using ensemble pipelines algorithm.
Comparing other automated or classic machine learning workflow's repetitive experiments using single pipeline, Pipeline Cluster Traversal Experiments is more powerful, with larger coverage scope, to find the best model without manual intervention, and also more flexible with elasticity to cope with unseen data due to its ensemble designs in each component.
In summary, OptimalFlow shares a few useful properties for data scientists:
-
Easy & less coding - High-level APIs to implement Pipeline Cluster Traversal Experiments, and each ML component is highly automated and modularized;
-
Well ensembled - Each key component is ensemble of popular algorithms w/ optimal hyperparameters tuning included;
-
Omni-Coverage - Using Pipeline Cluster Traversal Experiments, to cross-experiment with combined permutated input datasets, feature selection, and model selection;
-
Scalable - Each module could add new algorithms easily due to its ensemble and reuseable coding design;
-
Adaptable - Pipeline Cluster Traversal Experiments makes it easier to adapt unseen datasets with the right pipeline;
-
Custom Modify Welcomed - Support custom settings to add/remove algorithms or modify hyperparameters for elastic requirements.
Documentation: https://Optimal-Flow.readthedocs.io/
Installation
pip install OptimalFlow
Core Modules:
- autoPP for feature preprocessing
- autoFS for classification/regression features selection
- autoCV for classification/regression model selection and evaluation
- autoPipe for Pipeline Cluster Traversal Experiments
- autoViz for pipeline cluster visualization. Current available: Model retrieval diagram
- autoFlow for logging & tracking.
Notebook Demo:
An End-to-End OptimalFlow Automated Machine Learning Tutorial with Real Projects
Other Stories:
-
Ensemble Feature Selection in Machine Learning using OptimalFlow - Easy Way with Simple Code to Select top Features: https://towardsdatascience.com/ensemble-feature-selection-in-machine-learning-by-optimalflow-49f6ee0d52eb
-
Ensemble Model Selection & Evaluation in Machine Learning using OptimalFlow - Easy Way with Simple Code to Select the Optimal Model: https://towardsdatascience.com/ensemble-model-selection-evaluation-in-machine-learning-by-optimalflow-9e5126308f12
-
Build No-code Automated Machine Learning Model with OptimalFlow Web App: https://towardsdatascience.com/build-no-code-automated-machine-learning-model-with-optimalflow-web-app-8acaad8262b1
Support OptimalFlow
If you like OptimalFlow, please consider starring or forking it on GitHub and spreading the word!
Please, Avoid Selling this Work as Yours
Voice from the Author: I am glad if you find OptimalFlow useful and helpful. Feel free to add it to your project and let more people know how good it is. But please avoid simply changing the name and selling it as your work. That's not why I'm sharing the source code, at all. All copyrights reserved by Tony Dong following MIT license.
License:
MIT
Updates History:
Updates on 9/29/2020
- Added SearchinSpace settings page in Web App. Users could custom set estimators/regressors' parameters for optimal tuning outputs.
- Modified some layouts of existing pages in Web App.
Updates on 9/16/2020
- Created a Web App based on flask framework as OptimalFlow's GUI, to build PCTE Automated Machine Learning by simply clicks without any coding at all!
- Web App included PCTE workflow bulder, LogsViewer, Visualization, Documentation sections.
- Fix the filename issues in autoViz module, and remove auto_open function when generating new html format plots.
Updates on 8/31/2020
- Modify autoPP's default_parameters: Remove "None" in "scaler", modify "sparsity" : [0.50], modify "cols" : [100]
- Modify autoViz clf_table_report()'s coloring settings
- Fix bugs in autoViz reg_table_report()'s gradient coloring function
Updates on 8/28/2020
- Remove evaluate_model() function's round() bugs in coping with classification problem
- Move out SVM based algorithm from fastClassifier & fastRegressor's default estimators settings
- Move out SVM based algorithm from autoFS class's default selectors settings
Updates on 8/26/2020
- Fix evaluate_model() function's bugs in coping with regression problem
- Add reg_table_report() function to create dynamic table report for regression problem in autoViz
Updates on 8/24/2020
- Fix evaluate_model() function's precision_score issue when running modelmulti-class classification problems
- Add custom_selectors args for customized algorithm settings with autoFS's 2 classes(dynaFS_reg, dynaFS_clf)
Updates on 8/20/2020
- Add Dynamic Table for Pipeline Cluster Model Evaluation Report in autoViz module
- Add custom_estimators args for customized algorithm settings with autoCV's 4 classes(dynaClassifier,dynaRegressor,fastClassifier, and fastRegressor)
Updates on 8/14/2020
- Add fastClassifier, and fastRegressor class which are both random parameter search based
- Modify the display settings when using dynaClassifier in non in_pipeline mode
Updates on 8/10/2020
- Stable 0.1.0 version release on Pypi
Updates on 8/7/2020
- Add estimators: HuberRegressor, RidgeCV, LassoCV, SGDRegressor, and HistGradientBoostingRegressor
- Modify parameters.json, and reset_parameters.json for the added estimators
- Add autoViz for classification problem model retrieval diagram
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for optimalflow-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 366a697d712a1092f054cafab6d7d8162af4ab794dafc404b404cb406814d9cb |
|
MD5 | c3ee335b3d7bfda65711846330767ea0 |
|
BLAKE2b-256 | 4c5c9f0eedbb57adca19603be13e62f29154a976d6247be50f193f208f964837 |