while solving assignment 2 i am unable to random_split dataset into training and validation because i dont know the number of data elements. What to do Please help
You should have answered how many rows are there in the dataset. That’s your total number of data points (elements).
Just in case use
dataset.describe() . (the first returns the number of rows as integer, and the second one returns a summary of the dataframe (count row).
You can also try like this,
len(dataset) * 0.9(90%) for training data and
len(dataset) * 0.1(10%) for validation data.