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

Fix get_anomaly_score_losses in dfencoder to work without categorical features #893

Conversation

hsin-c
Copy link
Contributor

@hsin-c hsin-c commented Apr 18, 2023

Description

The fit (get_anomaly_score_losses) function in dfencoder encounters an error when no categorical feature is present in the feature set. This PR adds the necessary checks in get_anomaly_score_losses to ensure the code runs with or without categorical features.

Fixes #858

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@hsin-c hsin-c requested a review from a team as a code owner April 18, 2023 23:26
@hsin-c hsin-c changed the title Check list before calling torch.cat; Unit test coverage Fix fit in dfencoder to work without categorical features Apr 18, 2023
@hsin-c hsin-c changed the title Fix fit in dfencoder to work without categorical features Fix get_anomaly_score_losses in dfencoder to work without categorical features Apr 18, 2023
@hsin-c hsin-c added the bug Something isn't working label Apr 18, 2023
Copy link
Contributor

@mdemoret-nv mdemoret-nv left a comment

Choose a reason for hiding this comment

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

Looks good! Nice tests.

@mdemoret-nv
Copy link
Contributor

/merge

@rapids-bot rapids-bot bot merged commit f93e364 into nv-morpheus:branch-23.07 Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
Archived in project
2 participants