Giter VIP home page Giter VIP logo

pywedge's Introduction

Documentation Status Downloads PyPI version License: MIT

Pywedge

Pywedge is a pip installable Python package that intends to,

  1. 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.

  2. In the second step, Pywedge offers a baseline class that has a classification summary method & regression summary method, 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 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. segregating numeric & categorical columns
  2. missing values imputation for numeric & categorical columns
  3. standardization
  4. feature importance
  5. class oversampling using SMOTE
  6. computes 10 different baseline models

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,

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

Requires Python 64 bit

THIS IS IN BETA VERSION

pywedge's People

Contributors

taknev83 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.