base
Evaluation(config, model_path, device=None)
¶
Bases: Generic[DataModuleT], Task[DataModuleT]
Base Evaluation Task with deployment models.
Parameters:
-
config(DictConfig) –The experiment configuration
-
model_path(str) –The model path.
-
device(str | None, default:None) –Device to use for evaluation. If None, the device is automatically determined.
Source code in quadra/tasks/base.py
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 | |
deployment_model
property
writable
¶
Deployment model.
prepare()
¶
Prepare the evaluation.
Source code in quadra/tasks/base.py
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 | |
LightningTask(config, checkpoint_path=None, run_test=False, report=False)
¶
Bases: Generic[DataModuleT], Task[DataModuleT]
Base Experiment Task.
Parameters:
-
config(DictConfig) –The experiment configuration
-
checkpoint_path(str | None, default:None) –The path to the checkpoint to load the model from. Defaults to None.
-
run_test(bool, default:False) –Whether to run the test after training. Defaults to False.
-
report(bool, default:False) –Whether to generate a report. Defaults to False.
Source code in quadra/tasks/base.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | |
callbacks
property
writable
¶
List[Callback]: The callbacks.
devices
property
writable
¶
List[int]: The devices ids.
logger
property
writable
¶
List[Logger]: The loggers.
module
property
writable
¶
trainer
property
writable
¶
add_callback(callback)
¶
Add a callback to the trainer.
Parameters:
-
callback(Callback) –The callback to add
Source code in quadra/tasks/base.py
293 294 295 296 297 298 299 300 | |
execute()
¶
Execute the experiment and all the steps.
Source code in quadra/tasks/base.py
302 303 304 305 306 307 308 309 310 311 312 | |
finalize()
¶
Finalize the experiment.
Source code in quadra/tasks/base.py
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 | |
prepare()
¶
Prepare the experiment.
Source code in quadra/tasks/base.py
122 123 124 125 126 127 128 129 130 131 132 133 134 | |
test()
¶
Test the model.
Source code in quadra/tasks/base.py
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | |
train()
¶
Train the model.
Source code in quadra/tasks/base.py
241 242 243 244 245 246 247 248 249 250 | |
PlaceholderTask(config)
¶
Bases: Task
Placeholder task.
Source code in quadra/tasks/base.py
35 36 37 38 39 40 | |
execute()
¶
Execute the task and all the steps.
Source code in quadra/tasks/base.py
318 319 320 321 322 | |
Task(config)
¶
Bases: Generic[DataModuleT]
Base Experiment Task.
Parameters:
-
config(DictConfig) –The experiment configuration.
Source code in quadra/tasks/base.py
35 36 37 38 39 40 | |
datamodule
property
writable
¶
execute()
¶
Execute the experiment and all the steps.
Source code in quadra/tasks/base.py
84 85 86 87 88 89 90 91 92 | |
export()
¶
Export model for production.
Source code in quadra/tasks/base.py
72 73 74 | |
finalize()
¶
Finalize the experiment.
Source code in quadra/tasks/base.py
80 81 82 | |
generate_report()
¶
Generate a report.
Source code in quadra/tasks/base.py
76 77 78 | |
prepare()
¶
Prepare the experiment.
Source code in quadra/tasks/base.py
48 49 50 | |
save_config()
¶
Save the experiment configuration when running an Hydra experiment.
Source code in quadra/tasks/base.py
42 43 44 45 46 | |
test()
¶
Test the model.
Source code in quadra/tasks/base.py
68 69 70 | |
train()
¶
Train the model.
Source code in quadra/tasks/base.py
64 65 66 | |