Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce INF/NAN string values normalizer #19

Merged
merged 5 commits into from
Aug 25, 2021

Conversation

torchello
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Aug 25, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@torchello torchello marked this pull request as ready for review August 25, 2021 01:37
Copy link
Member

@andrewdalpino andrewdalpino left a comment

Choose a reason for hiding this comment

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

Looks great! I think we need a new name for the middleware class though.

/**
* @var array<string, float>
*/
private array $replacements = [
Copy link
Member

Choose a reason for hiding this comment

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

I believe this could be a constant

@@ -0,0 +1,59 @@
<?php
Copy link
Member

@andrewdalpino andrewdalpino Aug 25, 2021

Choose a reason for hiding this comment

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

Is 'Normalize' really what this class is doing? I think the naming could work in other domains but since we're in the context of machine learning maybe we choose a different word. Normalize has a specific meaning in ML.

On the contrary, maybe InfNan is too specific. We might need to convert others in the future in which case the naming would not be valid. Naming is hard.

Would ConvertRequestBodyConstants work?

@@ -0,0 +1,99 @@
<?php
Copy link
Member

Choose a reason for hiding this comment

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

Nice test!

@andrewdalpino andrewdalpino merged commit abe464d into RubixML:2.0 Aug 25, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2021
@torchello torchello deleted the inf-nan branch August 26, 2021 15:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants