用于贝叶斯网络工具箱 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

使用LSTM在Python中预测未来值

这段代码可以预测指定股票的当前日期之前的值,但不能预测…

如何在gensim的word2vec模型中查找双词组的相似性

我有一个word2vec模型,假设我使用的是googl…

dask_xgboost.predict 可以工作但无法显示 – 数据必须是一维的

我试图使用 XGBoost 创建模型。 看起来我成功地…

ML Tuning – Cross Validation in Spark

我在https://spark.apache.org/…

如何在React JS中使用fetch从REST API获取预测

我正在开发一个应用程序,其中Flask REST AP…

如何分析ML.NET中多类分类预测得分数组?

我在ML.NET中创建了一个多类分类项目。该项目可以对…

发表回复

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