The expression in the formula:
if contains([FullPath], 'broken') then 'Broken' else 'Not Broken' endif
only returns "Broken" values son the model is trained only with one label
to correct replace with:
if contains([FullPath], 'labeled--broken--') then 'Broken' else 'Not Broken' endif
@AlteryxProducts please report this error so the example can be fixed
Hola Juanpa,
Thanks for the heads-up, well let the team aware of this.
Gabriel
The error is still in the "Image Recognition.yxmd" sample.
if contains([FullPath], 'broken') then 'Broken' else 'Not Broken' endif
(sets all records incorrectly as Broken - due to "broken" being in all [FullPath] records.
should be something similar to:
if contains([FullPath], 'notbroken') then 'Not Broken' else 'Broken' endif
(sets all records correctly as Not Broken and Broken)