rmcat Adapter#
#
- class network_gym_client.envs.rmcat.Adapter(config_json)[source]#
rmcat env adapter.
- Parameters:
Adapter (network_gym_client.adapter.Adapter) – base class.
Initialize the adapter.
- Parameters:
config_json (json) – the configuration file
Methods#
- network_gym_client.envs.rmcat.Adapter.get_observation(self, df)#
Prepare observation for rmcat env.
This function should return the same number of features defined in the
get_observation_space()
.- Parameters:
df (pd.dataframe) – network stats measurement
- Returns:
spaces – observation spaces
- network_gym_client.envs.rmcat.Adapter.get_reward(self, df)#
Prepare reward for the rmcat env.
- Parameters:
df (pd.DataFrame) – network stats
- Returns:
spaces – reward spaces
- network_gym_client.envs.rmcat.Adapter.get_policy(self, action)#
Prepare policy for the rmcat env.
- Parameters:
action (spaces) – action from the RL agent
- Returns:
json – network policy
Reward Methods#
Additional Methods#
- network_gym_client.envs.rmcat.Adapter.get_action_space(self)#
Get action space for the rmcat env.
- Returns:
spaces – action spaces
- network_gym_client.envs.rmcat.Adapter.get_observation_space(self)#
Get the observation space for rmcat env.
- Returns:
spaces – observation spaces