Expose expected minimum in result response#26
Conversation
sqbl
left a comment
There was a problem hiding this comment.
Hi, Looks good to me. This is a killer feature to add!
As I understand, specifications.yml states that expected_minimum is returned as a list of lists. It is good if we keep it this way.
Today the simple call of expected_minimum (as outlined in optimizer.py) will return a list comprising the recipe for the expected_min (as a list) and a guestimate of the value (as a number).
In a near future, we can add a flag to the call of expected_min that will also return the standard deviation in the guestimated value. This standard deviation will be returned as part of a list together with the value.
As in:
expected_minimum(result, return_std=True)
>>> ([x[0],...,x[n]], [y-value, y-std])
I believe that the presented implementation (in the API back-end) will already allow such data structure from the call(?).
Best,
Søren
|
Correct, the data structure will be able to support standard deviation (and additional values) in the current specification. |
Add expected minimum to the result.
Closes #10