Skip to content

Min/Max model constraints? #1217

Answered by MaxHalford
cdeterman asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there. There is PredClipper if you're too lazy to clip the predictions yourself.

I worry about the feedback to the internal 'coefficients' in subsequent runs in the model doesn't 'know' that the previous negative forecast was 'out of bounds'.

You shouldn't worry about that. If your model is well behaved (e.g. a sane learning rate for a linear model) predictions will make sense, and won't be negative when they shouldn't be. In particular, if you take tree models, it's guaranteed they won't produce negative outputs if they've never seen any negative label.

Replies: 1 comment

Comment options

You must be logged in to vote
1 reply
@cdeterman
Comment options

Answer selected by cdeterman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants