-
-
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
[ENH] Polynomial Regression: Allow fixing the intercept to 0 #95
Conversation
@@ -324,13 +373,6 @@ def apply(self): | |||
self.Outputs.model.send(predictor) | |||
|
|||
# Send model coefficents | |||
model = None | |||
if predictor is not None: |
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 code is moved to an earlier place and the check is changed to if hasattr(predictor, "model")
, which covers both None
and RegressTo0
(which is new in this code). A bit later, the code expects that predictor
is not None
. I have not changed this, so if it was broken before, it still is (though we used this widget a lot and no student ever complained).
5016213
to
417533a
Compare
417533a
to
567bbff
Compare
567bbff
to
412dbf0
Compare
412dbf0
to
8ba0dc2
Compare
…fferent. This prevents crash due to same name on output.
8ba0dc2
to
0b0814a
Compare
Codecov Report
@@ Coverage Diff @@
## master #95 +/- ##
==========================================
- Coverage 87.65% 86.93% -0.73%
==========================================
Files 20 20
Lines 2893 2932 +39
Branches 351 363 +12
==========================================
+ Hits 2536 2549 +13
- Misses 325 342 +17
- Partials 32 41 +9
Continue to review full report at Codecov.
|
6c1bd69
to
46caeb5
Compare
Issue
Resolves #93 and shows some great love for this venerable old widget.
Requires biolab/orange3#4958, commit biolab/orange3@cb5a551.Description of changes
See commit messages.
Includes