(self, save_dir, eval_android_control=False)
| 152 | class ActionEvaluator(object): |
| 153 | |
| 154 | def __init__(self, save_dir, eval_android_control=False) -> None: |
| 155 | self.save_dir = save_dir |
| 156 | # compatible with aitz evaluator |
| 157 | self.demo_mode = "COA" |
| 158 | self.screen_mode = "txt" |
| 159 | |
| 160 | self._aitz_action_type_ = ActionType |
| 161 | self._stop_status = [ |
| 162 | "finish", |
| 163 | "satisfied", |
| 164 | "impossible", |
| 165 | "interrupt", |
| 166 | "need_feedback" |
| 167 | ] |
| 168 | self.eval_android_control = eval_android_control |
| 169 | |
| 170 | def action_map(self, action_api: dict): |
| 171 | action = action_api.get('ACTION', None) |
nothing calls this directly
no outgoing calls
no test coverage detected