Skip to content

Instantly share code, notes, and snippets.

@smly
Last active September 25, 2016 06:24
Show Gist options
  • Save smly/a0cf1506db570b0085487b3d76c6dc12 to your computer and use it in GitHub Desktop.
Save smly/a0cf1506db570b0085487b3d76c6dc12 to your computer and use it in GitHub Desktop.
neon.data.dataloader.DataLoader, runtime_error of "Could not decode media stream"
# -*- coding: utf-8 -*-
"""
Original code: prep.py on https://github.com/anlthms/sp-2016.git
* invalid media stream: 2_1418_0.3.wav
* valid media stream: 2_1418_0.2.wav
md5 checksum
-------------
964a651d454ff8a2b77ccd35e20d0805 /opt/nih_seizure/train_2.zip
9a75e839d67d3f835d3dff2a64193cbe /opt/nih_seizure/train_2/2_1418_0.mat
aab3cc51cf29d4bcb19b1d6947dc78d2 /opt/nih_seizure/train_2/2_1418_0.3.wav
8d59f9d1bc28609b4316c3cb23390627 /opt/nih_seizure/train_2/2_1418_0.2.wav
output
------
>>> $ python audiolab_convert.py
... scikits.audiolab version: 0.11.0
... Processing... /opt/nih_seizure/train_2/2_1418_0.2.wav
... Processing... /opt/nih_seizure/train_2/2_1418_0.3.wav
"""
import numpy as np
from scipy import io
from scikits import audiolab
def wavwrite(srcfile):
try:
mat = io.loadmat(srcfile)
except ValueError:
return
dat = mat['dataStruct'][0, 0][0]
mn, mx = dat.min(), dat.max()
mx = float(max(abs(mx), abs(mn)))
if mx != 0:
dat *= 0x7FFF / mx
dat = np.int16(dat)
for elec in [2, 3]:
dstfile = srcfile.replace('mat', str(elec) + '.wav')
print("Processing... {}".format(dstfile))
aud = dat[:, elec]
audiolab.wavwrite(aud, dstfile, fs=400, enc='pcm16')
def run_audiolab_convert():
print("scikits.audiolab version: {}".format(audiolab.__version__))
wavwrite('/opt/nih_seizure/train_2/2_1418_0.mat')
if __name__ == '__main__':
run_audiolab_convert()
+ '[' -f /opt/nih_seizure//prepdone ']'
+ echo /opt/nih_seizure//prepdone exists. Skipping prep...
/opt/nih_seizure//prepdone exists. Skipping prep...
++ seq 0 15
+ for elec in '`seq 0 15`'
+ echo Electrode 0...
Electrode 0...
+ ./clear.sh /opt/nih_seizure/
removed '/opt/nih_seizure//train_1/tain-index.csv'
removed '/opt/nih_seizure//train_1/tain-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/tain-ingested'
removed '/opt/nih_seizure//train_1/eval-index.csv'
removed '/opt/nih_seizure//train_1/eval-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/eval-ingested'
removed '/opt/nih_seizure//train_1/full-index.csv'
removed '/opt/nih_seizure//train_1/full-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/full-ingested'
removed '/opt/nih_seizure//test_1/test-index.csv'
removed '/opt/nih_seizure//test_1/test-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//test_1/test-ingested'
++ seq 1 3
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_1/
+ '[' '!' -e /opt/nih_seizure//train_1/ ']'
+ echo Processing subject 1...
Processing subject 1...
+ ./model.py -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/
2016-09-23 17:20:09,728 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:20:09,729 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:20:09,729 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:20:09,811 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/tain-ingested not found. Triggering data ingest...
2016-09-23 17:20:10,111 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/eval-ingested not found. Triggering data ingest...
2016-09-23 17:20:10,611 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:20:13,806 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.919913.
2016-09-23 17:20:16,881 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.686141.
2016-09-23 17:20:19,842 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.630158.
2016-09-23 17:20:23,074 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.691685.
2016-09-23 17:20:26,089 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.635203.
2016-09-23 17:20:29,091 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.597090.
2016-09-23 17:20:32,265 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.665810.
2016-09-23 17:20:35,296 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.618876.
2016-09-23 17:20:38,325 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.581286.
2016-09-23 17:20:41,541 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.652582.
2016-09-23 17:20:44,673 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.598051.
2016-09-23 17:20:47,645 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.563745.
2016-09-23 17:20:50,842 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.627693.
2016-09-23 17:20:53,944 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.573886.
2016-09-23 17:20:56,998 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.546891.
2016-09-23 17:21:00,240 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.605265.
Eval AUC for subject 1: 0.6135
+ ./model.py -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/ -test
2016-09-23 17:21:04,624 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:21:04,625 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:21:04,626 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/ -test
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:21:04,766 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/full-ingested not found. Triggering data ingest...
2016-09-23 17:21:05,167 - neon.data.dataloader - WARNING - /opt/nih_seizure//test_1/test-ingested not found. Triggering data ingest...
2016-09-23 17:21:05,987 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:21:10,525 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.829045.
2016-09-23 17:21:14,824 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.655361.
2016-09-23 17:21:19,139 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.628674.
2016-09-23 17:21:23,509 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.657899.
2016-09-23 17:21:27,820 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.624233.
2016-09-23 17:21:32,094 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.603434.
2016-09-23 17:21:36,606 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.635908.
2016-09-23 17:21:40,966 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.608518.
2016-09-23 17:21:45,133 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.580582.
2016-09-23 17:21:49,733 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.617614.
2016-09-23 17:21:53,996 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.596961.
2016-09-23 17:21:58,255 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.559383.
2016-09-23 17:22:02,865 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.598481.
2016-09-23 17:22:07,342 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.570067.
2016-09-23 17:22:11,580 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.543970.
2016-09-23 17:22:16,150 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.574345.
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_2/
+ '[' '!' -e /opt/nih_seizure//train_2/ ']'
+ echo Processing subject 2...
Processing subject 2...
+ ./model.py -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/
2016-09-23 17:22:24,881 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:22:24,883 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:22:24,883 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:22:24,979 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/tain-ingested not found. Triggering data ingest...
2016-09-23 17:22:45,911 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/eval-ingested not found. Triggering data ingest...
2016-09-23 17:22:55,105 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:23:00,682 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.614594.
2016-09-23 17:23:06,170 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.497015.
2016-09-23 17:23:11,850 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.474728.
2016-09-23 17:23:17,419 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.488507.
2016-09-23 17:23:23,028 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.438430.
2016-09-23 17:23:28,426 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.456073.
2016-09-23 17:23:33,989 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.448108.
2016-09-23 17:23:39,580 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.436957.
2016-09-23 17:23:45,213 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.453063.
2016-09-23 17:23:50,743 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.408733.
2016-09-23 17:23:56,385 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.422035.
2016-09-23 17:24:02,095 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.424704.
2016-09-23 17:24:07,772 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.433345.
2016-09-23 17:24:13,317 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.393148.
2016-09-23 17:24:18,745 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.402808.
2016-09-23 17:24:24,332 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.401918.
Eval AUC for subject 2: 0.6381
+ ./model.py -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/ -test
2016-09-23 17:24:29,853 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:24:29,855 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:24:29,855 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/ -test
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:24:30,020 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/full-ingested not found. Triggering data ingest...
2016-09-23 17:24:30,715 - neon.data.dataloader - WARNING - /opt/nih_seizure//test_2/test-ingested not found. Triggering data ingest...
2016-09-23 17:25:00,121 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:25:08,247 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.562305.
2016-09-23 17:25:16,134 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.470122.
2016-09-23 17:25:24,022 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.430107.
2016-09-23 17:25:32,097 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.439821.
2016-09-23 17:25:40,019 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.443185.
2016-09-23 17:25:47,685 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.408765.
2016-09-23 17:25:55,408 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.419932.
2016-09-23 17:26:03,279 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.428191.
2016-09-23 17:26:11,375 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.393717.
2016-09-23 17:26:19,310 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.409062.
2016-09-23 17:26:27,124 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.413283.
2016-09-23 17:26:34,903 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.386116.
2016-09-23 17:26:42,866 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.392421.
2016-09-23 17:26:50,828 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.395691.
2016-09-23 17:26:58,565 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.374289.
2016-09-23 17:27:06,397 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.376144.
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_3/
+ '[' '!' -e /opt/nih_seizure//train_3/ ']'
+ echo Processing subject 3...
Processing subject 3...
+ ./model.py -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/
2016-09-23 17:27:18,032 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:27:18,033 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:27:18,034 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:27:18,146 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_3/tain-ingested not found. Triggering data ingest...
2016-09-23 17:27:24,246 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_3/eval-ingested not found. Triggering data ingest...
2016-09-23 17:27:27,452 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:27:33,362 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.619780.
2016-09-23 17:27:39,050 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.456606.
2016-09-23 17:27:44,535 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.446483.
2016-09-23 17:27:50,129 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.434011.
2016-09-23 17:27:55,667 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.422821.
2016-09-23 17:28:01,256 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.399876.
2016-09-23 17:28:06,960 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.429491.
2016-09-23 17:28:12,395 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.409875.
2016-09-23 17:28:17,997 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.400475.
2016-09-23 17:28:23,526 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.393376.
2016-09-23 17:28:29,020 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.393874.
2016-09-23 17:28:34,860 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.368343.
2016-09-23 17:28:40,369 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.390806.
2016-09-23 17:28:45,941 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.376453.
2016-09-23 17:28:51,588 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.362193.
2016-09-23 17:28:57,042 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.363450.
Eval AUC for subject 3: 0.6845
+ ./model.py -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/ -test
2016-09-23 17:29:03,253 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:29:03,255 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:29:03,255 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 0 -out /opt/nih_seizure/v1/output/ -test
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:29:03,431 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_3/full-ingested not found. Triggering data ingest...
2016-09-23 17:29:04,184 - neon.data.dataloader - WARNING - /opt/nih_seizure//test_3/test-ingested not found. Triggering data ingest...
2016-09-23 17:29:05,612 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:29:13,957 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.557045.
2016-09-23 17:29:21,967 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.426490.
2016-09-23 17:29:30,188 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.433681.
2016-09-23 17:29:38,090 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.409908.
2016-09-23 17:29:46,402 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.424084.
2016-09-23 17:29:54,423 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.415936.
2016-09-23 17:30:02,217 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.392534.
2016-09-23 17:30:10,671 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.410416.
2016-09-23 17:30:18,589 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.388487.
2016-09-23 17:30:26,636 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.402633.
2016-09-23 17:30:34,730 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.388583.
2016-09-23 17:30:42,792 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.369438.
2016-09-23 17:30:51,143 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.390114.
2016-09-23 17:30:58,955 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.370655.
2016-09-23 17:31:07,097 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.379337.
2016-09-23 17:31:15,129 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.363589.
+ for elec in '`seq 0 15`'
+ echo Electrode 1...
Electrode 1...
+ ./clear.sh /opt/nih_seizure/
removed '/opt/nih_seizure//train_1/tain-index.csv'
removed '/opt/nih_seizure//train_1/tain-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/tain-ingested'
removed '/opt/nih_seizure//train_2/tain-index.csv'
removed '/opt/nih_seizure//train_2/tain-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_2/tain-ingested'
removed '/opt/nih_seizure//train_3/tain-index.csv'
removed '/opt/nih_seizure//train_3/tain-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_3/tain-ingested'
removed '/opt/nih_seizure//train_1/eval-index.csv'
removed '/opt/nih_seizure//train_1/eval-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/eval-ingested'
removed '/opt/nih_seizure//train_2/eval-index.csv'
removed '/opt/nih_seizure//train_2/eval-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_2/eval-ingested'
removed '/opt/nih_seizure//train_3/eval-index.csv'
removed '/opt/nih_seizure//train_3/eval-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_3/eval-ingested'
removed '/opt/nih_seizure//train_1/full-index.csv'
removed '/opt/nih_seizure//train_1/full-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/full-ingested'
removed '/opt/nih_seizure//train_2/full-index.csv'
removed '/opt/nih_seizure//train_2/full-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_2/full-ingested'
removed '/opt/nih_seizure//train_3/full-index.csv'
removed '/opt/nih_seizure//train_3/full-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_3/full-ingested'
removed '/opt/nih_seizure//test_1/test-index.csv'
removed '/opt/nih_seizure//test_1/test-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//test_1/test-ingested'
removed '/opt/nih_seizure//test_2/test-index.csv'
removed '/opt/nih_seizure//test_2/test-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//test_2/test-ingested'
removed '/opt/nih_seizure//test_3/test-index.csv'
removed '/opt/nih_seizure//test_3/test-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//test_3/test-ingested'
++ seq 1 3
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_1/
+ '[' '!' -e /opt/nih_seizure//train_1/ ']'
+ echo Processing subject 1...
Processing subject 1...
+ ./model.py -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/
2016-09-23 17:31:27,475 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:31:27,477 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:31:27,477 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:31:27,544 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/tain-ingested not found. Triggering data ingest...
2016-09-23 17:31:38,409 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/eval-ingested not found. Triggering data ingest...
2016-09-23 17:31:43,127 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:31:46,357 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.919865.
2016-09-23 17:31:49,317 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.670436.
2016-09-23 17:31:52,411 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.610376.
2016-09-23 17:31:55,546 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.671625.
2016-09-23 17:31:58,429 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.617013.
2016-09-23 17:32:01,476 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.577203.
2016-09-23 17:32:04,686 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.645232.
2016-09-23 17:32:07,653 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.591789.
2016-09-23 17:32:10,631 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.553834.
2016-09-23 17:32:13,942 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.613347.
2016-09-23 17:32:17,089 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.565479.
2016-09-23 17:32:20,133 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.529959.
2016-09-23 17:32:23,350 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.591315.
2016-09-23 17:32:26,373 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.545793.
2016-09-23 17:32:29,496 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.509658.
2016-09-23 17:32:32,810 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.579473.
Eval AUC for subject 1: 0.6424
+ ./model.py -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/ -test
2016-09-23 17:32:37,322 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:32:37,323 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:32:37,323 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/ -test
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:32:37,417 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/full-ingested not found. Triggering data ingest...
2016-09-23 17:32:37,876 - neon.data.dataloader - WARNING - /opt/nih_seizure//test_1/test-ingested not found. Triggering data ingest...
2016-09-23 17:32:59,015 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:33:03,511 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.825250.
2016-09-23 17:33:07,821 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.649937.
2016-09-23 17:33:12,139 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.610514.
2016-09-23 17:33:16,549 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.644167.
2016-09-23 17:33:20,947 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.608166.
2016-09-23 17:33:25,179 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.586889.
2016-09-23 17:33:29,763 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.613285.
2016-09-23 17:33:34,133 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.584378.
2016-09-23 17:33:38,386 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.559157.
2016-09-23 17:33:43,058 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.590468.
2016-09-23 17:33:47,590 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.562686.
2016-09-23 17:33:51,961 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.537284.
2016-09-23 17:33:56,691 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.567913.
2016-09-23 17:34:01,138 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.539154.
2016-09-23 17:34:05,304 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.510240.
2016-09-23 17:34:09,909 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.536666.
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_2/
+ '[' '!' -e /opt/nih_seizure//train_2/ ']'
+ echo Processing subject 2...
Processing subject 2...
+ ./model.py -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/
2016-09-23 17:34:18,320 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:34:18,321 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:34:18,321 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:34:18,429 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/tain-ingested not found. Triggering data ingest...
2016-09-23 17:34:38,909 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/eval-ingested not found. Triggering data ingest...
2016-09-23 17:34:47,921 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:34:53,587 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.610304.
2016-09-23 17:34:59,075 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.493917.
2016-09-23 17:35:04,402 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.468136.
2016-09-23 17:35:09,812 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.483041.
2016-09-23 17:35:15,191 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.440263.
2016-09-23 17:35:20,910 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.458717.
2016-09-23 17:35:26,385 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.450410.
2016-09-23 17:35:31,890 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.443962.
2016-09-23 17:35:37,306 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.457157.
2016-09-23 17:35:42,716 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.419482.
2016-09-23 17:35:48,379 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.447221.
2016-09-23 17:35:53,840 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.434025.
2016-09-23 17:35:59,374 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.436299.
2016-09-23 17:36:04,685 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.408193.
2016-09-23 17:36:10,388 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.411790.
2016-09-23 17:36:15,899 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.430183.
Eval AUC for subject 2: 0.6302
+ ./model.py -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/ -test
2016-09-23 17:36:21,197 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:36:21,198 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:36:21,198 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/ -test
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:36:21,359 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/full-ingested not found. Triggering data ingest...
2016-09-23 17:36:22,103 - neon.data.dataloader - WARNING - /opt/nih_seizure//test_2/test-ingested not found. Triggering data ingest...
2016-09-23 17:36:51,851 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:37:00,056 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.547968.
2016-09-23 17:37:08,103 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.461635.
2016-09-23 17:37:15,874 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.423081.
2016-09-23 17:37:23,725 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.434510.
2016-09-23 17:37:31,525 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.441872.
2016-09-23 17:37:39,072 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.410236.
2016-09-23 17:37:47,026 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.422362.
2016-09-23 17:37:55,053 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.431516.
2016-09-23 17:38:02,852 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.398610.
2016-09-23 17:38:11,089 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.414005.
2016-09-23 17:38:19,120 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.420704.
2016-09-23 17:38:26,740 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.390520.
2016-09-23 17:38:34,625 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.399081.
2016-09-23 17:38:42,630 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.407034.
2016-09-23 17:38:50,493 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.385263.
2016-09-23 17:38:58,428 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.387342.
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_3/
+ '[' '!' -e /opt/nih_seizure//train_3/ ']'
+ echo Processing subject 3...
Processing subject 3...
+ ./model.py -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/
2016-09-23 17:39:09,693 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:39:09,695 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:39:09,696 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:39:09,842 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_3/tain-ingested not found. Triggering data ingest...
2016-09-23 17:39:18,118 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_3/eval-ingested not found. Triggering data ingest...
2016-09-23 17:39:22,119 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:39:28,316 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.605344.
2016-09-23 17:39:33,874 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.461983.
2016-09-23 17:39:39,496 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.434699.
2016-09-23 17:39:45,121 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.432630.
2016-09-23 17:39:50,727 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.423423.
2016-09-23 17:39:56,310 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.390909.
2016-09-23 17:40:02,120 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.422155.
2016-09-23 17:40:07,724 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.398209.
2016-09-23 17:40:13,377 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.391965.
2016-09-23 17:40:19,090 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.392912.
2016-09-23 17:40:24,778 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.382705.
2016-09-23 17:40:30,316 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.352876.
2016-09-23 17:40:36,083 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.368049.
2016-09-23 17:40:41,770 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.366919.
2016-09-23 17:40:47,292 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.354764.
2016-09-23 17:40:53,003 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.356482.
Eval AUC for subject 3: 0.6748
+ ./model.py -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/ -test
2016-09-23 17:40:59,234 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:40:59,236 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:40:59,236 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 1 -out /opt/nih_seizure/v1/output/ -test
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:40:59,409 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_3/full-ingested not found. Triggering data ingest...
2016-09-23 17:41:00,214 - neon.data.dataloader - WARNING - /opt/nih_seizure//test_3/test-ingested not found. Triggering data ingest...
2016-09-23 17:41:01,819 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:41:10,202 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.557345.
2016-09-23 17:41:18,147 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.413546.
2016-09-23 17:41:26,573 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.438575.
2016-09-23 17:41:34,533 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.403108.
2016-09-23 17:41:42,838 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.410894.
2016-09-23 17:41:50,870 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.396452.
2016-09-23 17:41:59,105 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.378332.
2016-09-23 17:42:07,374 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.397139.
2016-09-23 17:42:15,411 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.374303.
2016-09-23 17:42:23,794 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.382324.
2016-09-23 17:42:31,882 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.374236.
2016-09-23 17:42:40,013 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.353792.
2016-09-23 17:42:48,468 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.369690.
2016-09-23 17:42:56,428 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.354199.
2016-09-23 17:43:05,053 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.359583.
2016-09-23 17:43:13,097 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.353048.
+ for elec in '`seq 0 15`'
+ echo Electrode 2...
Electrode 2...
+ ./clear.sh /opt/nih_seizure/
removed '/opt/nih_seizure//train_1/tain-index.csv'
removed '/opt/nih_seizure//train_1/tain-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/tain-ingested'
removed '/opt/nih_seizure//train_2/tain-index.csv'
removed '/opt/nih_seizure//train_2/tain-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_2/tain-ingested'
removed '/opt/nih_seizure//train_3/tain-index.csv'
removed '/opt/nih_seizure//train_3/tain-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_3/tain-ingested'
removed '/opt/nih_seizure//train_1/eval-index.csv'
removed '/opt/nih_seizure//train_1/eval-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/eval-ingested'
removed '/opt/nih_seizure//train_2/eval-index.csv'
removed '/opt/nih_seizure//train_2/eval-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_2/eval-ingested'
removed '/opt/nih_seizure//train_3/eval-index.csv'
removed '/opt/nih_seizure//train_3/eval-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_3/eval-ingested'
removed '/opt/nih_seizure//train_1/full-index.csv'
removed '/opt/nih_seizure//train_1/full-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/full-ingested'
removed '/opt/nih_seizure//train_2/full-index.csv'
removed '/opt/nih_seizure//train_2/full-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_2/full-ingested'
removed '/opt/nih_seizure//train_3/full-index.csv'
removed '/opt/nih_seizure//train_3/full-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_3/full-ingested'
removed '/opt/nih_seizure//test_1/test-index.csv'
removed '/opt/nih_seizure//test_1/test-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//test_1/test-ingested'
removed '/opt/nih_seizure//test_2/test-index.csv'
removed '/opt/nih_seizure//test_2/test-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//test_2/test-ingested'
removed '/opt/nih_seizure//test_3/test-index.csv'
removed '/opt/nih_seizure//test_3/test-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//test_3/test-ingested'
++ seq 1 3
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_1/
+ '[' '!' -e /opt/nih_seizure//train_1/ ']'
+ echo Processing subject 1...
Processing subject 1...
+ ./model.py -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/
2016-09-23 17:43:26,083 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:43:26,085 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:43:26,085 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:43:26,198 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/tain-ingested not found. Triggering data ingest...
2016-09-23 17:43:37,059 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/eval-ingested not found. Triggering data ingest...
2016-09-23 17:43:41,913 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:43:45,249 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.912931.
2016-09-23 17:43:48,306 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.676415.
2016-09-23 17:43:51,379 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.618469.
2016-09-23 17:43:54,601 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.678985.
2016-09-23 17:43:57,655 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.630647.
2016-09-23 17:44:00,894 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.586807.
2016-09-23 17:44:04,205 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.657367.
2016-09-23 17:44:07,312 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.612460.
2016-09-23 17:44:10,424 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.562769.
2016-09-23 17:44:13,714 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.634451.
2016-09-23 17:44:16,872 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.589458.
2016-09-23 17:44:19,944 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.551504.
2016-09-23 17:44:23,275 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.604118.
2016-09-23 17:44:26,329 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.567675.
2016-09-23 17:44:29,405 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.524615.
2016-09-23 17:44:32,748 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.580720.
Eval AUC for subject 1: 0.5734
+ ./model.py -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/ -test
2016-09-23 17:44:37,444 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:44:37,446 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:44:37,446 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/ -test
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:44:37,572 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/full-ingested not found. Triggering data ingest...
2016-09-23 17:44:38,015 - neon.data.dataloader - WARNING - /opt/nih_seizure//test_1/test-ingested not found. Triggering data ingest...
2016-09-23 17:44:59,161 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:45:03,891 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.830101.
2016-09-23 17:45:08,390 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.663330.
2016-09-23 17:45:12,765 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.623889.
2016-09-23 17:45:17,210 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.651680.
2016-09-23 17:45:21,398 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.618948.
2016-09-23 17:45:25,657 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.592135.
2016-09-23 17:45:30,242 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.623433.
2016-09-23 17:45:34,641 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.598494.
2016-09-23 17:45:38,863 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.567936.
2016-09-23 17:45:43,407 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.608361.
2016-09-23 17:45:47,647 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.570501.
2016-09-23 17:45:52,047 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.545831.
2016-09-23 17:45:56,701 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.585313.
2016-09-23 17:46:01,073 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.544435.
2016-09-23 17:46:05,411 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.528736.
2016-09-23 17:46:09,954 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.559987.
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_2/
+ '[' '!' -e /opt/nih_seizure//train_2/ ']'
+ echo Processing subject 2...
Processing subject 2...
+ ./model.py -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/
2016-09-23 17:46:18,629 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:46:18,630 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:46:18,630 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:46:18,714 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/tain-ingested not found. Triggering data ingest...
2016-09-23 17:46:39,201 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/eval-ingested not found. Triggering data ingest...
2016-09-23 17:46:48,282 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:46:53,822 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.602467.
2016-09-23 17:46:59,573 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.485520.
2016-09-23 17:47:05,193 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.462879.
2016-09-23 17:47:11,081 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.482145.
2016-09-23 17:47:16,600 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.441392.
2016-09-23 17:47:22,238 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.450871.
2016-09-23 17:47:28,097 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.441251.
2016-09-23 17:47:33,749 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.436236.
2016-09-23 17:47:39,378 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.452471.
2016-09-23 17:47:44,914 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.411335.
2016-09-23 17:47:50,360 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.434174.
2016-09-23 17:47:56,010 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.426422.
2016-09-23 17:48:01,769 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.439799.
2016-09-23 17:48:07,260 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.401249.
2016-09-23 17:48:13,039 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.414162.
2016-09-23 17:48:18,735 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.407338.
Eval AUC for subject 2: 0.6839
+ ./model.py -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/ -test
2016-09-23 17:48:24,679 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:48:24,681 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:48:24,682 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/ -test
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:48:24,856 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/full-ingested not found. Triggering data ingest...
2016-09-23 17:48:25,574 - neon.data.dataloader - WARNING - /opt/nih_seizure//test_2/test-ingested not found. Triggering data ingest...
2016-09-23 17:48:55,301 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:49:03,607 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.555565.
2016-09-23 17:49:11,582 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.465156.
2016-09-23 17:49:19,638 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.422121.
2016-09-23 17:49:27,673 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.439103.
2016-09-23 17:49:35,816 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.438903.
2016-09-23 17:49:43,865 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.404451.
2016-09-23 17:49:51,999 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.421213.
2016-09-23 17:50:00,234 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.424943.
2016-09-23 17:50:08,067 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.396722.
2016-09-23 17:50:16,139 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.412577.
2016-09-23 17:50:24,307 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.421935.
2016-09-23 17:50:32,334 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.392254.
2016-09-23 17:50:40,563 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.402495.
2016-09-23 17:50:48,847 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.400214.
2016-09-23 17:50:56,958 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.381234.
2016-09-23 17:51:05,002 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.395573.
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_3/
+ '[' '!' -e /opt/nih_seizure//train_3/ ']'
+ echo Processing subject 3...
Processing subject 3...
+ ./model.py -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/
2016-09-23 17:51:16,303 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:51:16,304 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:51:16,304 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:51:16,390 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_3/tain-ingested not found. Triggering data ingest...
2016-09-23 17:51:27,257 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_3/eval-ingested not found. Triggering data ingest...
2016-09-23 17:51:32,713 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:51:38,922 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.605143.
2016-09-23 17:51:44,474 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.442997.
2016-09-23 17:51:50,331 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.411590.
2016-09-23 17:51:55,945 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.402146.
2016-09-23 17:52:01,690 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.397189.
2016-09-23 17:52:07,350 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.360854.
2016-09-23 17:52:13,172 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.388218.
2016-09-23 17:52:18,958 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.365353.
2016-09-23 17:52:24,626 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.352345.
2016-09-23 17:52:30,458 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.350520.
2016-09-23 17:52:36,214 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.342923.
2016-09-23 17:52:41,794 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.314948.
2016-09-23 17:52:47,689 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.336486.
2016-09-23 17:52:53,499 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.315060.
2016-09-23 17:52:59,174 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.310887.
2016-09-23 17:53:05,039 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.301592.
Eval AUC for subject 3: 0.5526
+ ./model.py -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/ -test
2016-09-23 17:53:11,259 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:53:11,261 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:53:11,262 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_3/ -r 0 -z 64 -v --no_progress_bar -elec 2 -out /opt/nih_seizure/v1/output/ -test
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:53:11,489 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_3/full-ingested not found. Triggering data ingest...
2016-09-23 17:53:12,203 - neon.data.dataloader - WARNING - /opt/nih_seizure//test_3/test-ingested not found. Triggering data ingest...
2016-09-23 17:53:13,846 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:53:23,071 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.543132.
2016-09-23 17:53:31,063 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.410747.
2016-09-23 17:53:39,441 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.425793.
2016-09-23 17:53:47,566 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.396211.
2016-09-23 17:53:55,981 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.405275.
2016-09-23 17:54:04,107 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.393149.
2016-09-23 17:54:12,005 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.373140.
2016-09-23 17:54:20,331 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.383429.
2016-09-23 17:54:28,639 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.362042.
2016-09-23 17:54:37,116 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.369887.
2016-09-23 17:54:45,407 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.356671.
2016-09-23 17:54:53,555 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.340316.
2016-09-23 17:55:01,743 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.352028.
2016-09-23 17:55:09,700 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.323089.
2016-09-23 17:55:17,969 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.333344.
2016-09-23 17:55:26,238 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.329579.
+ for elec in '`seq 0 15`'
+ echo Electrode 3...
Electrode 3...
+ ./clear.sh /opt/nih_seizure/
removed '/opt/nih_seizure//train_1/tain-index.csv'
removed '/opt/nih_seizure//train_1/tain-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/tain-ingested'
removed '/opt/nih_seizure//train_2/tain-index.csv'
removed '/opt/nih_seizure//train_2/tain-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_2/tain-ingested'
removed '/opt/nih_seizure//train_3/tain-index.csv'
removed '/opt/nih_seizure//train_3/tain-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_3/tain-ingested'
removed '/opt/nih_seizure//train_1/eval-index.csv'
removed '/opt/nih_seizure//train_1/eval-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/eval-ingested'
removed '/opt/nih_seizure//train_2/eval-index.csv'
removed '/opt/nih_seizure//train_2/eval-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_2/eval-ingested'
removed '/opt/nih_seizure//train_3/eval-index.csv'
removed '/opt/nih_seizure//train_3/eval-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_3/eval-ingested'
removed '/opt/nih_seizure//train_1/full-index.csv'
removed '/opt/nih_seizure//train_1/full-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_1/full-ingested'
removed '/opt/nih_seizure//train_2/full-index.csv'
removed '/opt/nih_seizure//train_2/full-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_2/full-ingested'
removed '/opt/nih_seizure//train_3/full-index.csv'
removed '/opt/nih_seizure//train_3/full-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//train_3/full-ingested'
removed '/opt/nih_seizure//test_1/test-index.csv'
removed '/opt/nih_seizure//test_1/test-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//test_1/test-ingested'
removed '/opt/nih_seizure//test_2/test-index.csv'
removed '/opt/nih_seizure//test_2/test-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//test_2/test-ingested'
removed '/opt/nih_seizure//test_3/test-index.csv'
removed '/opt/nih_seizure//test_3/test-ingested/archive-0.cpio'
removed directory '/opt/nih_seizure//test_3/test-ingested'
++ seq 1 3
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_1/
+ '[' '!' -e /opt/nih_seizure//train_1/ ']'
+ echo Processing subject 1...
Processing subject 1...
+ ./model.py -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 3 -out /opt/nih_seizure/v1/output/
2016-09-23 17:55:39,031 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:55:39,033 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:55:39,033 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 3 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:55:39,145 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/tain-ingested not found. Triggering data ingest...
2016-09-23 17:55:49,940 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/eval-ingested not found. Triggering data ingest...
2016-09-23 17:55:54,865 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:55:58,406 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.922190.
2016-09-23 17:56:01,473 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.700952.
2016-09-23 17:56:04,558 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.632964.
2016-09-23 17:56:07,971 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.693707.
2016-09-23 17:56:11,245 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.638451.
2016-09-23 17:56:14,304 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.577317.
2016-09-23 17:56:17,484 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.655688.
2016-09-23 17:56:20,657 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.590432.
2016-09-23 17:56:23,669 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.544868.
2016-09-23 17:56:26,981 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.618662.
2016-09-23 17:56:30,110 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.572953.
2016-09-23 17:56:33,188 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.518899.
2016-09-23 17:56:36,470 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.596135.
2016-09-23 17:56:39,484 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.541570.
2016-09-23 17:56:42,557 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.492999.
2016-09-23 17:56:46,087 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.554344.
Eval AUC for subject 1: 0.6058
+ ./model.py -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 3 -out /opt/nih_seizure/v1/output/ -test
2016-09-23 17:56:51,053 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:56:51,054 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:56:51,055 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_1/ -r 0 -z 64 -v --no_progress_bar -elec 3 -out /opt/nih_seizure/v1/output/ -test
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:56:51,139 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_1/full-ingested not found. Triggering data ingest...
2016-09-23 17:56:51,586 - neon.data.dataloader - WARNING - /opt/nih_seizure//test_1/test-ingested not found. Triggering data ingest...
2016-09-23 17:57:12,888 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
2016-09-23 17:57:17,670 - neon.callbacks.callbacks - INFO - Epoch 0 complete. Train Cost 0.840777.
2016-09-23 17:57:22,039 - neon.callbacks.callbacks - INFO - Epoch 1 complete. Train Cost 0.676198.
2016-09-23 17:57:26,282 - neon.callbacks.callbacks - INFO - Epoch 2 complete. Train Cost 0.630769.
2016-09-23 17:57:30,905 - neon.callbacks.callbacks - INFO - Epoch 3 complete. Train Cost 0.664715.
2016-09-23 17:57:35,343 - neon.callbacks.callbacks - INFO - Epoch 4 complete. Train Cost 0.632275.
2016-09-23 17:57:39,646 - neon.callbacks.callbacks - INFO - Epoch 5 complete. Train Cost 0.596310.
2016-09-23 17:57:44,442 - neon.callbacks.callbacks - INFO - Epoch 6 complete. Train Cost 0.626462.
2016-09-23 17:57:48,937 - neon.callbacks.callbacks - INFO - Epoch 7 complete. Train Cost 0.592380.
2016-09-23 17:57:53,241 - neon.callbacks.callbacks - INFO - Epoch 8 complete. Train Cost 0.566195.
2016-09-23 17:57:57,780 - neon.callbacks.callbacks - INFO - Epoch 9 complete. Train Cost 0.600559.
2016-09-23 17:58:02,116 - neon.callbacks.callbacks - INFO - Epoch 10 complete. Train Cost 0.557774.
2016-09-23 17:58:06,629 - neon.callbacks.callbacks - INFO - Epoch 11 complete. Train Cost 0.539515.
2016-09-23 17:58:11,217 - neon.callbacks.callbacks - INFO - Epoch 12 complete. Train Cost 0.569692.
2016-09-23 17:58:15,666 - neon.callbacks.callbacks - INFO - Epoch 13 complete. Train Cost 0.535856.
2016-09-23 17:58:20,138 - neon.callbacks.callbacks - INFO - Epoch 14 complete. Train Cost 0.519644.
2016-09-23 17:58:24,799 - neon.callbacks.callbacks - INFO - Epoch 15 complete. Train Cost 0.529910.
+ for subj in '`seq 1 3`'
+ train_dir=/opt/nih_seizure//train_2/
+ '[' '!' -e /opt/nih_seizure//train_2/ ']'
+ echo Processing subject 2...
Processing subject 2...
+ ./model.py -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 3 -out /opt/nih_seizure/v1/output/
2016-09-23 17:58:33,472 - neon.backends.nervanagpu - INFO - Initialized NervanaGPU
2016-09-23 17:58:33,473 - neon.backends - INFO - Backend: gpu, RNG seed: 0
2016-09-23 17:58:33,474 - neon.util.argparser - INFO - Command Line Args: -e 16 -w /opt/nih_seizure//train_2/ -r 0 -z 64 -v --no_progress_bar -elec 3 -out /opt/nih_seizure/v1/output/
Defaults:
--serialize: 0
--history: 1
--backend: gpu
--device_id: 0
--max_devices: 1
--rounding: False
--datatype: f32
2016-09-23 17:58:33,598 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/tain-ingested not found. Triggering data ingest...
2016-09-23 17:58:54,034 - neon.data.dataloader - WARNING - /opt/nih_seizure//train_2/eval-ingested not found. Triggering data ingest...
2016-09-23 17:59:03,534 - neon.callbacks.callbacks - INFO - Model:
Network Layers:
Sequential
Convolution Layer 'Convolution_0': 1 x (103x1677) inputs, 64 x (101x419) outputs, 0,0 padding, 1,4 stride
Activation Layer 'Convolution_0_Rectlin': Rectlin
Pooling Layer 'Pooling_0': 64 x (101x419) inputs, 64 x (50x209) outputs
Convolution Layer 'Convolution_1': 64 x (50x209) inputs, 128 x (48x104) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_1_bnorm': 638976 inputs, 1 steps, 128 feature maps
Activation Layer 'Convolution_1_Rectlin': Rectlin
Pooling Layer 'Pooling_1': 128 x (48x104) inputs, 128 x (24x52) outputs
Convolution Layer 'Convolution_2': 128 x (24x52) inputs, 256 x (22x25) outputs, 0,0 padding, 1,2 stride
BatchNorm Layer 'Convolution_2_bnorm': 140800 inputs, 1 steps, 256 feature maps
Activation Layer 'Convolution_2_Rectlin': Rectlin
Convolution Layer 'Convolution_3': 256 x (22x25) inputs, 512 x (21x24) outputs, 0,0 padding, 1,1 stride
BatchNorm Layer 'Convolution_3_bnorm': 258048 inputs, 1 steps, 512 feature maps
Activation Layer 'Convolution_3_Rectlin': Rectlin
BiBNRNN Layer 'BiBNRNN_0': 10752 inputs, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_1': (128 inputs) * 2, (128 outputs) * 2, 24 steps
BiBNRNN Layer 'BiBNRNN_2': (128 inputs) * 2, (128 outputs) * 2, 24 steps
RecurrentOutput choice RecurrentMean : (256, 24) inputs, 256 outputs
Linear Layer 'Linear_0': 256 inputs, 2 outputs
Activation Layer 'Linear_0_Softmax': Softmax
terminate called after throwing an instance of 'std::runtime_error'
what(): Could not decode media stream
./run.sh: line 45: 11211 Aborted (core dumped) ./model.py -e $num_epochs -w $train_dir -r 0 -z 64 -v --no_progress_bar -elec $elec -out $out_dir
# -*- coding: utf-8 -*-
"""
* invalid media stream: 2_1418_0.3.wav
* valid media stream: 2_1418_0.2.wav
md5 checksum
-------------
964a651d454ff8a2b77ccd35e20d0805 /opt/nih_seizure/train_2.zip
9a75e839d67d3f835d3dff2a64193cbe /opt/nih_seizure/train_2/2_1418_0.mat
aab3cc51cf29d4bcb19b1d6947dc78d2 /opt/nih_seizure/train_2/2_1418_0.3.wav
8d59f9d1bc28609b4316c3cb23390627 /opt/nih_seizure/train_2/2_1418_0.2.wav
output
------
>>> $ python test_dataloder_audioparams.py
... neon 1.5.4+485033c
... testcase_elec2()
... archive is successfully generated on debug1-ingested/
... data_loader is ok
... testcase_elec3()
... archive is successfully generated on debug1-ingested/
... terminate called after throwing an instance of 'std::runtime_error'
... what(): Could not decode media stream
... zsh: abort (core dumped) python test_dataloader_audioparams.py
"""
import shutil
import neon
from neon.data import DataLoader, AudioParams
from neon.util.argparser import NeonArgparser
from neon.backends import gen_backend
gen_backend(backend='gpu', batch_size=128)
def clear_archive_dir():
shutil.rmtree('/opt/nih_seizure/debug1-ingested')
def check_version():
print("neon {}".format(neon.__version__))
def testcase_elec2():
# OK
clear_archive_dir()
print('testcase_elec2()')
subj_dir = '/opt/nih_seizure/train_2'
index_file = '/opt/nih_seizure/train_2/debug1_idx.csv'
# Single file
with open(index_file, 'w') as f:
f.write("filename,label\n2_1418_0.2.wav,0\n")
media_params = AudioParams(
random_scale_percent=5.0,
sampling_freq=400,
clip_duration=240000 * 1000 / 400,
frame_duration=512)
data_loader = DataLoader(
set_name='debug1',
media_params=media_params,
index_file=index_file,
repo_dir=subj_dir,
target_size=1,
nclasses=2)
print("archive is successfully generated on debug1-ingested/")
for X, y in data_loader:
assert X.get().shape[1] == 128
print("data_loader is ok")
def testcase_elec3():
# abort called after throwing an instanceo of std::runtime_error
# => exception raised on loader/src/codec.hpp:L139.
# => returned value from avcodec_decode_audio4() is -1094995529.
# => the error code (-0x41444E49, INDA) indicates AVERROR_INVALIDDATA.
clear_archive_dir()
print('testcase_elec3()')
subj_dir = '/opt/nih_seizure/train_2'
index_file = '/opt/nih_seizure/train_2/debug1_idx.csv'
# Single file
with open(index_file, 'w') as f:
f.write("filename,label\n2_1418_0.3.wav,0\n")
media_params = AudioParams(
random_scale_percent=5.0,
sampling_freq=400,
clip_duration=240000 * 1000 / 400,
frame_duration=512)
data_loader = DataLoader(
set_name='debug1',
media_params=media_params,
index_file=index_file,
repo_dir=subj_dir,
target_size=1,
nclasses=2)
print("archive is successfully generated on debug1-ingested/")
for X, y in data_loader:
assert X.get().shape[1] == 128
print("data_loader is ok")
if __name__ == '__main__':
check_version()
testcase_elec2()
testcase_elec3()
$ grep -C1 -P "^#.+_VERSION_MINOR" /usr/include/x86_64-linux-gnu/libav*/version.h
/usr/include/x86_64-linux-gnu/libavcodec/version.h-#define LIBAVCODEC_VERSION_MAJOR 56
/usr/include/x86_64-linux-gnu/libavcodec/version.h:#define LIBAVCODEC_VERSION_MINOR 60
/usr/include/x86_64-linux-gnu/libavcodec/version.h-#define LIBAVCODEC_VERSION_MICRO 100
--
/usr/include/x86_64-linux-gnu/libavformat/version.h-#define LIBAVFORMAT_VERSION_MAJOR 56
/usr/include/x86_64-linux-gnu/libavformat/version.h:#define LIBAVFORMAT_VERSION_MINOR 40
/usr/include/x86_64-linux-gnu/libavformat/version.h-#define LIBAVFORMAT_VERSION_MICRO 101
--
/usr/include/x86_64-linux-gnu/libavutil/version.h-#define LIBAVUTIL_VERSION_MAJOR 54
/usr/include/x86_64-linux-gnu/libavutil/version.h:#define LIBAVUTIL_VERSION_MINOR 31
/usr/include/x86_64-linux-gnu/libavutil/version.h-#define LIBAVUTIL_VERSION_MICRO 100
$ ipython
Python 2.7.12 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:42:40)
Type "copyright", "credits" or "license" for more information.
IPython 5.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import scikits.audiolab
In [2]: scikits.audiolab.__version__
Out[2]: '0.11.0'
In [3]: import neon
In [4]: neon.__version
Out[4]: '1.5.4+485033c'
-----
* OS: Ubuntu 16.04
* CUDA v8.0.27_1 (cuda_8.0.27_linux.run, cuda_8.0.27.1_linux.run)
* CuDNN v5.1 (cudnn-8.0-linux-x64-v5.1.tgz)
* Graphic card: GTX 1080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment