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

Logistic Regression Support for DataGen #563

Merged
merged 5 commits into from
Feb 14, 2024

Conversation

Er1cCheng
Copy link
Contributor

Add in support for generate random logistic regression binary label used for benchmark. Minor bug fix for argument parsing.

@lijinf2
Copy link
Collaborator

lijinf2 commented Feb 12, 2024

build

# Logistric Regression sigmoid and sample
if logistic_regression:
if use_cupy:
prob = 1 - 1 / (1 + cp.exp(-y))
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems y gets larger, prob will be smaller. Maybe not an issue. PR looks good.

Copy link
Collaborator

@eordentlich eordentlich Feb 12, 2024

Choose a reason for hiding this comment

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

Yes if this is prob of selecting 1, it should be 1/(1 + exp(-y))

NvTimLiu,\
YanxuanLiu,\
zhanga5,\
rishic3,\
Er1cCheng,\
Copy link
Collaborator

Choose a reason for hiding this comment

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

Strange. This change was already merged in. Not clear why it is showing as diff.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think maybe I did the merge in a wrong way so it's pulled as a diff.

@Er1cCheng
Copy link
Contributor Author

build

1 similar comment
@Er1cCheng
Copy link
Contributor Author

build

@Er1cCheng
Copy link
Contributor Author

build

1 similar comment
@lijinf2
Copy link
Collaborator

lijinf2 commented Feb 12, 2024

build

@lijinf2
Copy link
Collaborator

lijinf2 commented Feb 13, 2024

As a followup, will be good to add some help information for the new logistic option.

@lijinf2 lijinf2 merged commit c8c61ee into NVIDIA:branch-24.02 Feb 14, 2024
2 checks passed
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.

3 participants