nipunbatra / ml-teaching

https://nipunbatra.github.io/ml-teaching/
5 stars 16 forks source link

[Notebook for hyperparameter optimisation] #18

Open nipunbatra opened 7 months ago

nipunbatra commented 7 months ago

Some references

  1. https://nipunbatra.github.io/ml2023/notebooks/posts/python-utils.html
  2. https://nipunbatra.github.io/ml2023/notebooks/posts/hyperparameter-1.html
RahulVC02 commented 7 months ago

I'm interested in this. Should I combine the two into a single notebook, is there any additional util functions/functionality that needs to be implemented? cc: @nipunbatra

nipunbatra commented 7 months ago

@RahulVC02 sure. Go ahead and make a PR.

Yes, can combine these into a single notebook.

First. we can show using nested for loop.

Next, can show more succinct code using itertools.

Finally, can show using sklearn grid search

Example can be a non-random dataset (say something like the last one I used here to show bias-variance tradeoff): https://github.com/nipunbatra/ml-teaching/blob/master/notebooks/decision-tree-real-input-real-output.ipynb

Also, use Quarto metadata in the notebook including author name (you)