MLOps-Basics
MLOps-Basics copied to clipboard
Key error on Week1
Hi @graviraja,
I was following your tutorial on wandb logging and found a potential error in the training code when visualizing poorly performed data with wandb table.
https://github.com/graviraja/MLOps-Basics/blob/13060e0295c7bbc1551e82fe49b6788a5a13ad97/week_1_wandb_logging/train.py#L19-L21
When running, this results in KeyError : "sentence"
, referring to line 21 sentences = val_batch["sentence"]
.
I think this is because "sentence"
is not part of the columns setup in val_data
of data.py. Please correct me if I'm wrong. Thanks :)
https://github.com/graviraja/MLOps-Basics/blob/13060e0295c7bbc1551e82fe49b6788a5a13ad97/week_1_wandb_logging/data.py#L29-L42
Hi @Taehee-K , I also got the same error as you. Did you fix that error? Can you show me the results?