|
| 1 | +from dataclasses import dataclass |
| 2 | + |
| 3 | +from torch import nn |
| 4 | + |
| 5 | + |
| 6 | +@dataclass |
| 7 | +class MultiONetConfig: |
| 8 | + """Model config for MultiONet for the cloud_parametric dataset""" |
| 9 | + |
| 10 | + # cloud_parametric_final_multionet, trial 27 |
| 11 | + scheduler: str = "poly" |
| 12 | + optimizer: str = "AdamW" |
| 13 | + loss_function: nn.Module = nn.MSELoss() |
| 14 | + activation: nn.Module = nn.ELU() |
| 15 | + branch_hidden_layers: int = 4 |
| 16 | + hidden_size: int = 100 |
| 17 | + learning_rate: float = 0.00184 |
| 18 | + output_factor: int = 40 |
| 19 | + params_branch: bool = True |
| 20 | + poly_power: float = 1.52 |
| 21 | + regularization_factor: float = 0.0171 |
| 22 | + trunk_hidden_layers: int = 4 |
| 23 | + |
| 24 | + |
| 25 | +@dataclass |
| 26 | +class LatentNeuralODEConfig: |
| 27 | + """Model config for LatentNeuralODE for the cloud_parametric dataset""" |
| 28 | + |
| 29 | + # cloud_parametric_final_latentneuralode, trial 299 |
| 30 | + scheduler: str = "schedulefree" |
| 31 | + optimizer: str = "SGD" |
| 32 | + loss_function: nn.Module = nn.SmoothL1Loss() |
| 33 | + activation: nn.Module = nn.GELU() |
| 34 | + beta: float = 9.61 |
| 35 | + coder_layers: int = 2 |
| 36 | + coder_width: int = 180 |
| 37 | + encode_params: bool = False |
| 38 | + latent_features: int = 10 |
| 39 | + learning_rate: float = 0.00693 |
| 40 | + momentum: float = 0.613 |
| 41 | + ode_layers: int = 3 |
| 42 | + ode_tanh_reg: bool = False |
| 43 | + ode_width: int = 220 |
| 44 | + regularization_factor: float = 0.000134 |
| 45 | + |
| 46 | + |
| 47 | +@dataclass |
| 48 | +class FullyConnectedConfig: |
| 49 | + """Model config for FullyConnected for the cloud_parametric dataset""" |
| 50 | + |
| 51 | + # cloud_parametric_final_fullyconnected, trial 61 |
| 52 | + scheduler: str = "poly" |
| 53 | + optimizer: str = "AdamW" |
| 54 | + loss_function: nn.Module = nn.SmoothL1Loss() |
| 55 | + activation: nn.Module = nn.ELU() |
| 56 | + beta: float = 0.299 |
| 57 | + hidden_size: int = 290 |
| 58 | + learning_rate: float = 0.00331 |
| 59 | + num_hidden_layers: int = 5 |
| 60 | + poly_power: float = 1.88 |
| 61 | + regularization_factor: float = 0.113 |
| 62 | + |
| 63 | + |
| 64 | +@dataclass |
| 65 | +class LatentPolyConfig: |
| 66 | + """Model config for LatentPoly for the cloud_parametric dataset""" |
| 67 | + |
| 68 | + # cloud_parametric_final_latentpoly, trial 13 |
| 69 | + scheduler: str = "poly" |
| 70 | + optimizer: str = "AdamW" |
| 71 | + loss_function: nn.Module = nn.SmoothL1Loss() |
| 72 | + activation: nn.Module = nn.ReLU() |
| 73 | + beta: float = 2.88 |
| 74 | + coder_layers: bool = True |
| 75 | + coder_width: int = 170 |
| 76 | + coeff_network: bool = False |
| 77 | + degree: int = 9 |
| 78 | + latent_features: int = 10 |
| 79 | + learning_rate: float = 0.00551 |
| 80 | + poly_power: float = 1.65 |
| 81 | + regularization_factor: float = 0.00629 |
| 82 | + |
| 83 | + |
| 84 | +# @dataclass |
| 85 | +# class MultiONetConfig: |
| 86 | +# """Model config for MultiONet for the simple_ode dataset""" |
| 87 | + |
| 88 | +# # cloud, trial 69 |
| 89 | +# branch_hidden_layers: int = 1 |
| 90 | +# trunk_hidden_layers: int = 9 |
| 91 | +# hidden_size: int = 225 |
| 92 | +# output_factor: int = 63 |
| 93 | +# learning_rate: float = 4e-5 # optimal for ~4000 epochs |
| 94 | +# activation: nn.Module = nn.Tanh() |
| 95 | + |
| 96 | + |
| 97 | +# @dataclass |
| 98 | +# class LatentNeuralODEConfig: |
| 99 | +# """Model config for LatentNeuralODE for the simple_ode dataset""" |
| 100 | + |
| 101 | +# # cloudparams, trial 40 |
| 102 | +# latent_features: int = 3 |
| 103 | +# coder_layers: int = 3 |
| 104 | +# coder_width: int = 377 |
| 105 | +# learning_rate: float = 3e-4 |
| 106 | +# ode_layers: int = 5 |
| 107 | +# ode_width: int = 167 |
| 108 | +# regularization_factor: float = 0.000127 |
| 109 | +# encode_params: bool = False |
| 110 | +# optimizer: str = "sgd" |
| 111 | +# momentum: float = 0.226 |
| 112 | +# scheduler: str = "cosine" |
| 113 | +# eta_min: float = 0.0222 |
| 114 | +# ode_tanh_reg: bool = False |
| 115 | +# activation: nn.Module = nn.SiLU() |
| 116 | +# model_version: str = "v2" |
| 117 | + |
| 118 | + |
| 119 | +# @dataclass |
| 120 | +# class FullyConnectedConfig: |
| 121 | +# """Model config for FullyConnected for the simple_ode dataset""" |
| 122 | + |
| 123 | +# # cloud, trial 44 |
| 124 | +# hidden_size: int = 261 |
| 125 | +# num_hidden_layers: int = 1 |
| 126 | +# learning_rate: float = 1e-4 |
| 127 | +# activation: nn.Module = nn.LeakyReLU() |
| 128 | + |
| 129 | + |
| 130 | +# @dataclass |
| 131 | +# class LatentPolyConfig: |
| 132 | +# """Model config for LatentPoly for the simple_ode dataset""" |
| 133 | + |
| 134 | +# # cloud, trial 92 |
| 135 | +# latent_features: int = 9 |
| 136 | +# degree: int = 5 |
| 137 | +# learning_rate: float = 3e-4 |
| 138 | +# coder_layers: int = 1 |
| 139 | +# coder_width: int = 86 |
| 140 | +# activation: nn.Module = nn.Mish() |
0 commit comments