base¶
BaseClassificationLitModule
& its config.
- class cneuromax.fitting.deeplearning.litmodule.classification.base.BaseClassificationLitModuleConfig(log_val_wandb=False, num_classes=2)[source]¶
Bases:
BaseLitModuleConfig
Holds
BaseClassificationLitModule
config values.- Parameters:
num_classes (
int
, default:2
) – Number of classes to classify between.
- class cneuromax.fitting.deeplearning.litmodule.classification.base.BaseClassificationLitModule(*args, **kwargs)[source]¶
Bases:
BaseLitModule
,ABC
Base Classification
LightningModule
.Ref:
lightning.pytorch.core.LightningModule
If logging validation data to W&B, make sure to define the
wandb_columns
attribute in the subclass.- config¶
- accuracy¶
- Type:
torchmetrics.classification.MulticlassAccuracy
- wandb_table¶
A table to upload to W&B containing validation data.
- Type:
wandb.Table