MatLab-将双精度转换为神经网络
我需要将double的MatLab-将双精度转换为神经网络,matlab,neural-network,Matlab,Neural Network,我需要将double的数组重新键入网络 我有一个来自的代码,但我无法使其工作。 错误出现在文件globalregression.m中的函数train中,该文件要求将数据类型net作为第一个参数 我的尝试 起初,我试图用tondata函数重新键入它,但它没有帮助,因为tondata重新键入了deltashapes到单元格: parfor o = 1:size(deltashapes, 2) model = train(tonndata(deltashapes(:, o),true,fal
数组
重新键入网络
我有一个来自的代码,但我无法使其工作。
错误出现在文件globalregression.m
中的函数train
中,该文件要求将数据类型net
作为第一个参数
我的尝试 起初,我试图用
tondata
函数重新键入它,但它没有帮助,因为tondata
重新键入了deltashapes
到单元格
:
parfor o = 1:size(deltashapes, 2)
model = train(tonndata(deltashapes(:, o),true,false), sparse(binaryfeatures), param);
W_liblinear(:, o) = model.w';
end
然后我遇到了一个函数feedforwardnet
,但我不知道如何从变量deltashapes
传递数据
错误报告
我的问题 我需要一个关于以简单方式将双数组重新键入到神经网络数据类型的建议。我是一个完全的MatLab初学者,所以如果可能的话,我希望能有更详细的解释
链接
function-www.mathworks.com/help/nnet/ref/tondata.htmltondata
function-www.mathworks.com/help/nnet/ref/feedforwardnet.htmlfeedforwardnet
function-www.mathworks.com/help/nnet/ref/train.htmltrain
Error using globalregression>(parfor body) (line 48)
An UndefinedFunction error was thrown on the workers for 'train'. This might be because the file containing 'train' is not
accessible on the workers. Use addAttachedFiles(pool, files) to specify the required files to be attached. See the
documentation for 'parallel.Pool/addAttachedFiles' for more details.
Error in globalregression (line 47)
parfor o = 1:size(deltashapes, 2)
Error in train_model (line 227)
[W, Data] = globalregression(binfeatures, Data, Param, s);
Caused by:
Undefined function 'train' for input arguments of type 'double'.