如何在C ++程序中连接MATLAB中内置的训练有素的神经网络?

时间:2019-04-02 22:25:37

标签: c++ matlab neural-network

我有一个训练有素的MATLAB网络内置神经网络,我想在我的C ++程序中使用它。有没有可以读取此神经网络的C ++库?

1 个答案:

答案 0 :(得分:0)

您可以检索神经网络的权重并在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