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

plot_auroc: TypeError: 'NoneType' object is not subscriptable #88

Closed
WGierke opened this issue Jun 20, 2018 · 1 comment
Closed

plot_auroc: TypeError: 'NoneType' object is not subscriptable #88

WGierke opened this issue Jun 20, 2018 · 1 comment
Assignees

Comments

@WGierke
Copy link
Contributor

WGierke commented Jun 20, 2018

On the current master:

Traceback (most recent call last):
  File "main.py", line 118, in <module>
    main()
  File "main.py", line 17, in main
    run_experiments()
  File "main.py", line 88, in run_experiments
    steps=1)
  File "/repo/experiments.py", line 49, in run_extremes_experiment
    evaluator.plot_auroc(title='Area under the curve for differing outlier heights')
  File "/repo/src/evaluation/evaluator.py", line 220, in plot_auroc
    aurocs = self.benchmark_results[self.benchmark_results['algorithm'] == det.name]['auroc']
TypeError: 'NoneType' object is not subscriptable
@WGierke WGierke added bug Something isn't working and removed bug Something isn't working labels Jun 20, 2018
@WGierke
Copy link
Contributor Author

WGierke commented Jun 20, 2018

We solved it in #83 by manually setting

evaluator.benchmark_results = evaluator.benchmarks()

in all experiment methods. Explicitly setting an instance variable in this way is no nice style and should be refactored.

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

3 participants