Giter Club home page Giter Club logo

hyperparameter-tuning's Introduction

Hyperparameter-Tuning

This is a repository for the medium article published under ADG VIT on Hyper parameters tuning.

Hyperparameters are configuration variables that govern the training process itself. For example, part of setting up a deep neural network is deciding how many hidden layers of nodes to use between the input layer and the output layer, and how many nodes each layer should use. These variables are not directly related to the training data.



This repo consists of

  • The .ipynb (Jupyter Notebook/Google collab) file of the FULL CODE.
  • The code snippets (.ipynb) which are attached in the article.
  • The Breast cancer dataset used.


Dataset

The dataset used is Breast Cancer Wisconsin (Diagnostic) Data Set.

The full dataset can be accessed from HERE.


Variable Definition Key
id ID number
diagnosis The diagnosis of breast tissues M = malignant, B = benign

Ten real-valued features are computed for each cell nucleus:

Feature Defintion
Radius Mean of distances from center to points on the perimeter
Texture Standard deviation of gray-scale values
Perimeter
Area
Smoothness Local variation in radius lengths
Compactness Perimeter^2 / area - 1.0
Concavity Severity of concave portions of the contour
Concave points Number of concave portions of the contour
Symmetry
Fractal dimension "coastline approximation" - 1

Class distribution:

Total True values Diagnosed Type
357 (B) benign
212 (M) malignant


More Information

Where the model parameters specify how to transform the input data into the desired output, the hyperparameters define how our model is actually structured.

But unfortunately, there’s no one universal way to calculate “which way should one update the hyperparameters to reduce the loss and increase the efficiency?” (For e.g. The learning rate(α) of gradient descent, a method typically used in linear regression algorithm) in order to find the optimal model architecture. Thus, we generally resort to experimentation to figure out what works the best.

The tuning methods used here are:

  1. Grid Search

    Define a search space as a grid of hyperparameter values and evaluate every position in the grid.
  2. Random Search

    Define a search space as a bounded domain of hyperparameter values and randomly sample points in that domain.
  3. TPOT

    TPOT is a Python Automated Machine Learning tool that optimizes machine learning pipelines using genetic programming.
  4. Bayesian Optimization

    Bayesian optimization is an approach to optimizing objective functions that take a long time (minutes or hours) to evaluate.

END

hyperparameter-tuning's People

Contributors

ankit-sidana avatar

Watchers

 avatar

Forkers

tanmay2262

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.