Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when executing the example #2

Open
marwa-afifi2021 opened this issue Mar 15, 2022 · 0 comments
Open

Error when executing the example #2

marwa-afifi2021 opened this issue Mar 15, 2022 · 0 comments

Comments

@marwa-afifi2021
Copy link

When executing the example, the following error is triggered
'NoneType' object is not subscriptable

TypeError Traceback (most recent call last)
/tmp/ipykernel_97027/1701108376.py in
37 evaluator.evaluate(stream=stream,
38 model=[AXGBp, AXGBr],
---> 39 model_names=['AXGBp', 'AXGBr'])

~/lib/python3.7/site-packages/skmultiflow/evaluation/evaluate_prequential.py in evaluate(self, stream, model, model_names)
248 self._init_file()
249
--> 250 self.model = self._train_and_test()
251
252 if self.show_plot:

~/lib/python3.7/site-packages/skmultiflow/evaluation/evaluate_prequential.py in _train_and_test(self)
373
374 if len(set(self.metrics).difference({constants.DATA_POINTS})) > 0:
--> 375 self.evaluation_summary()
376 else:
377 print('Done')

~/lib/python3.7/site-packages/skmultiflow/evaluation/base_evaluator.py in evaluation_summary(self)
610 print('{} - Accuracy : {:.4f}'.format(
611 self.model_names[i],
--> 612 self._data_buffer.get_data(metric_id=constants.ACCURACY, data_id=constants.MEAN)[i]))
613 if constants.KAPPA in self.metrics:
614 print('{} - Kappa : {:.4f}'.format(

TypeError: 'NoneType' object is not subscriptable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant