Fully automated end to end machine learning pipeline
Project description
Amplo - AutoML (for Machine Data)
Welcome to the Automated Machine Learning package amplo
. Amplo's AutoML is designed specifically for machine data and
works very well with tabular time series data (especially unbalanced classification!).
Though this is a standalone Python package, Amplo's AutoML is also available on Amplo's Smart Maintenance Platform. With a graphical user interface and various data connectors, it is the ideal place for service engineers to get started on Predictive.
Amplo's AutoML Pipeline contains the entire Machine Learning development cycle, including exploratory data analysis, data cleaning, feature extraction, feature selection, model selection, hyperparameter optimization, stacking, version control, production-ready models and documentation. It comes with additional tools such as interval analysers, drift detectors, data quality checks, etc.
Downloading Amplo
The easiest way is to install our Python package through PyPi:
pip install amplo
2. Usage
Usage is very simple with Amplo's AutoML Pipeline.
from amplo import Pipeline
from sklearn.datasets import make_classification
from sklearn.datasets import make_regression
x, y = make_classification()
pipeline = Pipeline()
pipeline.fit(x, y)
yp = pipeline.predict_proba(x)
x, y = make_regression()
pipeline = Pipeline()
pipeline.fit(x, y)
yp = pipeline.predict(x)
3. Amplo AutoML Features
Interval Analyser
from amplo.automl import IntervalAnalyser
Interval Analyser for Log file classification. When log files have to be classified, and there is not enough data for time series methods (such as LSTMs, ROCKET or Weasel, Boss, etc.), one needs to fall back to classical machine learning models which work better with lower samples. This raises the problem of which samples to classify. You shouldn't just simply classify on every sample and accumulate, that may greatly disrupt classification performance. Therefore, we introduce this interval analyser. By using an approximate K-Nearest Neighbors algorithm, one can estimate the strength of correlation for every sample inside a log. Using this allows for better interval selection for classical machine learning models.
To use this interval analyser, make sure that your logs are located in a folder of their class, with one parent folder with all classes, e.g.:
+-- Parent Folder
| +-- Class_1
| +-- Log_1.*
| +-- Log_2.*
| +-- Class_2
| +-- Log_3.*
Exploratory Data Analysis
from amplo.automl import DataExplorer
Automated Exploratory Data Analysis. Covers binary classification and regression. It generates:
- Missing Values Plot
- Line Plots of all features
- Box plots of all features
- Co-linearity Plot
- SHAP Values
- Random Forest Feature Importance
- Predictive Power Score
Additional plots for Regression:
- Seasonality Plots
- Differentiated Variance Plot
- Auto Correlation Function Plot
- Partial Auto Correlation Function Plot
- Cross Correlation Function Plot
- Scatter Plots
Data Processing
from amplo.automl import DataProcessor
Automated Data Cleaning:
- Infers & converts data types (integer, floats, categorical, datetime)
- Reformats column names
- Removes duplicates columns and rows
- Handles missing values by:
- Removing columns
- Removing rows
- Interpolating
- Filling with zero's
- Removes outliers using:
- Clipping
- Z-score
- Quantiles
- Removes constant columns
Data Sampler
from amplo.automl import DataSampler
This pipeline is designed to handle unbalanced classification problems. Aside weighted loss functions, under sampling the majority class or down sampling the minority class helps. Various algorithms are analysed:
- SMOTE
- Borderline SMOTE
- Random Over Sampler
- Tomek Links
- One Sided Selection
- Random Under Sampler
- Edited Nearest Neighbours
- SMOTE Tomek
- SMOTE Edited Nearest Neighbours
Feature Processing
from amplo.automl import FeatureProcessor
Automatically extracts and selects features. Removes Co-Linear Features. Included Feature Extraction algorithms:
- Multiplicative Features
- Dividing Features
- Additive Features
- Subtractive Features
- Trigonometric Features
- K-Means Features
- Lagged Features
- Differencing Features
- Inverse Features
- Datetime Features
Included Feature Selection algorithms:
- Random Forest Feature Importance (Threshold and Increment)
- Predictive Power Score
Sequencing
from amplo.automl import Sequencer
For time series regression problems, it is often useful to include multiple previous samples instead of just the latest. This class sequences the data, based on which time steps you want included in the in- and output. This is also very useful when working with tensors, as a tensor can be returned which directly fits into a Recurrent Neural Network.
Modelling
from amplo.automl import Modeller
Runs various regression or classification models. Includes:
- Scikit's Linear Model
- Scikit's Random Forest
- Scikit's Bagging
- Scikit's GradientBoosting
- Scikit's HistGradientBoosting
- DMLC's XGBoost
- Catboost's Catboost
- Microsoft's LightGBM
- Stacking Models
Grid Search
from amplo.grid_search import *
Contains three hyperparameter optimizers with extended predefined model parameters:
- Grid Search
- Halving Random Search
- Optuna's Tree-Parzen-Estimator
Automatic Documntation
from amplo.automl import Documenter
Contains a documenter for classification (binary
and multiclass
problems), as well as for regression.
Creates a pdf report for a Pipeline, including metrics, data processing steps, and everything else to recreate the result.
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
File details
Details for the file Amplo-0.15.2.tar.gz
.
File metadata
- Download URL: Amplo-0.15.2.tar.gz
- Upload date:
- Size: 121.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea63bcce50dd480e6457268d8e1f2a069e148c3093d73321bd1c813d7df87955 |
|
MD5 | 29bc442271347d56acc9a94734864e83 |
|
BLAKE2b-256 | 21efaa7c89785a17a1e6def7b4f0da1170e5d12466cd0e1c2304c88ec93e0485 |
File details
Details for the file Amplo-0.15.2-py3-none-any.whl
.
File metadata
- Download URL: Amplo-0.15.2-py3-none-any.whl
- Upload date:
- Size: 160.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 235d0702df4c96b1ef2dd20305e34e23c0f1aad870cfe46bd93c6f3818db8c8e |
|
MD5 | e75f6103fc49f3d0c76a1a3028548c99 |
|
BLAKE2b-256 | cbd0c8cf66613695be588eec0bc759faffba76e909196904d85775ba84f9284e |