Skip to content

Commit

Permalink
[misc] remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuntaroAoki committed Oct 26, 2023
1 parent b505d45 commit 5d6b222
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion bdpy/ml/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ def _predict(self, X, target=0):
dv /= norm(estimator['model'].coef_)
# See https://stats.stackexchange.com/questions/14876/interpreting-distance-from-hyperplane-in-svm
dv_all.append(dv)
import pdb; pdb.set_trace()
dv_all = np.vstack(dv_all).T # (n_samples, n_estimators)
dv_mean = np.mean(dv_all, axis=1, keepdims=True)

Expand Down

2 comments on commit 5d6b222

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
bdpy
   __init__.py330%9–11
bdpy/bdata
   __init__.py220%7–8
   bdata.py4024020%26–924
   featureselector.py64640%8–124
   metadata.py67670%8–154
   utils.py1131130%4–258
bdpy/dataform
   __init__.py440%7–10
   datastore.py1071070%7–265
   features.py2722720%8–522
   pd.py990%7–44
   sparse.py67670%6–126
bdpy/distcomp
   __init__.py110%6
   distcomp.py92920%7–127
bdpy/dl
   caffe.py60600%4–129
bdpy/dl/torch
   __init__.py220%1–2
   base.py43430%6–105
   models.py3323320%4–874
   torch.py1091090%3–258
bdpy/evals
   metrics.py95950%3–179
bdpy/feature
   __init__.py110%3
   feature.py30300%1–74
bdpy/fig
   __init__.py440%6–9
   draw_group_image_set.py90900%3–182
   fig.py88880%16–164
   makeplots.py3363360%1–729
   tile_images.py59590%1–193
bdpy/ml
   __init__.py770%8–14
   crossvalidation.py59590%7–196
   ensemble.py13130%5–46
   learning.py3083080%4–613
   model.py1401400%4–285
   regress.py11110%6–38
   searchlight.py16160%4–51
bdpy/mri
   __init__.py770%7–13
   fmriprep.py4974970%4–866
   glm.py40400%4–95
   image.py24240%4–54
   load_epi.py28280%7–88
   load_mri.py19190%4–36
   roi.py2482480%4–499
   spm.py1581580%1–300
bdpy/opendata
   __init__.py110%1
   openneuro.py2102100%1–329
bdpy/preproc
   __init__.py330%8–10
   interface.py52520%8–217
   preprocessor.py1291290%8–236
   select_top.py22220%8–61
   util.py660%6–22
bdpy/recon
   utils.py55550%4–146
bdpy/recon/torch
   __init__.py110%1
   icnn.py1611610%15–478
bdpy/stats
   __init__.py110%13
   corr.py43430%6–112
bdpy/util
   __init__.py330%7–9
   info.py47470%4–79
   math.py13130%4–38
   utils.py36360%7–145
TOTAL481048100% 

Tests Skipped Failures Errors Time
110 0 💤 13 ❌ 6 🔥 14.356s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
bdpy
   __init__.py330%9–11
bdpy/bdata
   __init__.py220%7–8
   bdata.py4024020%26–924
   featureselector.py64640%8–124
   metadata.py67670%8–154
   utils.py1131130%4–258
bdpy/dataform
   __init__.py440%7–10
   datastore.py1071070%7–265
   features.py2722720%8–522
   pd.py990%7–44
   sparse.py67670%6–126
bdpy/distcomp
   __init__.py110%6
   distcomp.py92920%7–127
bdpy/dl
   caffe.py60600%4–129
bdpy/dl/torch
   __init__.py220%1–2
   base.py43430%6–105
   models.py3323320%4–874
   torch.py1091090%3–258
bdpy/evals
   metrics.py95950%3–179
bdpy/feature
   __init__.py110%3
   feature.py30300%1–74
bdpy/fig
   __init__.py440%6–9
   draw_group_image_set.py90900%3–182
   fig.py88880%16–164
   makeplots.py3363360%1–729
   tile_images.py59590%1–193
bdpy/ml
   __init__.py770%8–14
   crossvalidation.py59590%7–196
   ensemble.py13130%5–46
   learning.py3083080%4–613
   model.py1401400%4–285
   regress.py11110%6–38
   searchlight.py16160%4–51
bdpy/mri
   __init__.py770%7–13
   fmriprep.py4974970%4–866
   glm.py40400%4–95
   image.py24240%4–54
   load_epi.py28280%7–88
   load_mri.py19190%4–36
   roi.py2482480%4–499
   spm.py1581580%1–300
bdpy/opendata
   __init__.py110%1
   openneuro.py2102100%1–329
bdpy/preproc
   __init__.py330%8–10
   interface.py52520%8–217
   preprocessor.py1291290%8–236
   select_top.py22220%8–61
   util.py660%6–22
bdpy/recon
   utils.py55550%4–146
bdpy/recon/torch
   __init__.py110%1
   icnn.py1611610%15–478
bdpy/stats
   __init__.py110%13
   corr.py43430%6–112
bdpy/util
   __init__.py330%7–9
   info.py47470%4–79
   math.py13130%4–38
   utils.py36360%7–145
TOTAL481048100% 

Tests Skipped Failures Errors Time
110 0 💤 13 ❌ 6 🔥 11.781s ⏱️

Please sign in to comment.