Do not use accuracy (predicting all negatives gives 99%). Use precision, recall, F1, and PR-AUC.
Data level: resample the training set only (oversample the minority class, undersample the majority, or SMOTE); never resample validation or test data.
Algorithm level: class weights or a cost-sensitive loss, and gradient boosting with a scale-positive-weight setting.
Use stratified splits, then tune the decision threshold for the business tradeoff between false positives and false negatives.
Consider framing it as anomaly detection if positives are extremely rare.
Loading…