hive.utils.utils module
- hive.utils.utils.create_folder(folder)[source]
Creates a folder.
- Parameters
folder (str) – Folder to create.
- class hive.utils.utils.Seeder[source]
Bases:
object
Class used to manage seeding in RLHive. It sets the seed for all the frameworks that RLHive currently uses. It also deterministically provides new seeds based on the global seed, in case any other objects in RLHive (such as the agents) need their own seed.
- class hive.utils.utils.Chomp[source]
Bases:
dict
An extension of the dictionary class that allows for accessing through dot notation and easy saving/loading.
- class hive.utils.utils.OptimizerFn(fn)[source]
Bases:
CallableType
A wrapper for callables that produce optimizer functions.
These wrapped callables can be partially initialized through configuration files or command line arguments.
- Parameters
fn – callable to be wrapped.
- class hive.utils.utils.LossFn(fn)[source]
Bases:
CallableType
A wrapper for callables that produce loss functions.
These wrapped callables can be partially initialized through configuration files or command line arguments.
- Parameters
fn – callable to be wrapped.