cca_zoo
cca_zoo copied to clipboard
cca_zoo.model_selection.GridSearchCV's param_grid parameter should accept any type of iterator
With reference to this comment, cca_zoo.model_selection.GridSearchCV's param_grid parameter should accept any type of iterator as dictionary values. Right now, np.array, pd.Series, list and tuple come to my mind. Both np.array and pd.Series can be easily converted into the list type by using their tolist() method (or by calling list() on them). Not sure about other data types. I guess, generally, any object that has the __iter__ and __next__ methods should be fine if it can be converted to a list?
P.S.: Cannot recall that I had this issue with scikit-learn's GridSearchCV before. How do they handle this case?
Fixed this in latest push to main
Small fix to work with #175