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

Add DLRM block #1162

Merged
merged 13 commits into from
Jul 1, 2023
Merged

Add DLRM block #1162

merged 13 commits into from
Jul 1, 2023

Conversation

edknv
Copy link
Contributor

@edknv edknv commented Jun 29, 2023

This PR adds the DLRM block in the PyTorch backend.

@edknv edknv changed the title Torch/dlrm [WIP] Add DLRM block Jun 29, 2023
@github-actions
Copy link

Documentation preview

https://nvidia-merlin.github.io/models/review/pr-1162

@edknv edknv added enhancement New feature or request area/pytorch labels Jul 1, 2023
@edknv edknv added this to the Merlin 23.07 milestone Jul 1, 2023
Comment on lines -33 to +34
with pytest.raises(ValueError):
outputs.add_route(Tags.CATEGORICAL)
outputs.add_route(Tags.CATEGORICAL)
Copy link
Contributor Author

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.

Comment on lines -136 to 138
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}))
Copy link
Contributor Author

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.

@edknv edknv changed the title [WIP] Add DLRM block Add DLRM block Jul 1, 2023
@edknv edknv marked this pull request as ready for review July 1, 2023 04:15
@marcromeyn marcromeyn merged commit 86d0a34 into main Jul 1, 2023
38 of 39 checks passed
@marcromeyn marcromeyn deleted the torch/dlrm branch July 1, 2023 10:04
@edknv edknv mentioned this pull request Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/pytorch enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants