mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
Update dataset_env.py
This commit is contained in:
parent
6c2f1ac408
commit
eb5be87f81
1 changed files with 1 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ class DatasetEnv(BaseEnv):
|
|||
self.metric_buffer = {}
|
||||
|
||||
self.reward_function = self._initialize_reward_function()
|
||||
self.current_item = None
|
||||
|
||||
def _initialize_reward_function(self):
|
||||
if hasattr(self.config, "reward_functions") and self.config.reward_functions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue