loss
Loss wrapper.
Classes:
| Name | Description |
|---|---|
XpdeepLoss |
Xpdeep loss wrapper. |
XpdeepLoss
#
Xpdeep loss wrapper.
loss: AbstractLossCriterion The custom loss (ApiLoss, exported as torchArtifact) or a trusted Xpdeep custom loss (exported as ModuleState).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
AbstractLossCriterion
|
|
required |
Methods:
| Name | Description |
|---|---|
from_torch |
Build a loss object - infer required size from the model and fitted_schema. |
to_model |
Convert the loss object to a database model input. |
Attributes:
| Name | Type | Description |
|---|---|---|
loss |
AbstractLossCriterion
|
|
loss: AbstractLossCriterion
#
from_torch(fitted_schema: FittedSchema, model: XpdeepModel, loss: nn.Module) -> Self
#
Build a loss object - infer required size from the model and fitted_schema.