Cross Validation, Data Science
이전 댓글 표시
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?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Response Computation and Visualization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!