Skip to content

Commit ef71cbc

Browse files
committed
Fix calibration results issue
1 parent d8da0c4 commit ef71cbc

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

ideeplc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""iDeepLC: A deep Learning-based retention time predictor for unseen modified peptides with a novel encoding system"""
22

3-
__version__ = "1.1.3"
3+
__version__ = "1.1.4"

ideeplc/predict.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ def predict(
124124
result_df = pd.DataFrame(result_data)
125125
result_df.to_csv(output_path, index=False)
126126
LOGGER.info(f"Results saved to {output_path}")
127-
predictions = (
128-
calibrated_preds # Use calibrated predictions for further analysis
129-
)
130127

131-
return loss, correlation, predictions, ground_truth
128+
if calibrate:
129+
return loss, correlation, calibrated_preds, ground_truth
130+
else:
131+
return loss, correlation, predictions, ground_truth
132132

133133
except Exception as e:
134134
LOGGER.error(f"An error occurred during prediction: {e}")

tests/test_prediction_calibration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Python
2-
import pandas as pd
32
import torch
43
from torch.utils.data import DataLoader
54
from ideeplc.predict import predict

0 commit comments

Comments
 (0)