Skip to content

Linear Scenarios in normalized Mode¤

apebench.scenarios.normalized.Advection ¤

Bases: Linear

Source code in apebench/scenarios/normalized/_linear.py
42
43
44
45
46
47
48
49
class Advection(Linear):
    advection_alpha: float = -0.025

    def __post_init__(self):
        self.alphas = (0.0, self.advection_alpha, 0.0, 0.0, 0.0)

    def get_scenario_name(self) -> str:
        return f"{self.num_spatial_dims}d_norm_adv"
advection_alpha class-attribute instance-attribute ¤
advection_alpha: float = -0.025
__post_init__ ¤
__post_init__()
Source code in apebench/scenarios/normalized/_linear.py
45
46
def __post_init__(self):
    self.alphas = (0.0, self.advection_alpha, 0.0, 0.0, 0.0)
get_scenario_name ¤
get_scenario_name() -> str
Source code in apebench/scenarios/normalized/_linear.py
48
49
def get_scenario_name(self) -> str:
    return f"{self.num_spatial_dims}d_norm_adv"

apebench.scenarios.normalized.Diffusion ¤

Bases: Linear

Source code in apebench/scenarios/normalized/_linear.py
52
53
54
55
56
57
58
59
class Diffusion(Linear):
    diffusion_alpha: float = 8e-4

    def __post_init__(self):
        self.alphas = (0.0, 0.0, self.diffusion_alpha, 0.0, 0.0)

    def get_scenario_name(self) -> str:
        return f"{self.num_spatial_dims}d_norm_diff"
diffusion_alpha class-attribute instance-attribute ¤
diffusion_alpha: float = 0.0008
__post_init__ ¤
__post_init__()
Source code in apebench/scenarios/normalized/_linear.py
55
56
def __post_init__(self):
    self.alphas = (0.0, 0.0, self.diffusion_alpha, 0.0, 0.0)
get_scenario_name ¤
get_scenario_name() -> str
Source code in apebench/scenarios/normalized/_linear.py
58
59
def get_scenario_name(self) -> str:
    return f"{self.num_spatial_dims}d_norm_diff"

apebench.scenarios.normalized.AdvectionDiffusion ¤

Bases: Linear

Source code in apebench/scenarios/normalized/_linear.py
62
63
64
65
66
67
68
69
70
class AdvectionDiffusion(Linear):
    advection_alpha: float = -0.025
    diffusion_alpha: float = 8e-4

    def __post_init__(self):
        self.alphas = (0.0, self.advection_alpha, self.diffusion_alpha)

    def get_scenario_name(self) -> str:
        return f"{self.num_spatial_dims}d_norm_adv_diff"
advection_alpha class-attribute instance-attribute ¤
advection_alpha: float = -0.025
diffusion_alpha class-attribute instance-attribute ¤
diffusion_alpha: float = 0.0008
__post_init__ ¤
__post_init__()
Source code in apebench/scenarios/normalized/_linear.py
66
67
def __post_init__(self):
    self.alphas = (0.0, self.advection_alpha, self.diffusion_alpha)
get_scenario_name ¤
get_scenario_name() -> str
Source code in apebench/scenarios/normalized/_linear.py
69
70
def get_scenario_name(self) -> str:
    return f"{self.num_spatial_dims}d_norm_adv_diff"

apebench.scenarios.normalized.Dispersion ¤

Bases: Linear

Source code in apebench/scenarios/normalized/_linear.py
73
74
75
76
77
78
79
80
class Dispersion(Linear):
    dispersion_alpha: float = 2.5e-7

    def __post_init__(self):
        self.alphas = (0.0, 0.0, 0.0, self.dispersion_alpha, 0.0)

    def get_scenario_name(self) -> str:
        return f"{self.num_spatial_dims}d_norm_disp"
dispersion_alpha class-attribute instance-attribute ¤
dispersion_alpha: float = 2.5e-07
__post_init__ ¤
__post_init__()
Source code in apebench/scenarios/normalized/_linear.py
76
77
def __post_init__(self):
    self.alphas = (0.0, 0.0, 0.0, self.dispersion_alpha, 0.0)
get_scenario_name ¤
get_scenario_name() -> str
Source code in apebench/scenarios/normalized/_linear.py
79
80
def get_scenario_name(self) -> str:
    return f"{self.num_spatial_dims}d_norm_disp"

apebench.scenarios.normalized.HyperDiffusion ¤

Bases: Linear

Source code in apebench/scenarios/normalized/_linear.py
83
84
85
86
87
88
89
90
class HyperDiffusion(Linear):
    hyp_diffusion_alpha: float = -7.5e-10

    def __post_init__(self):
        self.alphas = (0.0, 0.0, 0.0, 0.0, self.hyp_diffusion_alpha)

    def get_scenario_name(self) -> str:
        return f"{self.num_spatial_dims}d_norm_hyp_diff"
hyp_diffusion_alpha class-attribute instance-attribute ¤
hyp_diffusion_alpha: float = -7.5e-10
__post_init__ ¤
__post_init__()
Source code in apebench/scenarios/normalized/_linear.py
86
87
def __post_init__(self):
    self.alphas = (0.0, 0.0, 0.0, 0.0, self.hyp_diffusion_alpha)
get_scenario_name ¤
get_scenario_name() -> str
Source code in apebench/scenarios/normalized/_linear.py
89
90
def get_scenario_name(self) -> str:
    return f"{self.num_spatial_dims}d_norm_hyp_diff"