build#

RLModuleSpec.build() → RLModule[source]#

Builds the RLModule from this spec.

Returns:

A new instance of module_class, built from this spec’s spaces, model config, and catalog class.

Raises:

ValueError – If module_class or observation_space isn’t set.

Return type:

RLModule