Skip to content

Add class API for metrics #497

@Nic-Ma

Description

@Nic-Ma

Is your feature request related to a problem? Please describe.
If we have class API for metrics, it makes easier to set all training components before training loop.
Get 3 feedback from Andriy:

  1. Add class API for the metrics functions.
  2. Change torch.tensor(float(“nan”)).to(y_o.float()) to
    torch.tensor(float("nan"), device=y_o.device)
  3. Add dim= to several PyTorch calls.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions