how to use augmentedImageDatastore for validation

1 回表示 (過去 30 日間)
Gent Ymeri
Gent Ymeri 2019 年 3 月 26 日
コメント済み: 0xJcam 2020 年 11 月 29 日
Is there a way to use augmentedImageDatastore (in my case augimds30) for validation?
for e.x. I split dataset in 70 by 30 percent, and I augment like this:
augimds30 = augmentedImageDatastore([50 50 3],imds30)
but then how to use this here for validation instead of imds30?
YPred = classify(net,imds30);
YValidation = imds30.Labels;
because if I put here augimds30 I get :
No appropriate method, property, or field 'Labels' for class 'augmentedImageDatastore'.
Error in cnn (line 50)
YValidation = augimds30.Labels;
  1 件のコメント
0xJcam
0xJcam 2020 年 11 月 29 日
Hello Sr.
I already had the same question and digging on internet I found following answer...
It is not posible cause the name-value pair 'ValidationData' can support only the following types as a value:
  1. Image Data Store.
  2. Data Store.
  3. Table.
  4. Cell array of X and Y, where X represents data while Y represents corresponding labels.
Hope this can be helpful to someone.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by