🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

"polynomial regression"

User: "samia"
New Altair Community Member
Updated by Jocelyn
hello,i try to do some prediction of the amount of product sales with polynomial regression but when i get the result i try to calculate the amount using the formula that rapidMiner gives to me,but i have some values that are negative so what can i do in this case?i think that this negative value have to be in zero.
thank you for helping me.

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "samia"
    New Altair Community Member
    OP
    any help please i need the response  :'(
    User: "MariusHelf"
    New Altair Community Member
    Hi,

    the regression methods are not bound to any value range. Generally speaking, they try to approximate the input data by a formula, and the prediction for new values are created by inserting the values into the formula.
    Especially the polynomial regression tends to get bad for values outside of the range of the input data because of the nature of polynomials. Did you try different regression methods like the linear regression or gaussian processes?

    If you want to change negative predictions to zeros after applying a model, you could use Generate Attributes after renaming the prediction attribute to a name without special characters.
    E.g. rename prediction(label) to prediction, then use Generate Attributes with the following formula: if(prediction < 0; 0; prediction)

    As a general advice I strongly suggest that you also validate your model with a X-Validation or any other validation method, if you have not done that before.

    Best regards,
    Marius