Model exported from Classification Learner doesn't work with the same data

2 ビュー (過去 30 日間)
Valentina Baljak
Valentina Baljak 2015 年 4 月 23 日
コメント済み: Tom Lane 2015 年 4 月 28 日
I have exported several models, full and compact, from Classification Learner in order to use them in a workspace on new data. However, all of them throw the same error with training set and test set.
Unrecognized variable name 'predict_1'.
The exported code shows the name as a part of prediction vector, and it looks correct. The training code accepts both datasets, training and test... I couldn't find the way to fix this so far.
Thanks
  1 件のコメント
Tom Lane
Tom Lane 2015 年 4 月 28 日
Can you show the fragment of generated code that is leading to this message? Did you fit to a table with a variable predict_1, and does the table you are providing to the generated code also have a variable by this name?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeClassification Learner App についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by