Ml5-library: Support Strings as labels/classes for KNNImage

Created on 13 Mar 2018  路  3Comments  路  Source: ml5js/ml5-library

API enhancement

Most helpful comment

thanks @yining1023! I'm refactoring to the new tensorflow api and this is being covered in those changes. I forgot to assign it

All 3 comments

I can make some changes to let it support both labels and numbers -

knn.addImage(imageOne, '1');
knn.addImage(imageOne, 'apple');

thanks @yining1023! I'm refactoring to the new tensorflow api and this is being covered in those changes. I forgot to assign it

Was this page helpful?
0 / 5 - 0 ratings