Skip to content

Commit

Permalink
Merge pull request #37 from ramp-kits/scoring
Browse files Browse the repository at this point in the history
add dim to X in predict
  • Loading branch information
frcaud authored Dec 15, 2023
2 parents f2f64e9 + b5cb5a1 commit de62e0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stroke/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def score_function(self, Y_true: np.array, Y_pred: np.array):
fscore = 0
for y_true_i, prediction_object in zip(y_true, Y_pred.y_pred):
dat = estimator.predict(
BIDSLoader.load_image_tuple(prediction_object.pred)
)
BIDSLoader.load_image_tuple(prediction_object.pred)[None]
)[0]

# Using proxy of y_true.shape != y_pred.shape to indicate that data needs to be unpacked
if y_true_i.shape != dat.shape:
Expand Down

0 comments on commit de62e0d

Please sign in to comment.