Hello All,
I ma trying to get predictions and metric score on my validation data using fastai v2 library. Can someone help me out?
I am using below code to create DataBlock and classifier
dls_clas = DataBlock(
blocks=(TextBlock.from_df('text', vocab=dls_lm.vocab), CategoryBlock), get_x=ColReader('text'), get_y=ColReader('label'), splitter=RandomSplitter()
).dataloaders(data, seq_len=72, bs=64)
learn_clas = text_classifier_learner(dls_clas, AWD_LSTM, drop_mult=0.5,
metrics=accuracy).to_fp16()
If possible also let me know how to get train(transformed text prefered) and validation data with predictions to csv
Regards,
Chaitanya Kanth.