MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / Dataset

Class Dataset

AgentBench.old/src/task.py:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59class Dataset(Generic[T_INPUT, T_TARGET], List[DataPiece[T_INPUT, T_TARGET]]):
60 def get_inputs(self) -> List[T_INPUT]:
61 return [item.input for item in self]
62
63 def get_targets(self) -> List[T_TARGET]:
64 return [item.target for item in self]
65
66
67class Task(Generic[T_INPUT, T_OUTPUT, T_TARGET]):

Callers 8

get_dataMethod · 0.90
get_dataMethod · 0.90
get_dataMethod · 0.90
get_dataMethod · 0.90
get_dataMethod · 0.90
get_dataMethod · 0.90
get_dataMethod · 0.90
get_dataMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected