[algorithms] View successful environments in which algorithm was run
In order to improve usability and predictability of algorithm behaviour on new environments, it would be good to display statistics of algorithm usage on environments, w.r.t. success on experiments/blocks.
For that purpose, I have implemented modifications to the schema and new methods that allow us to easily query for environments()
in which an algorithm has successfully ran. The method beat.web.algorithms.Algorithm.environments()
now returns a dictionary object that has as keys the environment objects and as values the number of times the algorithm has been used with that environment on a successful experiment (or block [status == Block.CACHED], in case the experiment has failed).
I'm not sure how to best plug this django method so that we can visualise the results on an algorithm display page. Could one of you please do it?
I think the idea is to:
- Update the serialiser for the algorithm class, to include
environments
- Display the environments with the algorithm display page.