我正在學習如何使用scikit-learn開發反向傳播神經網絡。我仍然對如何在我的神經網絡中實現k-fold交叉驗證感到困惑。我希望你們能幫助我。我的代碼如下: import numpy as np
from sklearn.model_selection import KFold
from sklearn.neural_network import MLPClassifier
f = o
我試着運行我的下面的代碼來訓練我的貝葉斯網絡。 p = [-1:.05:1];
t = sin(2*pi*p)+0.1*randn(size(p));
net = feedforwardnet(2,'trainbr');
net = train(net,p,t);
a = net(p);
並且收到如下錯誤; Default value is not a member of type "