Shortcuts

Source code for openrl.selfplay.base_strategy

import json
from abc import abstractmethod


[docs]class BaseSelfplayStrategy: @abstractmethod def __init__(self, all_args, nenvs, exist_enemy_num): raise NotImplementedError
[docs] @abstractmethod def getcnt(self): raise NotImplementedError
[docs] @abstractmethod def update_enemy_ids(self, new_enemy_ids): raise NotImplementedError
[docs] @abstractmethod def restore(self, model_dir): raise NotImplementedError
[docs] @abstractmethod def get_qlist(self): raise NotImplementedError
[docs] @abstractmethod def update_weight(self, enemy_loses): raise NotImplementedError
[docs] @abstractmethod def update_win_rate(self, dones, enemy_wins): raise NotImplementedError
[docs] @abstractmethod def push_newone(self): raise NotImplementedError
[docs] @abstractmethod def get_plist(self): raise NotImplementedError