<jupyter_start><jupyter_text>Simple model test<jupyter_code>df['target'] = [col[0] for col in df['ocr']]
df.head()
df.target.value_counts()
dblocks = DataBlock(blocks=(ImageBlock, CategoryBlock),
                   splitter=RandomSplitter(.2),
                   get_x=ColReader(1),
                   get_y=ColReader(3),
                   item_tfms=Resize((640, 480)))
dls = dblocks.dataloaders(df)
dls.show_batch()
learn = cnn_learner(dls, resnet34, metrics=error_rate)
learn.fine_tune(1)<jupyter_output>Downloading: "https://download.pytorch.org/models/resnet34-333f7ec4.pth" to /root/.cache/torch/hub/checkpoints/resnet34-333f7ec4.pth
{'fraction_non_alphanumeric': 0.14397496087636932, 'fraction_numerical': 0.04225352112676056, 'mean_word_length': 3.81203007518797, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '189339', 'license': 'MIT', 'n_tokens_mistral': 254, 'n_tokens_neox': 238, 'n_words': 29, 'path': 'nbs/02_dataset_loading.ipynb', 'repo_name': 'omlnaut/sudoku', 'size': '639'}