Skip to main content

Makes interactive Charts, Interactive baseline, Interactive Hyperparameter Tuning & predictions

Project description

Documentation Status Downloads PyPI version License: MIT

Pywedge

Pywedge is a pip installable Python package that intends to,

  1. Make multiple charts in a single line of code, to enable the user to quickly read through the charts and can make informed choices in pre-processing steps

  2. Quickly preprocess the data by taking the user’s preferred choice of pre-processing techniques & it returns the cleaned datasets to the user in the first step.

  3. Make a baseline model summary, which can return ten various baseline models, which can point the user to explore the best performing baseline model.

Pywedge intends to help the user by quickly making charts, preprocessing the data and to rightly point out the best performing baseline model for the given dataset so that the user can spend quality time tuning such a model algorithm.

Pywedge Features

Cleans the raw data frame to fed into ML models. Following data pre_processing will be carried out,

  1. Makes 8 different types of interactive charts with interactive axis selection widgets
  2. Segregating numeric & categorical columns
  3. Missing values imputation for numeric & categorical columns
  4. Standardization
  5. Feature importance
  6. Class oversampling using SMOTE
  7. Computes 10 different baseline models for classification & regression

Make_Charts()

Makes 8 different types of interactive Charts with interactive axis selection widgets in a single line of code for the given dataset.

Different types of Charts viz,

  1. Scatter Plot
  2. Pie Chart
  3. Bar Plot
  4. Violin Plot
  5. Box Plot
  6. Distribution Plot
  7. Histogram
  8. Correlation Plot

Inputs:

  1. Dataframe
  2. c = any redundant column to be removed (like ID column etc., at present supports a single column removal, subsequent version will provision multiple column removal requirements)
  3. y = target column name as a string

Returns:

Charts widget

Pywedge-Make_Charts Demo YouTube link below,

Pre_process_data()

Inputs:

  1. train = train dataframe
  2. test = test dataframe
  3. c = any redundant column to be removed (like ID column etc., at present supports a single column removal, subsequent version will provision multiple column removal requirements)
  4. y = target column name as a string
  5. type = Classification(Default) / Regression

Returns:

  1. new_X (cleaned feature columns in dataframe)
  2. new_y (cleaned target column in dataframe)
  3. new_test (cleaned stand out test dataset)
!pip install pywedge
import pywedge as pw
ppd = pw.Pre_process_data(train, test, c, y, type='Classification")
new_X, new_y, new_test = ppd.dataframe_clean()

categorical_conversion

from the image, it can be observed that calling dataframe_clean method does the following,

  1. Providing a summary of zero & missing values in the training dataset
  2. Class balance summary
  3. Categorical column conversion

standardization

user is asked for standardization choice...

smote

For binary classification tasks, pywedge computes class balance & asks the user if oversampling using SMOTE to be applied to the data.

baseline_model()

  • For classification - classification_summary()
  • For Regression - Regression_summary()

Inputs:

  1. new_x
  2. new_y

Returns:

Various baseline model metrics

Instantiate the baseline class & call the classification_summary method from baseline_model class,

blm = pw.baseline_model(X,y)
blm.classification_summary()

classification_summary

The classification summary provides Top 10 feature importance (calculated using Adaboost feature importance) and asks for the test size from the user.

cls_smry_2

The classification summary provides baseline models of 10 different algorithms, user can identify best performing baseline models from the classification summary.

In the same way, regression analysis can be done using a few lines of code.

The following additions to pywedge is planned,

  • A separate method to produce good charts
  • To handle NLP column
  • To handle time series dataset
  • To handle stock prices specific analysis

Requires Python 64 bit

THIS IS IN BETA VERSION

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywedge-0.5.1.4.tar.gz (20.0 kB view hashes)

Uploaded Source

Built Distribution

pywedge-0.5.1.4-py3-none-any.whl (18.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page