newron.log_metrics()
newron.log_metrics(metrics: Dict[str, float], step: Optional[int] = None) → None
Log multiple metrics for the current run. If no run is active, this method will create a new active run.
Parameters
- metrices - Dictionary of metric_name: String -> value: Float. Note that some special values such as +/- Infinity may be replaced by other values depending on the store. For example, sql based store may replace +/- Infinity with max / min float values.
- step - A single integer step at which to log the specified Metrics. If unspecified, each metric is logged at step zero.
Returns -> None
Example
import newron
metrics = {"mse": 2500.00, "rmse": 50.00}
# Log a batch of metrics
newron.log_metrics(metrics)