-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdata_flags.py
More file actions
102 lines (97 loc) · 3.49 KB
/
data_flags.py
File metadata and controls
102 lines (97 loc) · 3.49 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
"""
Copyright (C) 2023 Samsung Electronics Co. LTD
This software is a property of Samsung Electronics.
No part of this software, either material or conceptual may be copied or distributed, transmitted,
transcribed, stored in a retrieval system or translated into any human or computer language in any form by any means,
electronic, mechanical, manual or otherwise, or disclosed
to third parties without the express written permission of Samsung Electronics.
"""
import argparse
class DataFlags:
def __init__(self):
self.parser = argparse.ArgumentParser(description="Data preprocessing")
self.parser.add_argument(
"--data",
type=str,
default=None,
help="Path of a single data source file (.xyz or .extxyz)",
)
self.parser.add_argument(
"--data-output-name",
type=str,
default=None,
help="name of the single data output lmdb file (default policy is that its name is maintained)",
)
self.parser.add_argument(
"--train-data",
type=str,
default=None,
help="Path of a train data file (.xyz or .extxyz)",
)
self.parser.add_argument(
"--train-data-output-name",
type=str,
default="train",
help="name of the train data output lmdb file (default: train)",
)
self.parser.add_argument(
"--valid-data",
type=str,
default=None,
help="Path of a valid data file (.xyz or .extxyz)",
)
self.parser.add_argument(
"--valid-data-output-name",
type=str,
default="valid",
help="name of the valid data output lmdb file (default: valid)",
)
self.parser.add_argument(
"--test-data",
type=str,
default=None,
help="Path of a test data file (.xyz or .extxyz)",
)
self.parser.add_argument(
"--test-data-output-name",
type=str,
default="test",
help="name of the test data output lmdb file (default: test)",
)
self.parser.add_argument(
"--out-path",
type=str,
default=None,
help="Directory to save output data. If not given, the output data is saved at a parent directory where --data or --train-data exist",
)
self.parser.add_argument(
"--r-max",
type=float,
default=None,
help="If the cutoff radius is set, output LMDB files include edge index information, which means otf_graph in config files can be False.",
)
self.parser.add_argument(
"--get-stress",
type=bool,
default=True,
help="Save stress"
)
self.parser.add_argument(
"--max-neighbors",
type=int,
default=None,
help="The maximum number of neighbors",
)
self.parser.add_argument(
"--save-normalization",
type=bool,
default=True,
help="Save statistics obtained from train data for normalization"
)
self.parser.add_argument(
"--energy-type",
type=str,
choices=["free_energy", "total_energy"],
default="free_energy",
help="Energy type used to calculate normalization information (default: free_energy)",
)