ROSAME
- class amlgym.algorithms.ROSAME.ROSAME(**kwargs)[source]
Bases:
PassiveAlgorithmAdapterAdapter class for running an unofficial implementation of the ROSAME algorithm: “Neuro-Symbolic Learning of Lifted Action Models from Visual Traces”, Kai Xi, Stephen Gould, Sylvie Thiebaux, Proceedings of the Thirty-Fourth International Conference on Automated Planning and Scheduling, 2024. https://ojs.aaai.org/index.php/ICAPS/article/download/31528/33688
Example
from amlgym.algorithms import get_algorithm rosame = get_algorithm('ROSAME') model = rosame.learn('path/to/domain.pddl', ['path/to/trace0', 'path/to/trace1']) print(model)
- __init__(**kwargs)[source]
- learn(domain_path, trajectory_paths, use_problems=True)[source]
- Learns a PDDL action model from:
a (possibly empty) input model which is required to specify the predicates and operators signature;
a list of trajectory file paths.
- Parameters:
domain_path (
str) – input PDDL domain file pathtrajectory_paths (
List[str]) – list of trajectory file pathsuse_problems (
bool) – boolean flag indicating whether to provide the set of objects specified in the problem from which the trajectories have been generated
- Return type:
str- Returns:
a string representing the learned PDDL model