C1M3 get_dataloaders Failed test case: The dataset splits do not have the correct sizes

Graded fail for random_split. All unit test passed but got error. Is there something i missed?

image removed as it contains grade function codes that assess your assignment grade, and posting any graded section like quiz, assignment codes is considered violation of Code of Conduct or community guidelines. If a mentor wants to look at your codes they would ask you for the codes to be sent by personal DM, until then only post screenshot of your failed test output, or grader submission output for mentors to have understanding of your query.

@St_Iron

First of all posting grade function is considered gross violation of code of conduct, you aren’t supposed to post the code you write which will asses your assignment grades.

Based on your failed test information, I would check if my previous exercise codes are correct or not, and secondarily, if you notice instructions, it clearly passes parameters values with key arguments assigned to a particular grade function and when you didn’t follow that part of instruction while mentioning transform arguments, you must have passed global variable values instead of the assigned local variable argument for the particular exercise when you created each split with DataLoader.

Other than that your codes are correct for the exercise in question.

Thank you. The reason might be I didn’t init DataLoader with named parameters, used positinal parameters instead. Now it passed with 100% grade

as suspected, good that you caught.