Skip to main content

AMLR - Auto Machine Learning Report

Create a bealtifull Machine Learning Report with One-Line-Code


Main Features:

  • Exploratory Data Analisys
    • Dataset Configuration
      • Shape
      • Detect number of classes (Bernoulli or binary for while)
      • Automatically Duplicate Observations dropped
      • You can drop Duplicate Observations manually as well
      • Exclude automatically features with highest frequencies (Names, IDs, FW keys etc)
    • Regression Analysis
    • Automatic Balance Classes
    • Correlation Analysis
    • Detecting Multicollinearity with VIF
    • Residual Analisys
  • Grid - Hyperparameter optimization
  • Partial dependence plot (PDP)
  • Individual Conditional Expectation (ICE)
  • Variable Importance by Model
  • AML - Partial Dependence
  • Ensemble - (ICE) Individual Condition Expectation
  • Correlation Heatmap by Model
  • Model Performance
    • Analytical Performance Modeling
    • Comparative Metrics Table with:
      • Overall ACC
      • Kappa
      • Overall
      • RACC
      • SOA1(Landis & Koch)
      • SOA1(Fleiss)
      • SOA1(Altman)
      • SOA1(Cicchetti)
      • SOA1(Cramer)
      • SOA1(Matthews)
      • TNR Macro
      • TPR Macro
      • FPR Macro
      • FNR Macro
      • PPV Macro
      • ACC Macro
      • F1 Macro
      • TNR Micro
      • FPR Micro
      • TPR Micro
      • FNR Micro
      • PPV Micro
      • F1 Micro
      • Scott PI
      • Gwet AC1
      • Bennett S
      • Kappa Standard Error
      • Kappa 1% CI
      • Chi-Squared
      • Phi-Squared
      • Cramer V
      • Chi-Squared DF
      • 1% CI
      • Standard Error
      • Response Entropy
      • Reference Entropy
      • Cross Entropy
      • Joint Entropy
      • Conditional Entropy
      • KL Divergence
      • Lambda B
      • Lambda A
      • Kappa Unbiased
      • Overall RACCU
      • Kappa No Prevalence
      • Mutual Information
      • Overall J
      • Hamming Loss
      • Zero-one Loss
      • NIR
      • P-Value
      • Overall CEN
      • Overall MCEN
      • Overall MCC
      • RR
      • CBA
      • AUNU
      • AUNP
      • RCI
      • Pearson C
      • CSI
      • ARI
      • Bangdiwala B
      • Krippendorff
      • Alpha
    • The Best Algorithms Table
      • Automatically chooses the best model based on the metrics above
    • Confusion Matrix for all Models
    • Feature Importance for all models
    • Save all Models into a Pickle file

How to Install

sudo apt-get install default-jre
pip install amlr



How to use

sintax:

from amlr import amlr as rp
import webbrowser

rp = rp.report()
rp.create_report(dataset='data/titanic-passengers.csv', target='Survived', max_runtime_secs=1)

webbrowser.open('report/index.html')

Another option is to load your own data set with pandas and switch, or parse, to the AMLR report command, but you cannot use both methods. The code will be:

df = pd.read_csv('data/titanic-passengers.csv', sep=';')
rp.create_report(data_frame=df, target='Survived', max_runtime_secs=1)

Parameters

  • dataset: File to read by AMLR
  • data_frame: Pandas DataFrame
  • target: The target column
  • duplicated: Default True Looking for duplicated lines
  • sep: Default ; if file is a csv, you must explicity the column sepatator character
  • exclude: Default True a list with the columns to exclude to the process
  • max_runtime_secs: Default 1 time limit to run deep learnig models

max_run_time

When building a model, this option specifes the maximum runtime in seconds that you want to allot in order to complete the model. If this maximum runtime is exceeded before the model build is completed, then the model will fail.

Specifying max_runtime_secs=1 disables this option for production enviroment, thus allowing for an unlimited amount of runtime. If you just want to do a test, regardless of the results, use 1 seconds or a maximum of 61 seconds.




We tested with the following Dataset

  • Classic dataset on Titanic disaster
    • Bernoulli Distribution Target or Binary Classification
    • Download here: Titanic

Output

See the output here

This is an example of the test made with the Titanic Dataset;



enjoi!

Metadata

Release files for amlr 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amlr 0.4.1
File Size Uploaded
amlr-0.4.1.tar.gz 277.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for amlr 0.4.1
File Interpreter ABI Platform
amlr-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 553.5 kB

Release files / amlr-0.4.1.tar.gz

Download URL amlr-0.4.1.tar.gz
Size 277.2 kB
Tags Source
SHA-256 checksum
How to use checksums
44f0868b6808a898b817723c4d79f8b828e218e127543995c623d28517c7f6fb
BLAKE2b-256 checksum
How to use checksums
9834536dea549ce3dc437d96d1151557176366b8d8aef6cec4abfd7f86086926
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.4.2 requests/2.22.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.10

Release files / amlr-0.4.1-py3-none-any.whl

Download URL amlr-0.4.1-py3-none-any.whl
Size 276.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
822d202890dd19252fb114f6972954d2b28ca11916d1a440aac682acd88b83a7
BLAKE2b-256 checksum
How to use checksums
2a9e53cb63738b5dd72c9aa0b8a68ff1265785fd5f5670d0c786d9d4d1fbe24b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.4.2 requests/2.22.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page