H2O error logistic regression

User: "Roeieber"
New Altair Community Member
Updated by Jocelyn
Hello,

I am a student using RM for my education.
I have a dataset from internet and want to use logistic regression on it but when running the model I get this message: Model training error (H2O) illegal arguments for GLM mode: ERRR of field etc etc.

Does somebody know what i did wrong?

Best regards,
Robert


Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "varunm1"
    New Altair Community Member
    Accepted Answer
    Updated by varunm1
    Hello @Roeieber

    The error implies that you are trying to train that model on a dataset that has a single label. I know you are not really trying to do this, but the data entering into the logistic regression is like that.

    Reasons:
    1. You did a split validation on data that is highly imbalanced. I recommend you select stratified sampling for this after setting a label role for a column in our data.
    2. Also, you made the process a bit complex by adding a set role and numerical to binomial operators after the splitting of data. This is not necessary and also has some issues while encoding numerical to binomial.

    I changed the process and attached it. Import it, test it and inform if you need more information.

    Hope this helps.