Skip to content

Keep metric accumulators and transforms during validation - #679

Open
georgeguimaraes wants to merge 1 commit into
elixir-nx:mainfrom
georgeguimaraes:validate-keeps-metrics
Open

georgeguimaraes wants to merge 1 commit into
elixir-nx:mainfrom
georgeguimaraes:validate-keeps-metrics

Conversation

@georgeguimaraes

Copy link
Copy Markdown
Member

validate/4 re-registered the loop's metrics on the evaluator from their raw functions with the default accumulator and fields, so a metric declared with a custom transform or accumulator computed something else during validation, or failed outright when its function did not take y_true and y_pred. The evaluator now takes the metrics as they were declared. Found while working on #676, whose special case in validate/4 this makes unnecessary.

validate/4 re-registered the loop's metrics on the evaluator from their
raw functions with the default accumulator and fields, so a metric
declared with a custom transform or accumulator computed something else
during validation, or failed when its function did not take y_true and
y_pred. The evaluator now takes the metrics as they were declared.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant