Closed jonas-he closed 7 years ago
First, sorry for the long response time. but I'm currently on holidays and have only occasionally access to internet and a pc...
Yes, the test file doesn't handle the case when no predictions are returned. That happens in this case because there is no data available to cretae the classifier as the URL returns none.
However, there is now some mock data to test predictions without using the sightings from the URL.
if you get the error Error: no cooc data
then zou requested predictions before the classifier was created (which will be the case in the testPrediction.js
file for the first few predictions due to simplicity).
If you get an error that "weka cannot find the classifer.model" the reason is the same.
@bensLine So I downloaded the new package and ran the
testPrediction.js
(with url to local API). It seems like there are 0 predictions returned now (thus theTypeError
). Before the change I think there were results since it printed something withconfidence
and so on.