【发布时间】:2021-09-04 08:56:00
【问题描述】:
我正在实现 MLP 分类器,我想将字符串作为输入。
df = pd.DataFrame(results)
X = df.iloc[:, [2]].values
y = df.iloc[:, [1]].values
X_train, X_test, y_train, y_test = train_test_split(X, y)
clf = MLPClassifier(random_state=6, max_iter=200).fit(X_train,
y_train.ravel())
clf.predict()
我收到了这个错误
【问题讨论】:
标签: python scikit-learn neural-network mlp