Skip to content

Commit ef619bd

Browse files
committed
remove fdr_metric logging again
1 parent 76f1346 commit ef619bd

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

alphadia/fdr/classifiers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,7 @@ def fit(self, x: np.ndarray, y: np.ndarray) -> None: # noqa: PLR0915 # Too many
339339
y = np.stack([1 - y, y], axis=1)
340340

341341
x_train, x_test, y_train, y_test = train_test_split_(
342-
x,
343-
y,
344-
test_size=self.test_size,
342+
x, y, test_size=self.test_size
345343
)
346344
x_test = torch.Tensor(x_test)
347345
y_test = torch.Tensor(y_test)
@@ -413,7 +411,6 @@ def fit(self, x: np.ndarray, y: np.ndarray) -> None: # noqa: PLR0915 # Too many
413411
)
414412
/ len(y_test)
415413
)
416-
417414
self.network.train()
418415

419416
batch_count += 1

alphadia/workflow/peptidecentric/extraction_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from alphadia.peakgroup.search import HybridCandidateSelection
1212
from alphadia.plexscoring.config import CandidateConfig
1313
from alphadia.plexscoring.plexscoring import CandidateScoring
14-
from alphadia.workflow.managers.fdr_manager import FDRManager
1514

1615
try:
1716
from alphadia_ng import (
@@ -23,6 +22,7 @@
2322
SelectionParameters,
2423
)
2524

25+
from alphadia.workflow.managers.fdr_manager import FDRManager
2626
from alphadia.workflow.peptidecentric.ng.ng_mapper import (
2727
candidates_to_ng,
2828
parse_candidates,

0 commit comments

Comments
 (0)