hive.agents.qnets.base module
- class hive.agents.qnets.base.FunctionApproximator(fn)[source]
Bases:
hive.utils.registry.CallableTypeA wrapper for callables that produce function approximators.
For example,
FunctionApproximator(create_neural_network)orFunctionApproximator(MyNeuralNetwork)wherecreate_neural_networkis a function that creates a neural network module andMyNeuralNetworkis a class that defines your function approximator.These wrapped callables can be partially initialized through configuration files or command line arguments.
- Parameters
fn – callable to be wrapped.