hive.agents.qnets.base module

class hive.agents.qnets.base.FunctionApproximator(fn)[source]

Bases: CallableType

A wrapper for callables that produce function approximators.

For example, FunctionApproximator(create_neural_network) or FunctionApproximator(MyNeuralNetwork) where create_neural_network is a function that creates a neural network module and MyNeuralNetwork is 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.

classmethod type_name()[source]
Returns

“function”