Dear all,
I am facing issue in C3W2_Assignment in Exercise 3: fit_label_encoder
the order of the classes not right while the test is passed
I am not able to attach screenshot
@Deepti_Prasad
you have posted your query in incorrect category.
Taking screenshot for windows use windows key and print screen button together.
or atleast copy paste what output you got after running the test cell.
your message is in conflict, at one place you tell you passed the test but then you are stating classes are not in order?
Please don’t post any grade function codes here as it is against community guidelines.
Also your query is to be shifted to tensorflow professional certificate specialisation, course NLP but you posted your query in NLP specialisation.
The topic has been shifted.
I tried taking screenshot the way u said but still not attching
I will paste the part:
I got different order than expected.
Unique labels: [‘sport’, ‘business’, ‘politics’, ‘entertainment’, ‘tech’]
as you can see ‘entertainment’ and ‘tech’ are in opposite order.
Expected Output:
Unique labels: ['sport', 'business', 'politics', 'tech', 'entertainment']
can you DM the screenshot of your codes. click on my name and then message
same issue not able to attach to DM message
click on my name and then message me what codes you wrote
hi @reemaloth55
in your train_val, you are suppose to use TRAINING_SPLIT instead of the numerical value to get the train_size.
next while slicing, you are only suppose to mention column position and not the train_size.
Also kindly avoid any hard coding the path.
in fit_vectorized
while instantiating textvectorization, you are only suppose to use standardized and output sequence length parameters. The MAX_LEN is the output sequence length mentioned in the instructions. No other max_token argument need to be used for this.