454. G2Net Gravitational Wave Detection | g2net-gravitational-wave-detection
感谢主办方和Kaggle组织了这次比赛。感谢我所有的队友( @sunakuzira @kzkt0713 @keiichimase @kanbehmw )以及参赛者。我想分享我们方案的摘要。
| 模型 | OOF分数 | Private LB |
|---|---|---|
| resnet34d | 0.8794 | 0.8797 |
| tf_efficientnet_b2_ap | 0.8802 | 0.8803 |
| tf_efficientnetvv2_b1 | 0.8800 | 0.8800 |
| tf_efficientnet_b2_ap | 0.8801 | 0.8800 |
| resnet34 | 0.8787 | 0.8786 |
waves = np.stack([
waves[0], waves[1], waves[2],
waves[0]+waves[1],
waves[0]-waves[1]])
CQT1992v2(sr=2048, fmin=20, fmax=1024, hop_length=8or4, window="flattop")
class CustomDataset(Dataset):
def __init__(self, train, ...):
self.train = train.reset_index(drop=True).copy()
self.labels = train["target"].values
self.train_target0 = train[train["target"] == 0]
...
def __getitem__(self, index):
y_true = self.labels[index]
y_true = torch.tensor(y_true).float()
...
if np.random.rand() > 0.5:
if y_true == 0:
sample = self.train.sample()
else:
sample = self.train_target0.sample()
wave2_path = sample.iloc[0]['file_path']
waves2 = self.load_img(wave2_path)
waves = waves + waves2
if sample.iloc[0]['target'] == 1:
y_true = torch.tensor(1).float()
albumentations.ShiftScaleRotate(p=0.5, shift_limit=0.0, scale_limit=0.2or0.3, rotate_limit=0)
| 模型 | OOF分数 | Private LB |
|---|---|---|
| 1dCNN | 0.8753 | 0.8769 |
使用的1dCNN架构来自公开Kernel。