Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ml backend handling extremely imbalanced and small dataset #646

Merged
Prev Previous commit
remove unnecessary comments
  • Loading branch information
HyunjunA committed Mar 12, 2024
commit ac06865ea64cd64146f970eacdff48f9c164b166
6 changes: 1 addition & 5 deletions machine/learn/skl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,7 @@ def generate_results(model, input_data,

# calculate number of each class
each_class = input_data[target_name].value_counts()
print("each_class", each_class)
print("num_classes", num_classes)
# Temporary fix to handle NaN values
# n_splits = decision_rule_cv_based_on_classes(each_class)
# cv = StratifiedKFold(n_splits=n_splits)

features = input_data.drop(target_name, axis=1).values
target = input_data[target_name].values

Expand Down
Loading