Skip to content

Commit

Permalink
Fix wrong keyword argument name and set max index to None
Browse files Browse the repository at this point in the history
  • Loading branch information
HealthyPear committed Mar 30, 2021
1 parent 6d7a41f commit 04ba81a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protopipe/mva/train_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def split_data(
data_train_sig,
data_test_sig,
) = split_train_test(
ds=data_sig,
survived_images=data_sig,
train_fraction=train_fraction,
feature_name_list=self.feature_name_list,
target_name=self.target_name,
Expand All @@ -88,13 +88,13 @@ def split_data(
data_train_bkg,
data_test_bkg,
) = split_train_test(
ds=data_bkg,
survived_images=data_bkg,
train_fraction=train_fraction,
feature_name_list=self.feature_name_list,
target_name=self.target_name,
)

max_events = -1
max_events = None

if force_same_nsig_nbkg is True:
if len(X_train_bkg) <= len(X_train_sig):
Expand Down

0 comments on commit 04ba81a

Please sign in to comment.