position_dlc_model.py
DLCModelInput
¶
Bases: SpyglassMixin
, Manual
Table to hold model path if model is being input from local disk instead of Spyglass
Source code in src/spyglass/position/v1/position_dlc_model.py
insert1(key, **kwargs)
¶
Override insert1 to add dlc_model_name from project_path
Source code in src/spyglass/position/v1/position_dlc_model.py
DLCModelSource
¶
Bases: SpyglassMixin
, Manual
Table to determine whether model originates from upstream DLCModelTraining table, or from local directory
Source code in src/spyglass/position/v1/position_dlc_model.py
insert_entry(dlc_model_name, project_name, source='FromUpstream', key=None, **kwargs)
classmethod
¶
Insert entry into DLCModelSource and corresponding Part table
Source code in src/spyglass/position/v1/position_dlc_model.py
DLCModelParams
¶
Bases: SpyglassMixin
, Manual
Source code in src/spyglass/position/v1/position_dlc_model.py
insert_default(**kwargs)
classmethod
¶
Insert the default parameter set
Source code in src/spyglass/position/v1/position_dlc_model.py
get_default()
classmethod
¶
Return the default parameter set. If it doesn't exist, insert it.
Source code in src/spyglass/position/v1/position_dlc_model.py
DLCModel
¶
Bases: SpyglassMixin
, Computed
Source code in src/spyglass/position/v1/position_dlc_model.py
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
|
make(key)
¶
Populate DLCModel table with model information.
Source code in src/spyglass/position/v1/position_dlc_model.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
|
DLCModelEvaluation
¶
Bases: SpyglassMixin
, Computed
Source code in src/spyglass/position/v1/position_dlc_model.py
make(key)
¶
.populate() method will launch evaluation for each unique entry in Model.
Source code in src/spyglass/position/v1/position_dlc_model.py
str_to_bool(value)
¶
Return whether the provided string represents true. Otherwise false.