-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add DLRM block #1162
Add DLRM block #1162
Conversation
Documentation preview |
Co-authored-by: Radek Osmulski <[email protected]>
with pytest.raises(ValueError): | ||
outputs.add_route(Tags.CATEGORICAL) | ||
outputs.add_route(Tags.CATEGORICAL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was changed to not raise an error because it is possible that there is no continuous features in the DLRM block. Alternatively, we could have a try-except in the DLRM block, but this felt more natural to me.
feature = [[1.0, 2.0], [3.0, 4.0]] | ||
target = [[0.0], [1.0]] | ||
feature = [2.0, 3.0] | ||
target = [0.0, 1.0] | ||
dataset = Dataset(pd.DataFrame({"feature": feature, "target": target})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test case was incorrect because feature = [[1.0, 2.0], [3.0, 4.0]]
will produce a list column.
This PR adds the DLRM block in the PyTorch backend.