Skip to content

Commit

Permalink
Merge pull request #14 from liamdugan/typecheck
Browse files Browse the repository at this point in the history
Fix `run_detection` passing inputs of wrong type to detector function
  • Loading branch information
liamdugan authored Sep 18, 2024
2 parents cc80d45 + 644752c commit f644ff8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion raid/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.8"
__version__ = "0.0.9"
2 changes: 1 addition & 1 deletion raid/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def run_detection(f, df):
scores_df = df[["id"]].copy()

# Run the detector function on the dataset and put output in score column
scores_df["score"] = f(df["generation"])
scores_df["score"] = f(df["generation"].tolist())

# Convert scores and ids to dict in 'records' format for seralization
# e.g. [{'id':'...', 'score':0}, {'id':'...', 'score':1}, ...]
Expand Down

0 comments on commit f644ff8

Please sign in to comment.