『深度应用』首届中国心电智能大赛复赛开源(第三十一名,得分0.841484)

初赛开源及讲解博客:https://blog.csdn.net/xiaosongshine/article/details/88972196

复赛介绍博客:https://blog.csdn.net/xiaosongshine/article/details/95326320

代码包括两个部分,1.训练代码和2.预测代码

1.训练代码,用的了KFold,加权loss与残差连接

from glob import glob
import pandas as pd
import numpy as np
from scipy.io import loadmat
import math
from matplotlib import pyplot as plt
from keras.layers import *
from keras.models import *
from keras.optimizers import *
import keras
from keras import backend as K
#import tqdm
import random
import tensorflow as tf

seed = 1234
random.seed(seed)
tf.set_random_seed(seed)



base_path = "/media/jdcloud/"
train_base_dir = base_path+"Train/"
val_base_dir = base_path+"Val/"

ref_path = base_path+"reference.csv"
my_ref_path = "my_ref.csv"
train_ref_path = "train.csv"

BZ = 100

你可能感兴趣的:(深度学习)