commands
zeus.optimizer.batch_size.server.batch_size_state.commands
Commands to use BatchSizeStateRepository
.
ReadTrial
Bases: BatchSizeBase
Command to read a trial.
Equivalent to primary key of Trial.
Attributes:
Name | Type | Description |
---|---|---|
job_id |
ID of job |
|
batch_size |
batch size of a given trial |
|
trial_number |
int
|
number of trial |
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
17 18 19 20 21 22 23 24 25 26 27 28 |
|
CreateTrialBase
Bases: BatchSizeBase
Base command to create trial.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
Config
Model configuration.
Make it immutable after it's created.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
38 39 40 41 42 43 44 |
|
CreateTrial
Bases: CreateTrialBase
Internal command to create trial.
trial_number is populate within ZeusService.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
Config
Model configuration.
Make it immutable after it's created.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
55 56 57 58 59 60 61 |
|
to_orm
to_orm()
Create an ORM object from pydantic model.
Returns:
Type | Description |
---|---|
TrialTable
|
|
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
63 64 65 66 67 68 69 70 71 72 73 |
|
CreateExplorationTrial
Bases: CreateTrialBase
Create a exploration.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
76 77 78 79 80 81 82 83 84 85 86 87 |
|
Config
Model configuration.
Make it immutable after it's created.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
81 82 83 84 85 86 87 |
|
CreateMabTrial
Bases: CreateTrialBase
Create a MAB trial.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
90 91 92 93 94 95 96 97 98 99 100 101 |
|
Config
Model configuration.
Make it immutable after it's created.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
95 96 97 98 99 100 101 |
|
CreateConcurrentTrial
Bases: CreateTrialBase
Create a exploration.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
104 105 106 107 108 109 110 111 112 113 114 115 |
|
Config
Model configuration.
Make it immutable after it's created.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
109 110 111 112 113 114 115 |
|
UpdateTrial
Bases: BatchSizeBase
Report the result of trial.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
|
Config
Model configuration.
Make it immutable after it's created.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
128 129 130 131 132 133 134 |
|
_check_status
_check_status(s)
Check if status is equal to Dispatched.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
136 137 138 139 140 141 142 143 144 |
|
_validate_sanity
_validate_sanity(values)
Validate result.
We are checking - if status == Failed, time/energy/converged == None. else, time/energy/converged != None.
Source code in zeus/optimizer/batch_size/server/batch_size_state/commands.py
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
|