Skip to content

Instantly share code, notes, and snippets.

View vanangamudi's full-sized avatar

Pa Mu Selvakumar vanangamudi

View GitHub Profile
@vanangamudi
vanangamudi / dump.csv
Created November 8, 2017 10:17
samples with ade masks
We can't make this file beautiful and searchable because it's too large.
ade,neurologic deterioration
drug,nitrous oxide
sequence,Patients,with,vitamin,B12,deficiency,are,exceedingly,sensitive,to,neurologic,deterioration,following,nitrous,oxide,anesthesia,.
labels,0,0,0,0,0,0,0,0,0,5,7,0,1,3,0,0
ade_mask,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0
==============================, =============================
ade,prolonged jaundice,sicca complex
drug,thiabendazole
sequence,A,55-yr-old,man,developed,prolonged,jaundice,and,sicca,complex,after,a,course,of,thiabendazole,therapy,.
labels,0,0,0,0,5,7,0,5,7,0,0,0,0,4,0,0
@vanangamudi
vanangamudi / tf.cond.py
Created May 23, 2017 13:19
Tensorflow conditional statement
import tensorflow as tf
training = tf.placeholder(dtype=tf.bool, name='is_training')
a = tf.placeholder(dtype=tf.float32, name='a')
b = tf.placeholder(dtype=tf.float32, name='b')
c = tf.cond(training, lambda : a+b, lambda : a*b)
sess = tf.Session()
@vanangamudi
vanangamudi / no name
Created August 29, 2014 13:20
no name
#include "stdio.h"
#include "unistd.h"
#define MSGLEN 32
int main (int argc, char const* argv[])
{
// check for arguments
if(argc < 2){