-
Notifications
You must be signed in to change notification settings - Fork 21
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 the Discriminator Classifier #560
Conversation
for more information, see https://pre-commit.ci
I would like to add documentation examples for the regression classifier. But I also think we should keep the current examples using the MLP models. @Zethson is it okay if I simply add a second example in the same docstring? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #560 +/- ##
==========================================
+ Coverage 63.40% 63.52% +0.12%
==========================================
Files 43 43
Lines 5052 5091 +39
==========================================
+ Hits 3203 3234 +31
- Misses 1849 1857 +8
|
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.
Awesome, very good job!
What was your impression concerning usage and parameter documentation? Was it too annoying to always be like: "This only applies to the MLP" or the other way around? I'm trying to assess whether we should split them into two functions or roll with what you nicely implemented.
tests/tools/_perturbation_space/test_discriminator_classifier.py
Outdated
Show resolved
Hide resolved
tests/tools/_perturbation_space/test_discriminator_classifier.py
Outdated
Show resolved
Hide resolved
tests/tools/_perturbation_space/test_discriminator_classifier.py
Outdated
Show resolved
Hide resolved
Yes, please! Also thought about that while reviewing. |
If we want to stick with the I think the alternative would be to have two different classes, something like |
for more information, see https://pre-commit.ci
Concerning backwards compatibility: We could alias the classes. A simple I think that if we really wanted to we could probably provide a somewhat sane But yeah, splitting this into two is I think the better approach |
for more information, see https://pre-commit.ci
…nto feature/regression_classifier
PR Checklist
docs
is updatedDescription of changes
DiscriminatorClassifierSpace
object. By default, it's set to MLP, ensuring backward compatibility with the previous usageDiscriminatorClassifierSpace
: The adata is now provided via a fixture and is subsequently used by both the MLP and the regression classifier testing methodsTechnical details
I tested the regression classifier implementation using the Norman dataset using the following code:
Which results in the following UMAP: