Problem With K2 Algoritm
显示 更早的评论
Recently I have found an algorithm for learning DAG structure in bayesian network. The problem appears when I try to run the code and sen me the next issue: "Undefined function 'ConstructLGObj' for input arguments of type 'double'". This is the code of that function:
function LGObj = ConstructLGObj( OriginalSample )
LGObj.VarNumber = size( OriginalSample, 2);
LGObj.CaseLength = size( OriginalSample, 1);
LGObj.VarSample = OriginalSample;
[ LGObj.VarRange,LGObj.VarRangeLength ] = DimensionRangeValue( OriginalSample,1 : LGObj.VarNumber );
end
The Sample.mat file is a matrix of double. I have not found information about that data type (OriginalSample) and how can I solve this problem.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Classification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!