Shortcuts

ride.lifecycle

Module Contents

Classes

Lifecycle

Adds train, val, and test lifecycle methods with cross_entropy loss

Functions

prefix_keys(→ Dict)

detach_to_cpu(x)

cat_steps(steps)

Attributes

loss_names

logger

ride.lifecycle.loss_names[source]
ride.lifecycle.logger[source]
class ride.lifecycle.Lifecycle(hparams=None, *args, **kwargs)[source]

Bases: ride.metrics.MetricMixin

Adds train, val, and test lifecycle methods with cross_entropy loss

During its traning_epoch_end(epoch) lifecycle method, it will call on_traning_epoch_end for all superclasses of its child class

hparams: Ellipsis[source]
forward: Callable[[torch.Tensor], torch.Tensor][source]
_epoch: int[source]
classmethod _metrics()[source]
validate_attributes()[source]
static configs() ride.core.Configs[source]
metrics_step(preds: torch.Tensor, targets: torch.Tensor, **kwargs) ride.metrics.MetricDict[source]
common_step(pred, target, prefix='train/', log=False)[source]
common_epoch_end(step_outputs, prefix='train/', exclude_keys={'pred', 'target'})[source]
preprocess_batch(batch)[source]
training_step(batch, batch_idx=None)[source]
training_epoch_end(step_outputs)[source]
validation_step(batch, batch_idx=None)[source]
validation_epoch_end(step_outputs)[source]
test_step(batch, batch_idx=None)[source]
test_epoch_end(step_outputs)[source]
ride.lifecycle.prefix_keys(prefix: str, dictionary: Dict) Dict[source]
ride.lifecycle.detach_to_cpu(x: Union[torch.Tensor, Sequence[torch.Tensor], Dict[Any, torch.Tensor]])[source]
ride.lifecycle.cat_steps(steps: Sequence[Union[torch.Tensor, Sequence[torch.Tensor], Dict[Any, torch.Tensor]]])[source]
Read the Docs v: stable
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.