Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/128.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/matlab/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何在C+中连接MATLAB中构建的经过训练的神经网络+;节目?_C++_Matlab_Neural Network - Fatal编程技术网

C++ 如何在C+中连接MATLAB中构建的经过训练的神经网络+;节目?

C++ 如何在C+中连接MATLAB中构建的经过训练的神经网络+;节目?,c++,matlab,neural-network,C++,Matlab,Neural Network,我有一个在MATLAB中构建的经过训练的神经网络,我想在我的C++程序中使用它。是否有任何C++库可以读取此神经网络?您可以检索神经网络的权重,并在C++程序中使用它 w1 = net.IW{1} %the input-to-hidden layer weights w2 = net.LW{2} %the hidden-to-output layer weights b1 = net.b{1} %the input-to-hidden layer bias b2 = net.b{2} %the

我有一个在MATLAB中构建的经过训练的神经网络,我想在我的C++程序中使用它。是否有任何C++库可以读取此神经网络?

您可以检索神经网络的权重,并在C++程序中使用它

w1 = net.IW{1} %the input-to-hidden layer weights
w2 = net.LW{2} %the hidden-to-output layer weights
b1 = net.b{1} %the input-to-hidden layer bias
b2 = net.b{2} %the hidden-to-output layer bias

但是如何在C++程序中使用这些信息呢?我的意思是,我不知道如何在C++程序中应用这些权重来获得相同的结果