Selected topic
Random Search
Prefer practical output? Use related tools below while reading.
Random search is a simple and effective optimization technique used in machine learning to find the best hyperparameters for a model. It's a popular alternative to grid search, which can be computationally expensive.
lr) and number of epochs (epochs) for a simple neural network using the random search algorithm.lr | 0.01, 0.1, 1 |epochs | 10, 50, 100 || Combination # | lr | epochs |
| --- | --- | --- |
| 1 | 0.01 | 50 |
| 2 | 1 | 10 |
| 3 | 0.1 | 100 |
| 4 | 0.01 | 10 |
| 5 | 1 | 50 |
| Combination # | Accuracy |
| --- | --- |
| 1 | 85% |
| 2 | 70% |
| 3 | 90% |
| 4 | 80% |
| 5 | 75% |
Random search is a useful technique for optimizing hyperparameters, as it can reduce the computational cost compared to grid search. However, it's essential to note that random search may not always find the optimal solution, especially when the search space is large or complex.