用于贝叶斯网络工具箱 MATLAB 的结构学习包

我正在查看这段 MATLAB 代码,它有一些示例。我正在执行 test_bnpc_asia.m,但遇到了错误。如何更正它?(我有 MATLAB R2010B)

执行:

>> test_bnpc_asia.m================== phase I : Execution time : 0.12480================== phase II : Execution time : 0.01560================== phase III : Thinning - separateAThinning - separateBThinning - orient_edgesInfering directions 0 bouclesExecution time : 0.10920score_Phase_3 = -6.0994e+003Report genered in :ans =C:\Program Files\MATLAB\R2010b\BNT_SLP\examplesWarning: Direct access of structure fields returned by a function call (e.g., call to test_bnpc_asia) is not allowed. See MATLAB 7.10 Release Notes, "Subscripting Into Function Return Values" for details. ??? Attempt to reference field of non-structure array.

回答:

你应该直接输入

test_bnpc_asia

而不是

test_bnpc_asia.m

文件扩展名会自动添加。 如果你添加它,MATLAB 会认为函数 test_bnpc_asia 返回一个结构,并且你想访问该结构中包含的字段“m”。

Related Posts

L1-L2正则化的不同系数

我想对网络的权重同时应用L1和L2正则化。然而,我找不…

使用scikit-learn的无监督方法将列表分类成不同组别,有没有办法?

我有一系列实例,每个实例都有一份列表,代表它所遵循的不…

f1_score metric in lightgbm

我想使用自定义指标f1_score来训练一个lgb模型…

通过相关系数矩阵进行特征选择

我在测试不同的算法时,如逻辑回归、高斯朴素贝叶斯、随机…

可以将机器学习库用于流式输入和输出吗?

已关闭。此问题需要更加聚焦。目前不接受回答。 想要改进…

在TensorFlow中,queue.dequeue_up_to()方法的用途是什么?

我对这个方法感到非常困惑,特别是当我发现这个令人费解的…

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注