Question: Your training data is in dataframe df . The target value is in column 'target', and can have value 0 or 1 . You run

Your training data is in dataframe df. The target value is in column 'target', and can have value 0 or 1. You run two commands and see the following output:
df.shape[0]
1000
df['target'].value_counts().values[0]
300
If you use oversampling to balance your data set, how many rows will you end up with?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!