A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mmengine.readthedocs.io/en/latest/api/generated/mmengine.runner.EpochBasedTrainLoop.html below:

EpochBasedTrainLoop — mmengine 0.10.7 documentation

EpochBasedTrainLoop
class mmengine.runner.EpochBasedTrainLoop(runner, dataloader, max_epochs, val_begin=1, val_interval=1, dynamic_intervals=None)[source]

Loop for epoch-based training.

Parameters:
  • runner (Runner) – A reference of runner.

  • dataloader (Dataloader or dict) – A dataloader object or a dict to build a dataloader.

  • max_epochs (int) – Total training epochs.

  • val_begin (int) – The epoch that begins validating. Defaults to 1.

  • val_interval (int) – Validation interval. Defaults to 1.

  • dynamic_intervals (List[Tuple[int, int]], optional) – The first element in the tuple is a milestone and the second element is a interval. The interval is used after the corresponding milestone. Defaults to None.

property epoch

Current epoch.

Type:

int

property iter

Current iteration.

Type:

int

property max_epochs

Total epochs to train model.

Type:

int

property max_iters

Total iterations to train model.

Type:

int

run()[source]

Launch training.

Return type:

Module

run_epoch()[source]

Iterate one epoch.

Return type:

None

run_iter(idx, data_batch)[source]

Iterate one min-batch.

Parameters:

data_batch (Sequence[dict]) – Batch of data from dataloader.

Return type:

None


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4