Skip to content

Linear Scenarios in Difficulty Mode¤

apebench.scenarios.difficulty.Advection ¤

Bases: Linear

Source code in apebench/scenarios/difficulty/_linear.py
40
41
42
43
44
45
46
47
class Advection(Linear):
    advection_gamma: float = -4.0

    def __post_init__(self):
        self.gammas = (0.0, self.advection_gamma, 0.0, 0.0, 0.0)

    def get_scenario_name(self) -> str:
        return f"{self.num_spatial_dims}d_diff_adv"
advection_gamma class-attribute instance-attribute ¤
advection_gamma: float = -4.0
__post_init__ ¤
__post_init__()
Source code in apebench/scenarios/difficulty/_linear.py
43
44
def __post_init__(self):
    self.gammas = (0.0, self.advection_gamma, 0.0, 0.0, 0.0)
get_scenario_name ¤
get_scenario_name() -> str
Source code in apebench/scenarios/difficulty/_linear.py
46
47
def get_scenario_name(self) -> str:
    return f"{self.num_spatial_dims}d_diff_adv"

apebench.scenarios.difficulty.Diffusion ¤

Bases: Linear

Source code in apebench/scenarios/difficulty/_linear.py
50
51
52
53
54
55
56
57
class Diffusion(Linear):
    diffusion_gamma: float = 4.0

    def __post_init__(self):
        self.gammas = (0.0, 0.0, self.diffusion_gamma, 0.0, 0.0)

    def get_scenario_name(self) -> str:
        return f"{self.num_spatial_dims}d_diff_diff"
diffusion_gamma class-attribute instance-attribute ¤
diffusion_gamma: float = 4.0
__post_init__ ¤
__post_init__()
Source code in apebench/scenarios/difficulty/_linear.py
53
54
def __post_init__(self):
    self.gammas = (0.0, 0.0, self.diffusion_gamma, 0.0, 0.0)
get_scenario_name ¤
get_scenario_name() -> str
Source code in apebench/scenarios/difficulty/_linear.py
56
57
def get_scenario_name(self) -> str:
    return f"{self.num_spatial_dims}d_diff_diff"

apebench.scenarios.difficulty.AdvectionDiffusion ¤

Bases: Linear

Source code in apebench/scenarios/difficulty/_linear.py
60
61
62
63
64
65
66
67
68
class AdvectionDiffusion(Linear):
    advection_gamma: float = -4.0
    diffusion_gamma: float = 4.0

    def __post_init__(self):
        self.gammas = (0.0, self.advection_gamma, self.diffusion_gamma, 0.0, 0.0)

    def get_scenario_name(self) -> str:
        return f"{self.num_spatial_dims}d_diff_adv_diff"
advection_gamma class-attribute instance-attribute ¤
advection_gamma: float = -4.0
diffusion_gamma class-attribute instance-attribute ¤
diffusion_gamma: float = 4.0
__post_init__ ¤
__post_init__()
Source code in apebench/scenarios/difficulty/_linear.py
64
65
def __post_init__(self):
    self.gammas = (0.0, self.advection_gamma, self.diffusion_gamma, 0.0, 0.0)
get_scenario_name ¤
get_scenario_name() -> str
Source code in apebench/scenarios/difficulty/_linear.py
67
68
def get_scenario_name(self) -> str:
    return f"{self.num_spatial_dims}d_diff_adv_diff"

apebench.scenarios.difficulty.Dispersion ¤

Bases: Linear

Source code in apebench/scenarios/difficulty/_linear.py
71
72
73
74
75
76
77
78
class Dispersion(Linear):
    dispersion_gamma: float = 4.0

    def __post_init__(self):
        self.gammas = (0.0, 0.0, 0.0, self.dispersion_gamma, 0.0)

    def get_scenario_name(self) -> str:
        return f"{self.num_spatial_dims}d_diff_disp"
dispersion_gamma class-attribute instance-attribute ¤
dispersion_gamma: float = 4.0
__post_init__ ¤
__post_init__()
Source code in apebench/scenarios/difficulty/_linear.py
74
75
def __post_init__(self):
    self.gammas = (0.0, 0.0, 0.0, self.dispersion_gamma, 0.0)
get_scenario_name ¤
get_scenario_name() -> str
Source code in apebench/scenarios/difficulty/_linear.py
77
78
def get_scenario_name(self) -> str:
    return f"{self.num_spatial_dims}d_diff_disp"

apebench.scenarios.difficulty.HyperDiffusion ¤

Bases: Linear

Source code in apebench/scenarios/difficulty/_linear.py
81
82
83
84
85
86
87
88
class HyperDiffusion(Linear):
    hyp_diffusion_gamma: float = -4.0

    def __post_init__(self):
        self.gammas = (0.0, 0.0, 0.0, 0.0, self.hyp_diffusion_gamma, 0.0)

    def get_scenario_name(self) -> str:
        return f"{self.num_spatial_dims}d_diff_hyp_diff"
hyp_diffusion_gamma class-attribute instance-attribute ¤
hyp_diffusion_gamma: float = -4.0
__post_init__ ¤
__post_init__()
Source code in apebench/scenarios/difficulty/_linear.py
84
85
def __post_init__(self):
    self.gammas = (0.0, 0.0, 0.0, 0.0, self.hyp_diffusion_gamma, 0.0)
get_scenario_name ¤
get_scenario_name() -> str
Source code in apebench/scenarios/difficulty/_linear.py
87
88
def get_scenario_name(self) -> str:
    return f"{self.num_spatial_dims}d_diff_hyp_diff"