Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File mismatch with tutorial, and following tutorial gives error. #89

Closed
ritog opened this issue Jan 9, 2023 · 1 comment
Closed

File mismatch with tutorial, and following tutorial gives error. #89

ritog opened this issue Jan 9, 2023 · 1 comment

Comments

@ritog
Copy link
Contributor

ritog commented Jan 9, 2023

I am seeing a mismatch in code file with the MLOps tutorial. The code file is the eda notebook.

The course video is here.

The _create_table() method is defined in two different and unmatching ways in the notebook in this repo, and in the tutorial. If I follow the code here, I see no error.

Trouble in a nutshell:

  • But if I follow the tutorial, I see error. If I do not follow the tutorial, I can not match with further sections of the tutorial.
  • And if I do not follow the code in this repo, I get errors.

Here is the code in the repo:

def _create_table(image_files, class_labels):
    "Create a table with the dataset"
    labels = [str(class_labels[_lab]) for _lab in list(class_labels)]
    table = wandb.Table(columns=['File_Name', 'Images', 'Split'] + labels)

And here it is from the tutorial:

image

The exact error message, I forgot to copy it, but it has to do with the length of columns of the table. It expects 12, but gets 10.

Please fix this mismatch.

@kldarek
Copy link
Contributor

kldarek commented Jan 10, 2023

Hey @ghosh-r thanks for raising this! As chatted, I'll close this one as the repo is correct, we'll review the video when we do the next release of the course.

@kldarek kldarek closed this as completed Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants