Git Product home page Git Product logo

model_selection_crossvalidation's Introduction

Model_selection_crossvalidation

Review accuracy estimation methods and compare methods: crossvalidation and bootstrap

In this work sklearn built in dataset 'iris dataset' has been used train and test dataset. You can try your won dataset For more details pleae visit my Kaggle page:

Steps

  • import required libs and sklearn iris dataset

  • create X and Y data set to train Y = wX + b model

  • Model selection: KNeighborsClassifier

  • import cross validation model

  • run model for range of K values for KNeighborsClassifier and find the best K value for the model

  • Cross validation CV = 10 taken

  • Model selection:LogisticRegression

  • import cross validation model

  • Run model for different optimizer: ['newton-cg', 'lbfgs', 'liblinear', 'sag', 'saga']

  • find best score

  • Cross validation CV = 10 taken

#That way you can find the best value to tune model parameter. #We can put a list of models and run a loop to select best model with best parameters

model_selection_crossvalidation's People

Contributors

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