Skip to content

Commit

Permalink
fix sparse sampling step in runs
Browse files Browse the repository at this point in the history
  • Loading branch information
aromberg committed Sep 9, 2024
1 parent 2282b7f commit a91f9e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "XspecT"
version = "0.2.4"
version = "0.2.5"
description = "Tool to monitor and characterize pathogens using Bloom filters."
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
Expand Down
3 changes: 2 additions & 1 deletion src/xspect/models/probabilistic_filter_svm_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def predict(
),
filter_ids: list[str] = None,
step: int = 1,
) -> dict:
) -> ModelResult:
"""Predict the labels of the sequences"""
# get scores and format them for the SVM
res = super().predict(sequence_input, filter_ids, step=step)
Expand All @@ -119,6 +119,7 @@ def predict(
self.slug(),
res.hits,
res.num_kmers,
sparse_sampling_step=step,
prediction=str(svm.predict(svm_scores)[0]),
)

Expand Down

0 comments on commit a91f9e3

Please sign in to comment.