-
Notifications
You must be signed in to change notification settings - Fork 4
/
engineer.py
42 lines (36 loc) · 1 KB
/
engineer.py
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
import sys
from pathlib import Path
sys.path.append("..")
from src.engineer import (
GeoWikiEngineer,
PVKenyaEngineer,
KenyaNonCropEngineer,
TogoEngineer,
TogoEvaluationEngineer,
EthiopiaEngineer,
SudanEngineer,
BrazilEngineer,
MaliEngineer,
)
def engineer():
for engineer_class in [
GeoWikiEngineer,
PVKenyaEngineer,
KenyaNonCropEngineer,
TogoEngineer,
EthiopiaEngineer,
SudanEngineer,
BrazilEngineer,
MaliEngineer,
TogoEvaluationEngineer,
]:
engineer = engineer_class(Path("../../landcover-mapping-gabi/data"))
print(f"Engineering: {engineer.dataset}")
if isinstance(engineer, TogoEngineer):
# all evaluation data will be
# captured by the Togo evaluation set.
# This is the only dataset where the train / val / test
# distinction matters
engineer.engineer(test_set_size=0)
if __name__ == "__main__":
engineer()