分析学習器で作成した​モデルで、新しいデー​タを予測する際にエラ​ーが出て実施できない​。

1 view (last 30 days)
勝也 秋元
勝也 秋元 on 7 Oct 2021
関連するモデル、ファイルを添付します。
モデル:GS_DR_Model.mat
学習データ:Learn.xls
テストデータ:test.xls
エラーメッセージ
>> yfit = GS_DR_Model.predictFcn(test)
エラー: classreg.learning.internal.table2PredictMatrix>makeXMatrix (行 116)
テーブル変数 EngineSpeedAtEngagementDR は有効な予測子ではありません。
エラー: classreg.learning.internal.table2PredictMatrix (行 61)
Xout = makeXMatrix(X,CategoricalPredictors,vrange,pnames);
エラー: classreg.learning.classif.CompactClassificationTree/predict (行 894)
X = classreg.learning.internal.table2PredictMatrix(X,[],[],...
エラー: mlearnapp.internal.model.adapterlayer.TrainedClassificationTree>@(x)predict(ClassificationTree,x) (行 50)
functionHandle = @(x) predict(ClassificationTree, x);
エラー: mlearnapp.internal.model.transformation.TrainedManualFeatureSelection>@(x)decoratedPredictFunction(featureSelectionFunction(x)) (行
66)
functionHandle = @(x) decoratedPredictFunction(featureSelectionFunction(x));
エラー: mlearnapp.internal.model.DatasetSpecification>@(x)exportableModel.predictFcn(predictorExtractionFcn(x)) (行 187)
newExportableModel.predictFcn = @(x) exportableModel.predictFcn(predictorExtractionFcn(x));

Answers (0)

Categories

Find more on 起動と終了 in Help Center and File Exchange

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!