FMRI
for love
essenge
顺势而为
展开
-
Early stopping
import numpy as npimport torchclass EarlyStopping: """Early stops the training if validation loss doesn't improve after a given patience.""" def __init__(self, patience=7, verbose=False, delta=0, path='checkpoint.pt'): """ Args:原创 2020-06-12 14:25:33 · 250 阅读 · 0 评论 -
Logger
import loggingimport sys# 获取logger实例,如果参数为空则返回root loggerlogger = logging.getLogger("AppName")# 指定logger输出格式formatter = logging.Formatter(‘%(asctime)s %(levelname)-8s: %(message)s‘)# 文件日志file_handler = logging.FileHandler("test.log")file_handler原创 2020-06-10 22:12:47 · 123 阅读 · 0 评论 -
HCP_DataLoader
from torch.utils.data import Dataset,DataLoaderimport torchimport numpy as npimport nibabel as nblHCPDataListPath = '/home/ec2-user/SageMaker/Models_HCP/dt.txt'HCPDataRootPath = '/home/ec2-user/SageMaker/HCP_dataset'labelNumber = {'EMOTION': 0, 'GAM原创 2021-01-23 17:17:41 · 427 阅读 · 4 评论 -
HCP_S1200数据集下载
HCP_datasetMapping the human brain is one of the great scientific challenges of the 21st century.The HCP( The Human Connectome Project) is mapping the healthy human connectome by collecting and freely distributing neuroimaging and behavioral data on 1,20原创 2021-01-23 11:22:45 · 2134 阅读 · 0 评论 -
脑影像数据库初步整理
LIst of existing shared neuroimaging datasets.ResourceTotal SubjectsLinkADHD-200776http://fcon_1000.projects.nltrc.org/indl/adhd200/OpenfMRI539http://openfmri.org/OASIS566http://www.oasis-brains.org/HCP1200http://www.humanconne原创 2021-01-21 18:58:11 · 625 阅读 · 2 评论