"Using create threshold with logistic regression and forward selection"

hmhsing
hmhsing Altair Community Member
edited November 2024 in Community Q&A

I am using forward selection and logistic regression with create threshold, when I put 0.8 in threshold, true in first class and false in second class, the prediction result, however shows true when confidence(false) is greater than 0.8. Is this somthing wrong? Thanks!

 

Best Answer

  • earmijo
    earmijo New Altair Community Member
    Answer ✓

    RM is behaving exactly the way it is supposed to behave. 

     

    The rule is, given two classes A (let's call it "first class") and B ("second class"):

     

    Classify the observation as class B when confidence(B)>threshold,

    classify it as class A otherwise. 

     

    Short answer: Flip the roles. Put "true" in the "second class" spot. 

Answers

  • earmijo
    earmijo New Altair Community Member
    Answer ✓

    RM is behaving exactly the way it is supposed to behave. 

     

    The rule is, given two classes A (let's call it "first class") and B ("second class"):

     

    Classify the observation as class B when confidence(B)>threshold,

    classify it as class A otherwise. 

     

    Short answer: Flip the roles. Put "true" in the "second class" spot.