MCPcopy Create free account
hub / github.com/OpenBMB/AgentCPM-GUI / __init__

Method __init__

eval/run_eval_agent.py:37–41  ·  view source on GitHub ↗
(self, data_dir, split="test", ratio=1.0)

Source from the content-addressed store, hash-verified

35 }
36
37 def __init__(self, data_dir, split="test", ratio=1.0) -> None:
38 self.ratio = ratio
39 self.data_dir = os.path.join(data_dir, split)
40 self.episode_data = self._load_data_()
41 self.data = self._split_to_steps_(self.episode_data)
42
43 def _load_data_(self):
44 valid_paths = defaultdict(list)

Callers

nothing calls this directly

Calls 2

_load_data_Method · 0.95
_split_to_steps_Method · 0.95

Tested by

no test coverage detected