You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(KNNClassifier): Add loadData() that enables user to load dat… (#279)
* feat(KNNClassifier): Add loadData() that enables user to load dataset from raw data instead of file
With load(), file path needs to be provided to load dataset. This means that JSON file that has
dataset needs to be located on the server. You can give a way to download dataset using save(), but
you cannot give a way to upload that file and load the dataset. This commit adds loadData() that
enables user to load dataset from raw data. By combining this method and <INPUT type="file"> tag,
you can give a way for user to upload dataset file.
* Merge load(path, callback) and loadData(data, callback) into load(pathOrJson, callback).
* Merge load() and loadData() in a cleaner way without using Symbol.
Ref. #279 (comment)
0 commit comments