Cross Validation, Data Science
Mostrar comentarios más antiguos
I have written this code and getting error:
from sklearn.model_selection import train_test_split
X0 = pd.read_csv('C:/Users/Desktop/Dataset for Experiment - 2019/ANFIS modeling data/china_data.csv')
train_test_split. X0 = X0.drop(columns = ['EFFORT'], axis = 1)
X_train, X_test, y_train, y_test = train_test_split(X0, test_size=0.8)
**the error which is showing for this code "X_train, X_test, y_train, y_test = train_test_split(X0, test_size=0.8)
ValueError: not enough values to unpack (expected 4, got 2)"**
I tried many times to remove this error but it is still persistent. Can anybody explain to me why I am getting this error & how can I remove this error?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Response Computation and Visualization en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!