1.

How is the grid search parameter different from the random search tuning strategy?

Answer»

Tuning strategies are used to find the right set of hyperparameters. Hyperparameters are those properties that are fixed and model-specific before the model is TESTED or trained on the dataset. Both the grid search and random search tuning strategies are optimization techniques to find efficient hyperparameters.

  • Grid Search:
    • Here, every combination of a preset list of hyperparameters is tried out and evaluated.
    • The search pattern is similar to searching in a grid where the values are in a matrix and a search is performed. Each parameter set is tried out and their accuracy is tracked. after every combination is tried out, the model with the highest accuracy is chosen as the best one.
    • The main drawback here is that, if the number of hyperparameters is increased, the technique suffers. The number of evaluations can increase exponentially with each increase in the hyperparameter. This is called the problem of dimensionality in a grid search.
  • Random Search:
    • In this technique, random combinations of hyperparameters set are tried and evaluated for finding the best solution. For optimizing the search, the function is tested at random configurations in parameter space as shown in the image below.
    • In this method, there are increased chances of finding optimal parameters because the pattern followed is random. There are chances that the model is trained on optimized parameters without the need for aliasing.
    • This search works the best when there is a lower number of dimensions as it takes less time to find the right set.
Conclusion:

Data Science is a very vast field and comprises many topics like Data MINING, Data Analysis, Data Visualization, Machine Learning, Deep Learning, and most importantly it is laid on the foundation of MATHEMATICAL concepts like Linear Algebra and Statistical analysis. Since there are a LOT of pre-requisites for becoming a good professional Data Scientist, the perks and benefits are very big. Data Scientist has become the most sought job role these days. 

Looking for a comprehensive course on Data Science: Check out our Offerings.

Useful Resources:

  • Best Data Science Courses
  • Data Scientist Salary
  • Data Science Resume
  • Data Analyst: Career Guide
  • Tableau Interview
  • Additional Technical Interview Questions


Discussion

No Comment Found