Skip to content

Commit

Permalink
Rename model names and restore anomaly tests (#462)
Browse files Browse the repository at this point in the history
* Rename model names and restore anomaly tests

* Fix test for the beta model
  • Loading branch information
JulienPeloton authored Nov 5, 2024
1 parent 96b68d8 commit e979aba
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion fink_science/anomaly_detection/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def anomaly_score(lc_features, model=None):
... df = df.withColumn(f'anomaly_score{model}', anomaly_score("lc_features", F.lit(model)))
>>> df.filter(df["anomaly_score"] < -0.013).count()
96
236
>>> df.filter(df["anomaly_score"] == 0).count() < 200
True
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 0 additions & 2 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ do
# Skip Spark if needed
if [[ "$NO_SPARK" = true ]] && [[ ${filename##*/} = 'processor.py' ]] ; then
echo '[NO SPARK] skipping' $filename
elif [[ ${filename#*/} = 'anomaly_detection/processor.py' ]]; then
echo "skip anomaly"
else
echo $filename
# Run test suite + coverage
Expand Down

0 comments on commit e979aba

Please sign in to comment.