Git Product home page Git Product logo

ml-scikit-learn's Introduction

Applied Machine Learning using scikit-learn and XGBoost

1. Prepare Environment & Data

  • Load Libraries
  • Load Dataset

2. Summarize Data: Statistics & Visualization

  • Data Exploration: Descriptive Statistics
    • describe(): statistics - mean, stdev, min/max
    • class distribution
    • correlations
    • skew
    • data types
  • Data Exploration: Visualization
    • histogram
    • density plot
    • box whisker plot
    • correlation matrix plot
    • scatter plot matrix

3. Data Pre-Processing

  • Data Cleaning
  • Data Pre-Processing
    • Rescale
    • Standardize
    • Normalize
    • Binarize
  • Feature Selection
    • Univariate selection
    • Recursive Feature Elimination
    • Principal Component Analysis
    • Feature Importance
  • Data Transform

4. Model Evaluation: Data -> Model -> Performance Metrics

  • Split-out validation dataset: Resampling
    • Train-Test Data split
    • k-fold cross validation
    • LOOCV
    • Repeated Random train-test splits
  • Algorithm Performance Metrics
    • Classification Metrics
      • Classification Accuracy
      • Logarithmic Loss
      • Area under ROC curve
      • Confusion Matrix
      • Classification Report: precision, recall, F1 score, support
    • Regression Metrics
      • Mean Absolute Error
      • Mean Squared Error
      • R^2
  • Algorithm Performance
    • Classification
      • Linear Algorithms
        • Logistic Regression
        • Linear Discriminant Analysis
      • Non-Linear Algorithms
        • kNN
        • Naive Bayes
        • CART
        • SVM (SVC)
    • Regression
      • Linear Algorithms
        • Linear Regression
        • Ridge Regression
        • LASSO Linear Regression
        • ElasticNet Regression
      • Non-Linear Algorithms
        • kNN
        • CART
        • SVM (SVR)
  • Algorithm Comparison
    • Test harness to compare multiple algorithms efficiently on a single dataset
    • Comparison visualization
  • Preventing Data Leakage using Pipelines
    • Data Preparation and Modeling Pipeling
    • Feature Extractions and Modeling Pipeling

5. Improve Accuracy

  • Algorithm Tuning: Hyperparameter Optimization
    • Grid Search Parameter Tuning
    • Random Search Parameter Tuning
  • Ensembles
    • Bagging
      • Bagged Decision Trees: Best for high variance algorithms
      • Random Forests
      • Extra Trees
    • Boosting
      • AdaBoost
      • XGBoost: Stochastic Gradient Boosting (Gradient Boosting Machines - GBM)
    • Voting

6. Finalize Model

  • Predictions on validation dataset
  • Create standalone model on entire dataset
  • Model persistence
    • pickle
    • joblib

ml-scikit-learn's People

Contributors

rahulmkumar avatar

Watchers

James Cloos avatar  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.