Advertisement
rodolpheg

Untitled

Nov 16th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. from sklearn.model_selection import train_test_split
  2.  
  3. X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33)
  4.  
  5. """Étape facultative (mais souvent utile) : normaliser les données"""
  6.  
  7. #from sklearn.preprocessing import MinMaxScaler
  8. #scaler = MinMaxScaler()
  9.  
  10. #scaler.fit(X_train)
  11. #X_train = scaler.transform(X_train)
  12.  
  13. #scaler.fit(X_test)
  14. #X_test = scaler.transform(X_test)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement