KamitaniLab / bdpy

Python package for brain decoding analysis (BrainDecoderToolbox2 data format, machine learning analysis, functional MRI)
MIT License
33 stars 22 forks source link

[add] add norm1-pool5 generators definition #71

Closed micchu closed 1 year ago

micchu commented 1 year ago

I added the class definition of the norm1, norm2, relu3, relu4, and pool5 generator.

github-actions[bot] commented 1 year ago

Coverage

Coverage Report
FileStmtsMissCoverMissing
bdpy
   __init__.py330%10–12
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.py3103100%1–813
   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.py3073070%4–611
   model.py1341340%4–277
   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.py2082080%1–325
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.py1591590%15–473
bdpy/stats
   __init__.py110%14
   corr.py42420%7–116
bdpy/util
   __init__.py330%8–10
   info.py46460%1–76
   math.py12120%1–32
   utils.py35350%8–146
TOTAL477347730% 

Tests Skipped Failures Errors Time
110 0 :zzz: 13 :x: 6 :fire: 14.232s :stopwatch:
ShuntaroAoki commented 1 year ago

@ganow Thank you for your comments. I largely agree with your points. I merged the pull request because some members needed the code immediately. The code definitely needs refactoring, and we will be updating it.