matlab 报错 Function 'subsindex' is not defined for values of class 'network'.
2016-11-03 17:39
796 查看
Error using subsindex
Function ‘subsindex’ is not defined for values of class
‘network’.
Error in feedforward (line 4)
net = train(net,traindata,t_lable);
变量列表中存在名字为train的变量,所以导致程序无法识别,修改变量名称由train改成train_test,然后再次调用train函数即可。
学习借鉴处:
http://cn.mathworks.com/matlabcentral/newsreader/view_thread/259336
net = train(net,p,t); <——————–Error here
y=sim(net,p);
By the way,
train is 5000x784 double
You’re trying to call the TRAIN function on the network; however, since
there exists a train variable in the workspace the line where the error
occurs is considered to be an attempt to index into the train variable
rather than a call to the TRAIN function. However, MATLAB does not know how
to use a neural network to index into a variable, so you receive that error.
Rename or delete the train variable and that call should work as a call to
the function rather than an attempt to index into the variable.
Function ‘subsindex’ is not defined for values of class
‘network’.
Error in feedforward (line 4)
net = train(net,traindata,t_lable);
变量列表中存在名字为train的变量,所以导致程序无法识别,修改变量名称由train改成train_test,然后再次调用train函数即可。
学习借鉴处:
http://cn.mathworks.com/matlabcentral/newsreader/view_thread/259336
net = train(net,p,t); <——————–Error here
y=sim(net,p);
By the way,
train is 5000x784 double
You’re trying to call the TRAIN function on the network; however, since
there exists a train variable in the workspace the line where the error
occurs is considered to be an attempt to index into the train variable
rather than a call to the TRAIN function. However, MATLAB does not know how
to use a neural network to index into a variable, so you receive that error.
Rename or delete the train variable and that call should work as a call to
the function rather than an attempt to index into the variable.
相关文章推荐
- matlab错误:Function 'conv2' is not defined for values of class 'double' and attributes
- str.lastIndexOf "is not a function" javascript
- VUE.JS v-for渲染过程中 $index is not defined
- TypeError: e.indexOf is not a function解决方法
- [解决]Hive执行语句:Unable to create temp file for insert values Expression of type TOK_FUNCTION not suppor
- Customer xxxx is not defined for function xx
- atom-miku插件安装报错“url.indexOf is not a function”
- jQuery.Deferred exception: a.indexOf is not a function TypeError: a.indexOf is not a function
- jquery.js里面报错Uncaught TypeError: a.indexOf is not a function
- Vue列表渲染指令v-for的索引$index报错Uncaught ReferenceError: $index is not defined
- ReactJs 报错 Element type is invalid: expected a string (from built-in components) or a class/function (for composite components) but got: undefined. Check the render method of `Me`.
- lastIndexOf is not a function
- TypeError: url.indexOf is not a function ,使用jquery load()出现错误
- jQuery 异常 Uncaught TypeError: url.indexOf is not a function
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- 实用程序软件包(关于使用静态函数报错问题“Static function declared but not defined in C+++ "eh.h is only for C++!"报错问题)
- object is not an instance of declaring class
- Version 1.3.1_01 of the JVM is not suitable for this product.Version:1.4.1 or greater is required
- VB6:关于“Only public user defined types defined in public object modules can be used as parameters or return types for public procedures of class modules or as fields of public user defined types.”的编译错误