GithubHelp home page GithubHelp logo

tempse / sklearn-beginners-template Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 4.96 MB

Example of basic data analysis using machine learning in scikit-learn

License: MIT License

Jupyter Notebook 100.00%
scikit-learn python machine-learning random-forest decision-trees multivariate-analysis pandas tutorial

sklearn-beginners-template's Introduction

ML scikit-learn tutorial

Scikit-learn Beginner's Template

A basic multivariate analysis of simulated physics data using the machine learning toolkit scikit-learn. The entire analysis example is conveniently presented in form of Jupyter Notebooks.

This project mainly addresses people who are new to machine learning, scikit-learn or Python and should provide them with code implementations of basic analysis steps and plots. It does not necessarily claim to yield optimal analysis results - not even good ones, necessarily - but should rather illustrate some fundamental concepts of machine learning application.

Prerequisites

The provided example makes use of the following Python libraries/frameworks:

Machine Learning Concepts

The following concepts are covered and implemented:

  • Data visualization
    • Variable histograms
    • Scatter matrix
    • Correlation matrix
    • RadViz
  • Data preprocessing
    • Standard scaling
  • Data split into training, validation and test samples
  • Model definition and training with decision trees / random forest
  • Overfitting the data and how to prevent it
  • Feature importances
  • Model evaluation using training and validation sample
    • MVA output distribution
    • Cut efficiencies plot / MVA cut optimization
    • ROC curve
    • Precision-recall curve
    • Confusion matrix
    • Classification report
  • Model application to the test sample / classifier performance assessment

Content overview and file description

Notebooks:

Contributing

This project is far from perfect, not least because the author is relatively new to Python and scikit-learn himself.

If you have any suggestions or improvements, feel free to let me know or contribute in any way you like.

License license

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

sklearn-beginners-template's People

Contributors

tempse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.