Skip to content

Commit b0e4cbe

Browse files
committed
Update config and add normalization
1 parent 276f25b commit b0e4cbe

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

autoemulate/experimental/config_models.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ class DataConfig(BaseModel):
152152
# DataLoader configuration
153153
batch_size: int = Field(default=4, description="Batch size for DataLoader")
154154
dtype: str = Field(default="float32", description="Data type (float32 or float64)")
155+
use_normalization: bool = Field(
156+
default=False, description="Whether to use normalization (for Well datasets)"
157+
)
155158

156159
def get_source_type(self) -> DataSourceType:
157160
"""Automatically determine data source type from configuration."""
@@ -161,10 +164,9 @@ def get_source_type(self) -> DataSourceType:
161164
# Auto-detect based on fields
162165
if self.well_dataset_name is not None:
163166
return DataSourceType.WELL_NATIVE
164-
elif self.data_path is not None:
167+
if self.data_path is not None:
165168
return DataSourceType.FILE
166-
else:
167-
return DataSourceType.GENERATED
169+
return DataSourceType.GENERATED
168170

169171

170172
class TeacherForcingConfig(BaseModel):

autoemulate/experimental/configs/turbulent_radiative_layer_2d.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ formatter_type: "default_channels_first"
1515
model_params:
1616
modes1: 16
1717
modes2: 16
18-
width: 20
19-
n_blocks: 4
18+
hidden_channels: 128
19+
# width: 20
20+
# n_blocks: 4
2021

2122
# Data configuration - The Well native dataset
2223
# Setting well_dataset_name automatically uses WELL_NATIVE source type
@@ -26,6 +27,7 @@ data:
2627
n_steps_input: 4
2728
n_steps_output: 1
2829
batch_size: 4
30+
use_normalization: true
2931

3032
# No simulator section needed for native Well datasets!
3133

0 commit comments

Comments
 (0)