Skip to content

Instantly share code, notes, and snippets.

@hannic
Created December 2, 2012 20:00
Show Gist options
  • Save hannic/4190744 to your computer and use it in GitHub Desktop.
Save hannic/4190744 to your computer and use it in GitHub Desktop.
train kernel (libsvm) - requires distances, ids, script used to run on an academic cluster
#!/bin/sh
#$ -M myemail@address.ch
#$ -m a
#$ -l h_cpu=16:00:00
#$ -l scratch=1,scratch_size=4G,scratch_files=1000
#$ -l h_vmem=4G
#$ -t 1-31
cd /home/userdir/ProjectDir/distances
gamma_exponent =$( echo $SGE_TASK_ID -16 | bc -l)
ruby txt2krnl.rb trainset-ed id.txt $gamma_exponent > train-g$gamma_exponent.krnl
echo $SGE_TASK_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment