C2W1 Exercise 2

The grading system marked exercise 2 - Visualizing training data stat wrongly. i have no idea why. the required arg (train_df, stat_options) are inputted.
image

Hello @hhassan and welcome to DeepLearning Community.

train_df is the Training dataframe(70% of the entire dataset)

StatsOptions : One of the important parameters of the StatsOptions class is feature_allowlist , which defines the features to include while calculating the data statistics. You can check the documentation to learn more about the class arguments also stats_options , generates an object of type DatasetFeatureStatisticsList . This object includes the computed statistics of the given dataset.

Therefore to generate the statistics of the training set we pass the training dataframe: train_df and the stats_options

train_stats = tfdv.generate_statistics_from_dataframe(train_df, stats_options)

Let me know if you still have another question

Hello, @Isaak_Kamau big thanks for your response. I got the train stats quite alright, but my issue is the visualization part. the grading system is marking me wrong, and I don’t know what I’m doing wrongly. That is why I shared a screenshot of my code. Please See my grading score below

Please check whether you’ve used another #grade-up-to-here? If you have please delete it, If the problem persist please dm me your notebook

Hello @hhassan I have gone through your notebook, Please remove the # grade-up-to-here
It is probably affecting the grader not to grade your entire notebook
C2W1_Assignment-Jupyter-Notebook
C2W1_Assignment-Jupyter-Notebook (1)
Please go through your notebook and delete all # grade-up-to-here

Let me know if that works

1 Like

Removing the “# grade-up-to-here” works. Thanks

Welcome @hhassan
If you encounter any other issue please feel free to start a new topic.

Happy Learning
Isaak