Closed russelljjarvis closed 6 years ago
Implemented in russelljjarvis/dev
branch. Russell, could you reference a block of code or commit number here and close the issue?
Sorry Rick I didn't see this. However, as we have decided to remove Test Class attributes prediction
and the same or similar functionality can be achieved by pulling observations/predictions out of score, and storing them in lists.
Optimizer should really compare best candidate model predictions to observations, as well as comparing results to an exhaustive search.
To achieve this I am running:
which results in more invocations of the simulator.
It would be more efficient to store the last predictions in the test object, in the same way that observations are stored.
As a concrete example:
in the
tests/__init__.py file
:generate_prediction acts on a local variable that is returned by calling the function.
If instead the test classes had a variable declared like:
self.stored_prediction = None
: which is subsequently over written inside generate_prediction with something like:then I can iterate over completed tests and plot the the differences between observations and predictions, as would be a faster and more reliable way to debug the evolution of the error in the GA.
I have also included the standard definition of APThresholdTest class including its generate_prediction method for contrast.