Skip to content

commands

zeus.optimizer.batch_size.server.services.commands

Commands on how to use some methods from the ZeusService.

GetRandomChoices

Bases: BaseModel

Parameters for getting a random choices.

Attributes:

Name Type Description
job_id str

Job Id

choices list[int]

List of choices

Source code in zeus/optimizer/batch_size/server/services/commands.py
 8
 9
10
11
12
13
14
15
16
17
class GetRandomChoices(BaseModel):
    """Parameters for getting a random choices.

    Attributes:
        job_id: Job Id
        choices: List of choices
    """

    job_id: str
    choices: list[int]

GetNormal

Bases: BaseModel

Parameters for getting a random sample from normal distribution.

Attributes:

Name Type Description
job_id str

Job id

loc float

Mean

scale float

Stdev

Source code in zeus/optimizer/batch_size/server/services/commands.py
20
21
22
23
24
25
26
27
28
29
30
31
class GetNormal(BaseModel):
    """Parameters for getting a random sample from normal distribution.

    Attributes:
        job_id: Job id
        loc: Mean
        scale: Stdev
    """

    job_id: str
    loc: float
    scale: float

UpdateArm

Bases: BaseModel

Parameters to update an arm.

Attributes:

Name Type Description
trial ReadTrial

Identifier of trial

updated_arm GaussianTsArmState

Updated state of arm.

Source code in zeus/optimizer/batch_size/server/services/commands.py
34
35
36
37
38
39
40
41
42
43
class UpdateArm(BaseModel):
    """Parameters to update an arm.

    Attributes:
        trial: Identifier of trial
        updated_arm: Updated state of arm.
    """

    trial: ReadTrial
    updated_arm: GaussianTsArmState