File size: 1,857 Bytes
079c32c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from easydict import EasyDict

league_test_config = dict(
    league=dict(
        # league_type='fake',
        import_names=['ding.league'],
        # ---player----
        player_category=['zerg', 'terran', 'protoss'],
        active_players=dict(
            main_player=1,
            main_exploiter=1,
            league_exploiter=2,
        ),
        main_player=dict(
            branch_probs=dict(
                pfsp=0.5,
                sp=0.35,
                verification=0.15,
            ),
            strong_win_rate=0.7,
            one_phase_step=2000,
        ),
        main_exploiter=dict(
            branch_probs=dict(main_players=1.0, ),
            strong_win_rate=0.7,
            one_phase_step=2000,
            min_valid_win_rate=0.2,
        ),
        league_exploiter=dict(
            branch_probs=dict(pfsp=1.0, ),
            strong_win_rate=0.7,
            one_phase_step=2000,
            mutate_prob=0.25,
        ),
        # solo_active_player:
        #     one_phase_step=2000
        #     forward_kwargs:
        #         exploration_type=[]
        #     env_kwargs:
        #         env_num=8
        #         episode_num=2
        #     adder_kwargs:
        #         use_gae=False
        #         data_push_length=128
        #     job:
        #         agent_update_freq=30  # second
        #         compressor='none'
        use_pretrain=True,
        use_pretrain_init_historical=True,
        pretrain_checkpoint_path=dict(
            zerg='pretrain_checkpoint_zerg.pth',
            terran='pretrain_checkpoint_terran.pth',
            protoss='pretrain_checkpoint_protoss.pth',
        ),
        # ---payoff---
        payoff=dict(
            type='battle',
            decay=0.99,
            min_win_rate_games=8,
        ),
    ),
)
league_test_config = EasyDict(league_test_config)