-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MERGE: with master; ADD: shell script to launch training
- Loading branch information
Showing
13 changed files
with
806 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
saved_models/ | ||
saved_models | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Awni Hannun, Stanford University | ||
Sudnya Diamos, Stanford University |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# file: dependencies.txt | ||
# | ||
# This file lists additional Debian packages that must be installed | ||
# prior to running your entry's 'setup.sh' and 'next.sh' scripts. | ||
# Each package must be on a separate line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#! /bin/bash | ||
# | ||
# file: next.sh | ||
# | ||
# This bash script analyzes the record named in its command-line | ||
# argument ($1), and writes the answer to the file 'answers.txt'. | ||
# This script is run once for each record in the Challenge test set. | ||
# | ||
# The program should print the record name, followed by a comma, | ||
# followed by one of the following characters: | ||
# N for normal rhythm | ||
# A for atrial fibrillation | ||
# O for other abnormal rhythms | ||
# ~ for records too noisy to classify | ||
# | ||
# For example, if invoked as | ||
# next.sh A00001 | ||
# it analyzes record A00001 and (assuming the recording is | ||
# considered to be normal) writes "A00001,N" to answers.txt. | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
RECORD=$1 | ||
|
||
# TODO actually eval record and write to answers.txt | ||
echo $RECORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# | ||
# file: prepare-entry.sh | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
cp ../LICENSE LICENSE.txt | ||
|
||
echo "==== running entry script on validation set ====" | ||
validation=/deep/group/med/alivecor/sample2017/validation | ||
|
||
rm -f answers.txt | ||
for r in `cat $validation/RECORDS`; do | ||
echo $r | ||
ln -sf $validation/$r.hea . | ||
ln -sf $validation/$r.mat . | ||
./next.sh $r | ||
rm $r.hea $r.mat | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#! /bin/bash | ||
# | ||
# file: setup.sh | ||
# | ||
# This bash script performs any setup necessary in order to test your | ||
# entry. It is run only once, before running any other code belonging | ||
# to your entry. | ||
|
||
set -e | ||
set -o pipefail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
gpu=3 | ||
env CUDA_VISIBLE_DEVICES=$gpu python train.py configs/cnn20-lr-1.json & | ||
echo "Started training at: ", $(date +%m:%d:%y-%H:%M:%S) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters