Check for missing argument or incorrect argument data type in call to function 'predict'

1 回表示 (過去 30 日間)
Alessandro Chimetto
Alessandro Chimetto 2020 年 6 月 6 日
回答済み: Gaurav Garg 2020 年 6 月 9 日
F1 = predict(dlnet,dlX1);
this function call triggers this error: Check for missing argument or incorrect argument data type in call to function 'predict'. These are the variables involved:
dlnet: [1×1 dlnetwork]
dlX1: 224(S) × 224(S) × 1(C) × 1(B) single gpuArray dlarray
Cannot understand what I'm doing wrong

回答 (1 件)

Gaurav Garg
Gaurav Garg 2020 年 6 月 9 日
Hi Alessandro
The data types of the 2 arguments for predict function should be -
  1. A ClassificationTree or CompactClassificationTree model object,
  2. table or double or single
For any more info on predict, please go through the documentation.

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by