@Mohamed_Bakrey_Mahmo, your code looks fine, except for the ` at the end of the line:
train, val = train_test_split(train, test_size=.2, random_state = 1)`
Is that ` in your actual code? If so, try removing it. It may be what’s throwing off the grader.
Just to confirm - you’re getting the same error as shown above as your first error? This one:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-17-a858ae1ed80e> in <module>
----> 1 utils.test_data_sizes(train.size, test.size, val.size)
2
NameError: name 'val' is not defined
==========================================================================================
That means the grader doesn’t know val
is defined, but you are defining it - unless that ` or something else extraneous in the cell is throwing the grader off. Check the cell for anything suspicious.
You can also try refreshing your workspace if you can’t see anything, but start with checking out that ` and/or anything else suspicious in that cell. If you do need to try refreshing, instructions are here - scroll down to the part about refreshing: