I have to execute GridSearchCV()
cell every time I reload the page and it takes a lot of time. Is there a caching mechanism which stores the GridSearchCV result so that I can use it without executing the cell on the reload?
Code:
neigh_clf = KNeighborsClassifier()
grid_search = GridSearchCV(neigh_clf, param_grid, cv=5,verbose=3,n_jobs=-1)
grid_search.fit(X_train, y_train)
grid_search.best_params_
I am trying to save grid_search object here so that I can retrieve best_params_ value after reload