Advertisement
qq88

Untitled

Feb 17th, 2020
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. df_test = pd.read_csv('HR_test.csv')
  2. X1 = df_test[['col1', 'col2']] # Must be the same columns as the training data otherwise it wont work. If you want to experiment with different columns always change the training ones first and then those here.
  3. y1 = df_test['left']
  4.  
  5. # Scoring
  6. model.score(X1, y1) # Make sure you use the testing data, not training (X_test, y_test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement