-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The Bug
- The ZeroInflatedRegressor class consists of a classifier and a regressor and it says in the documentation that "The regressor is only trained on examples where the target is non-zero, which makes it easier for it to focus." In the code, however, the regressor is actually trained on examples where the classifier-predicted target is non-zero.
How to Fix the Bug
- Just replace line 111 with the following code:
non_zero_indices = np.where(y != 0)[0]
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working