-
Notifications
You must be signed in to change notification settings - Fork 3
Description
While the behavior of get_value_function_representation is wonderful it is hard to understand and in the future we might need a more general version of it (not only for the value function but for general functions). I suggest following high-level steps that should be taken in get_function_representation:
-
Since the function will be called with named arguments, we need to know which
argument name corresponds to which array dimension. -
Because array elements are retrieved through indexing, but a function is called
on levels, we require a mapping from levels to indices. -
For continuous variables, we want to be able to call the function on levels that
do not occur in the grid. This requires us to interpolate the function values on
said grid.
Helper functions need to be renamed accordingly.
Task
- Refactor
function_representation.pymodule - Redesign
function_representation.ipynbnotebook