Skip to content

Commit

Permalink
✨ are scores zero?
Browse files Browse the repository at this point in the history
  • Loading branch information
gessulat committed Oct 8, 2024
1 parent 40fde9b commit f11693e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mokapot/brew.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ def brew(
max_workers=max_workers,
)
)
# If model training has failed
else:
logging.info("Model training failed. Setting scores to zero.")
scores = [np.zeros(x) for x in data_size]
# Find which is best: the learned model, the best feature, or
# a pretrained model.
Expand Down
1 change: 1 addition & 0 deletions mokapot/mokapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def main(main_args=None):
logging.info("BREW DELETE ME")
for s in scores:
logging.info(f"{s}")
logging.info(f"{(s == 0).all()}")

if config.dest_dir is not None:
config.dest_dir.mkdir(exist_ok=True)
Expand Down

0 comments on commit f11693e

Please sign in to comment.