Skip to content

Implement empty function#14

Merged
jeffcarp merged 1 commit intomainfrom
implempty
Feb 20, 2025
Merged

Implement empty function#14
jeffcarp merged 1 commit intomainfrom
implempty

Conversation

@jshin1394
Copy link
Collaborator

Adds empty function to metrax metrics that directly inherit from clu.metric. Note how clu.Average already implements empty fuction.

@jshin1394 jshin1394 requested a review from jeffcarp February 20, 2025 19:19
total=jnp.array(0, jnp.float32),
count=jnp.array(0, jnp.float32),
sum_of_squared_error=jnp.array(0, jnp.float32),
sum_of_squared_label=jnp.array(0, jnp.float32))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Would you mind adding a quick test for here and below?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added testcases for each class.

@jeffcarp
Copy link
Collaborator

Thank you!

@jeffcarp jeffcarp merged commit ec41518 into main Feb 20, 2025
5 checks passed
@jshin1394 jshin1394 deleted the implempty branch February 21, 2025 17:25
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.

2 participants