tasks
AnomalibDetection(config, module_function, checkpoint_path=None, run_test=True, report=True)
¶
Bases: Generic[AnomalyDataModuleT]
, LightningTask[AnomalyDataModuleT]
Anomaly Detection Task.
Parameters:
-
config
(
DictConfig
) –The experiment configuration
-
module_function
(
DictConfig
) –The function that instantiates the module and model
-
checkpoint_path
(
str | None
, default:None
) –The path to the checkpoint to load the model from. Defaults to None.
-
run_test
(
bool
, default:True
) –Whether to run the test after training. Defaults to False.
-
report
(
bool
, default:True
) –Whether to report the results. Defaults to False.
Source code in quadra/tasks/anomaly.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|
module: AnomalyModule
property
writable
¶
Get the module.
export()
¶
Export model for production.
Source code in quadra/tasks/anomaly.py
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
|
generate_report()
¶
Generate a report for the task and try to upload artifacts.
Source code in quadra/tasks/anomaly.py
280 281 282 283 |
|
prepare()
¶
Prepare the task.
Source code in quadra/tasks/anomaly.py
106 107 108 109 110 |
|
test()
¶
Lightning test.
Source code in quadra/tasks/anomaly.py
143 144 145 146 |
|
Classification(config, output, checkpoint_path=None, lr_multiplier=None, gradcam=False, report=False, run_test=False)
¶
Bases: Generic[ClassificationDataModuleT]
, LightningTask[ClassificationDataModuleT]
Classification Task.
Parameters:
-
config
(
DictConfig
) –The experiment configuration
-
output
(
DictConfig
) –The otuput configuration.
-
gradcam
(
bool
, default:False
) –Whether to compute gradcams
-
checkpoint_path
(
str | None
, default:None
) –The path to the checkpoint to load the model from. Defaults to None.
-
lr_multiplier
(
float | None
, default:None
) –The multiplier for the backbone learning rate. Defaults to None.
-
output
(
DictConfig
) –The ouput configuration (under task config). It contains the bool "example" to generate figs of discordant/concordant predictions.
-
report
(
bool
, default:False
) –Whether to generate a report containing the results after test phase
-
run_test
(
bool
, default:False
) –Whether to run the test phase.
Source code in quadra/tasks/classification.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
|
len_train_dataloader: int
property
¶
Get the length of the train dataloader.
optimizer: torch.optim.Optimizer
property
writable
¶
Get the optimizer.
scheduler: torch.optim.lr_scheduler._LRScheduler
property
writable
¶
Get the scheduler.
export()
¶
Generate deployment models for the task.
Source code in quadra/tasks/classification.py
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 |
|
freeze_layers_by_name(freeze_parameters_name)
¶
Freeze layers specified in freeze_parameters_name.
Parameters:
Source code in quadra/tasks/classification.py
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 |
|
freeze_parameters_by_index(freeze_parameters_index)
¶
Freeze parameters specified in freeze_parameters_name.
Parameters:
Source code in quadra/tasks/classification.py
455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 |
|
generate_report()
¶
Generate a report for the task.
Source code in quadra/tasks/classification.py
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 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 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 |
|
module(module_config)
¶
Set the module of the model.
Source code in quadra/tasks/classification.py
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
|
prepare()
¶
Prepare the experiment.
Source code in quadra/tasks/classification.py
253 254 255 256 257 258 259 |
|
test()
¶
Test the model.
Source code in quadra/tasks/classification.py
273 274 275 276 277 |
|
train()
¶
Train the model.
Source code in quadra/tasks/classification.py
261 262 263 264 265 266 267 268 269 270 271 |
|
ClassificationEvaluation(config, output, model_path, report=True, gradcam=False, device=None)
¶
Bases: Evaluation[ClassificationDataModuleT]
Perform a test on an imported Classification pytorch model.
Parameters:
-
config
(
DictConfig
) –Task configuration
-
output
(
DictConfig
) –Configuration for the output
-
model_path
(
str
) –Path to pytorch .pt model file
-
report
(
bool
, default:True
) –Whether to generate the report of the predictions
-
gradcam
(
bool
, default:False
) –Whether to compute gradcams
-
device
(
str | None
, default:None
) –Device to use for evaluation. If None, the device is automatically determined
Source code in quadra/tasks/classification.py
1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 |
|
deployment_model: BaseEvaluationModel
property
writable
¶
Deployment model.
execute()
¶
Execute the evaluation.
Source code in quadra/tasks/classification.py
1257 1258 1259 1260 1261 1262 1263 |
|
generate_report()
¶
Generate a report for the task.
Source code in quadra/tasks/classification.py
1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 |
|
get_classifier(model_config)
¶
Instantiate the classifier from the config.
Source code in quadra/tasks/classification.py
1079 1080 1081 1082 1083 1084 1085 1086 1087 |
|
get_pre_classifier(model_config)
¶
Instantiate the pre-classifier from the config.
Source code in quadra/tasks/classification.py
1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 |
|
get_torch_model(model_config)
¶
Instantiate the torch model from the config.
Source code in quadra/tasks/classification.py
1058 1059 1060 1061 1062 1063 1064 1065 1066 |
|
prepare()
¶
Prepare the evaluation.
Source code in quadra/tasks/classification.py
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 |
|
prepare_gradcam()
¶
Initializing gradcam for the predictions.
Source code in quadra/tasks/classification.py
1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 |
|
test()
¶
Perform test.
Source code in quadra/tasks/classification.py
1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 |
|
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: BaseEvaluationModel
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 |
|
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: list[Callback]
property
writable
¶
List[Callback]: The callbacks.
devices: int | list[int]
property
writable
¶
List[int]: The devices ids.
logger: list[Logger]
property
writable
¶
List[Logger]: The loggers.
module: LightningModule
property
writable
¶
trainer: 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 |
|
PatchSklearnClassification(config, output, device, automatic_batch_size, half_precision=False)
¶
Bases: Task[PatchSklearnClassificationDataModule]
Patch classification using torch backbone for feature extraction and sklearn to learn a linear classifier.
Parameters:
-
config
(
DictConfig
) –The experiment configuration
-
device
(
str
) –The device to use
-
output
(
DictConfig
) –Dictionary defining which kind of outputs to generate. Defaults to None.
-
automatic_batch_size
(
DictConfig
) –Whether to automatically find the largest batch size that fits in memory.
-
half_precision
(
bool
, default:False
) –Whether to use half precision.
Source code in quadra/tasks/patch.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
backbone: ModelSignatureWrapper
property
writable
¶
model: ClassifierMixin
property
writable
¶
sklearn.base.ClassifierMixin: The model.
trainer: SklearnClassificationTrainer
property
writable
¶
execute()
¶
Execute the experiment and all the steps.
Source code in quadra/tasks/patch.py
264 265 266 267 268 269 270 271 272 |
|
export()
¶
Generate deployment model for the task.
Source code in quadra/tasks/patch.py
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 |
|
generate_report()
¶
Generate the report for the task.
Source code in quadra/tasks/patch.py
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 |
|
prepare()
¶
Prepare the experiment.
Source code in quadra/tasks/patch.py
101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
train()
¶
Train the model.
Source code in quadra/tasks/patch.py
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 |
|
PatchSklearnTestClassification(config, output, model_path, device='cpu')
¶
Bases: Evaluation[PatchSklearnClassificationDataModule]
Perform a test of an already trained classification model.
Parameters:
-
config
(
DictConfig
) –The experiment configuration
-
output
(
DictConfig
) –where to save resultss
-
model_path
(
str
) –path to trained model from PatchSklearnClassification task.
-
device
(
str
, default:'cpu'
) –the device where to run the model (cuda or cpu). Defaults to 'cpu'.
Source code in quadra/tasks/patch.py
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 |
|
backbone: BaseEvaluationModel
property
writable
¶
classifier: ClassifierMixin
property
writable
¶
deployment_model
property
writable
¶
Deployment model.
trainer: SklearnClassificationTrainer
property
writable
¶
execute()
¶
Execute the experiment and all the steps.
Source code in quadra/tasks/patch.py
486 487 488 489 490 491 492 |
|
generate_report()
¶
Generate a report for the task.
Source code in quadra/tasks/patch.py
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 |
|
prepare()
¶
Prepare the experiment.
Source code in quadra/tasks/patch.py
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
|
test()
¶
Run the test.
Source code in quadra/tasks/patch.py
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
|
PlaceholderTask
¶
Bases: Task
Placeholder task.
execute()
¶
Execute the task and all the steps.
Source code in quadra/tasks/base.py
318 319 320 321 322 |
|
SSL(config, run_test=False, report=False, checkpoint_path=None)
¶
Bases: LightningTask
SSL 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
-
report
(
bool
, default:False
) –Whether to create the report
-
run_test
(
bool
, default:False
) –Whether to run final test
Source code in quadra/tasks/ssl.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
optimizer: torch.optim.Optimizer
property
writable
¶
Get the optimizer.
scheduler: torch.optim.lr_scheduler._LRScheduler
property
writable
¶
Get the scheduler.
export()
¶
Deploy a model ready for production.
Source code in quadra/tasks/ssl.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
learnable_parameters()
¶
Get the learnable parameters.
Source code in quadra/tasks/ssl.py
54 55 56 |
|
test()
¶
Test the model.
Source code in quadra/tasks/ssl.py
89 90 91 92 93 94 |
|
Segmentation(config, num_viz_samples=5, checkpoint_path=None, run_test=False, evaluate=None, report=False)
¶
Bases: Generic[SegmentationDataModuleT]
, LightningTask[SegmentationDataModuleT]
Task for segmentation.
Parameters:
-
config
(
DictConfig
) –Config object
-
num_viz_samples
(
int
, default:5
) –Number of samples to visualize. Defaults to 5.
-
checkpoint_path
(
str | None
, default:None
) –Path to the checkpoint to load the model from. Defaults to None.
-
run_test
(
bool
, default:False
) –If True, run test after training. Defaults to False.
-
evaluate
(
DictConfig | None
, default:None
) –Dict with evaluation parameters. Defaults to None.
-
report
(
bool
, default:False
) –If True, create report after training. Defaults to False.
Source code in quadra/tasks/segmentation.py
43 44 45 46 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 74 75 76 77 78 79 |
|
module: SegmentationModel
property
writable
¶
Get the module.
export()
¶
Generate a deployment model for the task.
Source code in quadra/tasks/segmentation.py
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 168 169 170 171 172 173 174 175 176 177 178 179 180 181 |
|
generate_report()
¶
Generate a report for the task.
Source code in quadra/tasks/segmentation.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 |
|
prepare()
¶
Prepare the task.
Source code in quadra/tasks/segmentation.py
118 119 120 121 |
|
SegmentationAnalysisEvaluation(config, model_path, device=None)
¶
Bases: SegmentationEvaluation
Segmentation Analysis Evaluation Task Args: config: The experiment configuration model_path: The model path. device: Device to use for evaluation. If None, the device is automatically determined.
Source code in quadra/tasks/segmentation.py
308 309 310 311 312 313 314 315 |
|
generate_report()
¶
Generate a report.
Source code in quadra/tasks/segmentation.py
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
|
prepare()
¶
Prepare the evaluation task.
Source code in quadra/tasks/segmentation.py
320 321 322 323 324 |
|
test()
¶
Run testing.
Source code in quadra/tasks/segmentation.py
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 |
|
train()
¶
Skip training.
Source code in quadra/tasks/segmentation.py
317 318 |
|
SegmentationEvaluation(config, model_path, device='cpu')
¶
Bases: Evaluation[SegmentationDataModuleT]
Segmentation Evaluation Task with deployment models.
Parameters:
-
config
(
DictConfig
) –The experiment configuration
-
model_path
(
str
) –The experiment path.
-
device
(
str | None
, default:'cpu'
) –Device to use for evaluation. If None, the device is automatically determined.
Raises:
-
ValueError
–If the model path is not provided
Source code in quadra/tasks/segmentation.py
244 245 246 247 248 249 250 251 |
|
inference(dataloader, deployment_model, device)
¶
Run inference on the dataloader and return the output.
Parameters:
-
dataloader
(
DataLoader
) –The dataloader to run inference on
-
deployment_model
(
BaseEvaluationModel
) –The deployment model to use
-
device
(
device
) –The device to run inference on
Source code in quadra/tasks/segmentation.py
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
|
prepare()
¶
Prepare the evaluation.
Source code in quadra/tasks/segmentation.py
256 257 258 259 260 261 262 263 264 265 266 267 268 |
|
save_config()
¶
Skip saving the config.
Source code in quadra/tasks/segmentation.py
253 254 |
|
SklearnClassification(config, output, device, automatic_batch_size, save_model_summary=False, half_precision=False, gradcam=False)
¶
Bases: Generic[SklearnClassificationDataModuleT]
, Task[SklearnClassificationDataModuleT]
Sklearn classification task.
Parameters:
-
config
(
DictConfig
) –The experiment configuration
-
device
(
str
) –The device to use. Defaults to None.
-
output
(
DictConfig
) –Dictionary defining which kind of outputs to generate. Defaults to None.
-
automatic_batch_size
(
DictConfig
) –Whether to automatically find the largest batch size that fits in memory.
-
save_model_summary
(
bool
, default:False
) –Whether to save a model_summary.txt file containing the model summary.
-
half_precision
(
bool
, default:False
) –Whether to use half precision during training.
-
gradcam
(
bool
, default:False
) –Whether to compute gradcams for test results.
Source code in quadra/tasks/classification.py
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 |
|
backbone: ModelSignatureWrapper
property
writable
¶
model: ClassifierMixin
property
writable
¶
sklearn.base.ClassifierMixin: The model.
trainer: SklearnClassificationTrainer
property
writable
¶
execute()
¶
Execute the experiment and all the steps.
Source code in quadra/tasks/classification.py
838 839 840 841 842 843 844 845 846 847 848 849 |
|
export()
¶
Generate deployment model for the task.
Source code in quadra/tasks/classification.py
775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 |
|
extract_model_summary(feature_extractor, dl)
¶
Given a dataloader and a PyTorch model, use torchinfo to extract a summary of the model and save it to a file.
Parameters:
-
dl
(
DataLoader
) –PyTorch dataloader
-
feature_extractor
(
Module | BaseEvaluationModel
) –PyTorch backbone
Source code in quadra/tasks/classification.py
678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 |
|
generate_report()
¶
Generate report for the task.
Source code in quadra/tasks/classification.py
801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 |
|
prepare()
¶
Prepare the experiment.
Source code in quadra/tasks/classification.py
529 530 531 532 533 534 535 536 537 538 539 540 541 |
|
test()
¶
Skip test phase.
Source code in quadra/tasks/classification.py
735 736 |
|
test_full_data()
¶
Test model trained on full dataset.
Source code in quadra/tasks/classification.py
740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 |
|
train()
¶
Train the model.
Source code in quadra/tasks/classification.py
593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 |
|
train_full_data()
¶
Train the model on train + validation.
Source code in quadra/tasks/classification.py
726 727 728 729 730 731 732 733 |
|
SklearnTestClassification(config, output, model_path, device, gradcam=False, **kwargs)
¶
Bases: Evaluation[SklearnClassificationDataModuleT]
Perform a test using an imported SklearnClassification pytorch model.
Parameters:
-
config
(
DictConfig
) –The experiment configuration
-
output
(
DictConfig
) –where to save results
-
model_path
(
str
) –path to trained model generated from SklearnClassification task.
-
device
(
str
) –the device where to run the model (cuda or cpu)
-
gradcam
(
bool
, default:False
) –Whether to compute gradcams
-
**kwargs
(
Any
, default:{}
) –Additional arguments to pass to the task
Source code in quadra/tasks/classification.py
864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 |
|
backbone: BaseEvaluationModel
property
writable
¶
classifier: ClassifierMixin
property
writable
¶
deployment_model
property
writable
¶
Deployment model.
trainer: SklearnClassificationTrainer
property
writable
¶
execute()
¶
Execute the experiment and all the steps.
Source code in quadra/tasks/classification.py
1020 1021 1022 1023 1024 1025 1026 |
|
generate_report()
¶
Generate a report for the task.
Source code in quadra/tasks/classification.py
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 |
|
prepare()
¶
Prepare the experiment.
Source code in quadra/tasks/classification.py
889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 |
|
test()
¶
Run the test.
Source code in quadra/tasks/classification.py
984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 |
|
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: DataModuleT
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 |
|