You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autointent/configs/_optimization.py
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,24 @@ class DataConfig(BaseModel):
17
17
"""Hold-out or cross-validation."""
18
18
n_folds: PositiveInt=Field(3, description="Number of folds in cross-validation.")
19
19
"""Number of folds in cross-validation."""
20
-
validation_size: FloatFromZeroToOne=Field(0.2, description="Fraction of train samples to allocate for validation (if input dataset doesn't contain validation split).")
20
+
validation_size: FloatFromZeroToOne=Field(
21
+
0.2,
22
+
description=(
23
+
"Fraction of train samples to allocate for validation (if input dataset doesn't contain validation split)."
24
+
),
25
+
)
21
26
"""Fraction of train samples to allocate for validation (if input dataset doesn't contain validation split)."""
22
-
separation_ratio: FloatFromZeroToOne|None=Field(0.5, description="Set to float to prevent data leak between scoring and decision nodes.")
27
+
separation_ratio: FloatFromZeroToOne|None=Field(
28
+
0.5, description="Set to float to prevent data leak between scoring and decision nodes."
29
+
)
23
30
"""Set to float to prevent data leak between scoring and decision nodes."""
24
31
25
32
26
33
classLoggingConfig(BaseModel):
27
34
"""Configuration for the logging."""
28
35
36
+
_run_name=get_run_name()
37
+
29
38
project_dir: Path|str|None=Field(None, description="Path to the directory with different runs.")
30
39
"""Path to the directory with different runs."""
31
40
run_name: str|None=Field(None, description="Name of the run. If None, a random name will be generated.")
@@ -34,16 +43,17 @@ class LoggingConfig(BaseModel):
34
43
"""Whether to dump the modules or not"""
35
44
clear_ram: bool=Field(False, description="Whether to clear the RAM after dumping the modules")
36
45
"""Whether to clear the RAM after dumping the modules"""
37
-
report_to: list[REPORTERS_NAMES] |None=Field(None, description="List of callbacks to report to. If None, no callbacks will be used") # type: ignore[valid-type]
0 commit comments