<jupyter_start><jupyter_text>Inference<jupyter_code># load better model

model.load_state_dict(torch.load('resnet50.ckpt'))

preds = test(test_loader, model)<jupyter_output><empty_output><jupyter_text>Sumission<jupyter_code>submission = pd.read_csv('./data/sample_submission_file.csv')
len(submission.Id) == len(preds)
submission.head(10)
submission['Category'] = preds
submission.head()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14388489208633093, 'fraction_numerical': 0.009592326139088728, 'mean_word_length': 12.0625, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '237906', 'license': 'MIT', 'n_tokens_mistral': 164, 'n_tokens_neox': 161, 'n_words': 15, 'path': 'base_model/Finetuning.ipynb', 'repo_name': 'IsraelAbebe/cassava_disease_classification', 'size': '417'}