-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmd.sh
47 lines (40 loc) · 1.37 KB
/
cmd.sh
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
#!/bin/bash
# Copyright (c) 2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-License-Identifier: MPL-2.0
# This file is part of L2RPN Baselines, L2RPN Baselines a repository to host baselines for l2rpn competitions.
export WG_NAME=wg-X.0.0.x
export WG_DATA=~/data_grid2op/l2rpn_wcci_2020
./inspect_action_space.py --path_data $WG_DATA
rm -rf ./logs-train/$WG_NAME
# First time
./train.py\
--name $WG_NAME \
--data_dir $WG_DATA \
--num_episode 10000
# Flann update
./train.py\
--name $WG_NAME \
--data_dir $WG_DATA \
--action_file ./models/$WG_NAME/actions.npy \
--num_episode 100000
# Hypers
./train.py\
--name $WG_NAME \
--data_dir $WG_DATA \
--action_file ./models/$WG_NAME/actions.npy \
--flann_index_file ./models/$WG_NAME/flann.index \
--flann_pts_file ./models/$WG_NAME/flann.npy \
--num_episode 100000
rm -rf ./logs-eval/$WG_NAME
./evaluate.py \
--verbose \
--data_dir $WG_DATA \
--load_dir ./models/$WG_NAME/ \
--load_action ./models/$WG_NAME/actions.npy \
--load_flann ./models/$WG_NAME/flann.index \
--logs_dir ./logs-eval/$WG_NAME \
--nb_episode 10