using Kfold cross-Validation on Experiences needs a seperate benchmark ? #1386
Replies: 3 comments
-
Using a TensorDataset with the indices indicated by the stratified Kfold should resolve this issue . |
Beta Was this translation helpful? Give feedback.
-
going back to the creation of the TensorDataset , I tried creating the lists of tensors as advised by the api by running
for creating the dataset works but when calling the stream for training
I get a type error
|
Beta Was this translation helpful? Give feedback.
-
Hi again , you guys are probably busy with the 0.4 roadmap but would be great if I got an answer .
followed by this code which creates the list of instance tuples (path,label) pertaining to each fold as a seperate experience then combines all folds to be inside L_experiences .
following the 0 to hero guide , this is my generic scenerio
I go back and try to run this as on a cumulative strategy
but fail with typeError
I tried moving everything to cpu including the device but I receive Runtime errors about the input shape not matching of the CNN's . any help replicating my code or suggesting a turnaround would be great while some us still have to work with the soon to be deprecated generic benchmarks . |
Beta Was this translation helpful? Give feedback.
-
I'm trying to work on a smaller portion of one of 2 SplitMNIST experiences .
for this end I wanted to use stratified Kfold splits to get a hold of a test set with the desired smaller number of instances and train/fine tune a model on it. but to my understanding CL_Strategy.train method takes an experience as arguement so I'd have to create a custom benchmark for this use case ?
Here's a code sample , I feel i'm so close yet so far to get the default stream to work as intended , any tips or guidance on which direction I should pursue ?
The error raised when passing test_index to split_mnist.train_stream[0].dataset is
TypeError: only integer scalar arrays can be converted to a scalar index
.Thank avalanche team
Beta Was this translation helpful? Give feedback.
All reactions