I still get the same error. Essentially I am asking how to recreate the notebook in the newest version fastai. a Custom data loader and model inside LEARNER object
So, I am talking only about my experience which was more like “hm…this error means I forgot something” , so bear with me!
The lr_find does not require it, but still expects you to put in a DataLoaders object. The DS you are using implies only one set, so you would be required to use a second set as test.
Based on the code in the notebook linked
X_train = np.array(list(train_df.groupby(‘group’).apply(lambda x: x[train_cols].values))).astype(np.float32)
y_train = np.array(list(train_df.groupby(‘group’).apply(lambda x: x[test_cols].values))).astype(np.float32)
requires you to add the same for X_test, y_test and then you can create the appropriate DataLoaders object with
dls = DataLoaders.from_dsets(DS(X_train, y_train), DS(X_test, y_test))
This worked for me then with a completly different data set, but it should work for the attempt with the flights as well.