matlab - 为什么 Matlab R2010 不能从 R2007 加载神经网络对象?

标签 matlab variables operator-overloading neural-network matlab-load

我有一个神经网络,我已将其保存到 Matlab 2007 中的 .mat 文件中。

我正在尝试使用 load filename.mat 从文件加载神经网络。 这适用于版本 R2007b 和 R2008,但当我尝试在 R2010b 中加载时,我收到以下消息:

Warning: An error occurred when running a class's loadobj method. The object that was loaded from the MAT-file was a copy of the object before the loadobj method was run. The rest of the variables were also loaded from the MAT-file.
The encountered error was:
Reference to non-existent field 'name'

奇怪的是,它看起来好像保存神经网络的变量存在,但它不能正常工作。使用神经网络的函数在 R2010 中均无效。

有没有人遇到过类似的问题?如何保存神经网络使其与 Matlab R2010 兼容?
或者更好的是,我怎样才能在 Matlab 2010 中正确加载它?

最佳答案

,根据这个 MATLAB Central,似乎其他人也遇到过这个问题(神经网络未在 MATLAB 2010 中加载)帖子,其中 Andreas Goser(Mathworks 的技术支持经理)建议:

If you see this issue in the future, please contact Technical Support and refer to solution 1-EGNM3S.

显然你需要技术支持可以提供的“一个固定的net.m文件”。我还没有测试过,因为我自己没有这个问题。

仔细阅读错误消息,我会说您看到加载的变量包含存储在 .MAT 文件中的“原始”对象,很可能是一个结构。您可以运行whos myvarname 来检查。要将此结构“恢复”为一个对象,它需要由针对其对象类型的重载 loadobj 函数进行处理,该函数通常由 MATLAB 的 load 函数自动调用。在这种情况下,R2010 中神经元网络对象自带的loadobj 似乎不能完全向后兼容...

关于matlab - 为什么 Matlab R2010 不能从 R2007 加载神经网络对象?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7497625/

相关文章:

r - 如何为R中的模型构建一个大的正则公式?

c++ - 重载运算符 << - C++

matlab - 使用不同版本的 Matlab 函数

Matlab - 看似简单的指令导致高CPU负载

javascript - input.value=<variable> 返回静态值 [Javascript]

jquery - 如何用 .$getJSON 方法中的变量替换数据

c++ - 在 C++ 中使用整数和对象重载运算符

c++ - 复制构造函数和内存分配

matlab - 临时删除matlab中所有添加的路径

matlab - Matlab 中 ndgrid 的动态输出