Skip to content

[BUG] ModernNCA classifier issue #268

@peanutshu11

Description

@peanutshu11

Describe the bug
i'm new to this field, so pls explain for me if i'm doing anything wrong

the predict_proba of ModernNCAClassifier always return greater than 0.5, which results in 1 for binary classification

To Reproduce

 model = ModernNCAClassifier(
        use_embeddings=True, embedding_type='plr',
        cat_cutoff=0.03,
    )
model.fit(X_train, y_train, max_epochs=20)

y_pred = model.predict(X_test)
y_scores = model.predict_proba(X_test)   
print(y_scores)

results in

[[0.543139  ]
 [0.73105836]
 [0.5127567 ]
 [0.5000971 ]
 [0.5000005 ]
 [0.50000066]
 [0.50002706]
 [0.50000036]
 [0.5704578 ]
 [0.50000006]
 [0.5000001 ]
 [0.5000001 ]
 [0.5000008 ]
 [0.50000024]
....

The prediction can get very close, but never results in lower than 0.5

Desktop (please complete the following information):

  • OS: Window 11
  • Python version 3.12.5
  • Mambular Version 1.5.0

Additional context
i'm using this dataset https://www.kaggle.com/datasets/ankitverma2010/ecommerce-customer-churn-analysis-and-prediction

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions