Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyangkang committed Nov 20, 2024
1 parent 699c14c commit 53d8c8c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions stemflow/model/static_func_AdaSTEM.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,6 @@ def predict_one_stixel(
pred = model_x_names_tuple[0].predict(X_test_stixel[model_x_names_tuple[1]])
else:
pred = model_x_names_tuple[0].predict_proba(X_test_stixel[model_x_names_tuple[1]], **base_model_prediction_param)
if hasattr(model_x_names_tuple[0], 'my_class_weights'):
pred_r = pred * model_x_names_tuple[0].my_class_weights
pred_r = (pred_r / np.sum(pred_r, axis=1)[:,np.newaxis])
pred = pred_r

pred = pred[:,1]


Expand Down

0 comments on commit 53d8c8c

Please sign in to comment.