Loading yelp_example/cnn.pbs +8 −5 Original line number Diff line number Diff line Loading @@ -5,11 +5,14 @@ #PBS -l nodes=1 #PBS -lpartition=gpu #clone repo/get latest cd ${HOME}/ if [ ! -d crossbow ]; then git clone https://code.ornl.gov/v33/crossbow.git else cd ${HOME}/crossbow/ git pull fi # set python paths export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH Loading @@ -17,7 +20,7 @@ export PYTHONPATH=/ccs/home/iamshang/crossbow/crossbow:$PYTHONPATH # run scripts cd ${HOME}/crossbow/yelp_example/scripts/ if ! [ -f embeddings.npy ] && ! [ -f data.pkl ]; then if [ ! -f embeddings.npy ] && [ ! -f data.pkl ]; then python feature_extraction.py ${HOME}/yelp_academic_dataset_review.json fi python th_cnn.py yelp_example/han.pbs +8 −5 Original line number Diff line number Diff line Loading @@ -5,11 +5,14 @@ #PBS -l nodes=1 #PBS -lpartition=gpu #clone repo/get latest cd ${HOME}/ if [ ! -d crossbow ]; then git clone https://code.ornl.gov/v33/crossbow.git else cd ${HOME}/crossbow/ git pull fi # set python paths export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH Loading @@ -17,7 +20,7 @@ export PYTHONPATH=/ccs/home/iamshang/crossbow/crossbow:$PYTHONPATH # run scripts cd ${HOME}/crossbow/yelp_example/scripts/ if ! [ -f embeddings.npy ] && ! [ -f data.pkl ]; then if [ ! -f embeddings.npy ] && [ ! -f data.pkl ]; then python feature_extraction.py ${HOME}/yelp_academic_dataset_review.json fi python th_han.py yelp_example/naive_bayes.pbs +8 −5 Original line number Diff line number Diff line Loading @@ -5,11 +5,14 @@ #PBS -l nodes=1 #PBS -lpartition=rhea #clone repo/get latest cd ${HOME}/ if [ ! -d crossbow ]; then git clone https://code.ornl.gov/v33/crossbow.git else cd ${HOME}/crossbow/ git pull fi # set python paths export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH Loading @@ -17,7 +20,7 @@ export PYTHONPATH=/ccs/home/iamshang/crossbow/crossbow:$PYTHONPATH # run scripts cd ${HOME}/crossbow/yelp_example/scripts/ if ! [ -f embeddings.npy ] && ! [ -f data.pkl ]; then if [ ! -f embeddings.npy ] && [ ! -f data.pkl ]; then python feature_extraction.py ${HOME}/yelp_academic_dataset_review.json fi python naive_bayes.py yelp_example/scripts/naive_bayes.py +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ from sklearn.naive_bayes import MultinomialNB from sklearn.metrics import f1_score, confusion_matrix import matplotlib.pyplot as plt import itertools import os #load saved files print "loading data" Loading yelp_example/scripts/xg-boost.py +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ import xgboost as xgb from sklearn.metrics import f1_score, confusion_matrix import matplotlib.pyplot as plt import itertools import os #load saved files print "loading data" Loading Loading
yelp_example/cnn.pbs +8 −5 Original line number Diff line number Diff line Loading @@ -5,11 +5,14 @@ #PBS -l nodes=1 #PBS -lpartition=gpu #clone repo/get latest cd ${HOME}/ if [ ! -d crossbow ]; then git clone https://code.ornl.gov/v33/crossbow.git else cd ${HOME}/crossbow/ git pull fi # set python paths export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH Loading @@ -17,7 +20,7 @@ export PYTHONPATH=/ccs/home/iamshang/crossbow/crossbow:$PYTHONPATH # run scripts cd ${HOME}/crossbow/yelp_example/scripts/ if ! [ -f embeddings.npy ] && ! [ -f data.pkl ]; then if [ ! -f embeddings.npy ] && [ ! -f data.pkl ]; then python feature_extraction.py ${HOME}/yelp_academic_dataset_review.json fi python th_cnn.py
yelp_example/han.pbs +8 −5 Original line number Diff line number Diff line Loading @@ -5,11 +5,14 @@ #PBS -l nodes=1 #PBS -lpartition=gpu #clone repo/get latest cd ${HOME}/ if [ ! -d crossbow ]; then git clone https://code.ornl.gov/v33/crossbow.git else cd ${HOME}/crossbow/ git pull fi # set python paths export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH Loading @@ -17,7 +20,7 @@ export PYTHONPATH=/ccs/home/iamshang/crossbow/crossbow:$PYTHONPATH # run scripts cd ${HOME}/crossbow/yelp_example/scripts/ if ! [ -f embeddings.npy ] && ! [ -f data.pkl ]; then if [ ! -f embeddings.npy ] && [ ! -f data.pkl ]; then python feature_extraction.py ${HOME}/yelp_academic_dataset_review.json fi python th_han.py
yelp_example/naive_bayes.pbs +8 −5 Original line number Diff line number Diff line Loading @@ -5,11 +5,14 @@ #PBS -l nodes=1 #PBS -lpartition=rhea #clone repo/get latest cd ${HOME}/ if [ ! -d crossbow ]; then git clone https://code.ornl.gov/v33/crossbow.git else cd ${HOME}/crossbow/ git pull fi # set python paths export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH Loading @@ -17,7 +20,7 @@ export PYTHONPATH=/ccs/home/iamshang/crossbow/crossbow:$PYTHONPATH # run scripts cd ${HOME}/crossbow/yelp_example/scripts/ if ! [ -f embeddings.npy ] && ! [ -f data.pkl ]; then if [ ! -f embeddings.npy ] && [ ! -f data.pkl ]; then python feature_extraction.py ${HOME}/yelp_academic_dataset_review.json fi python naive_bayes.py
yelp_example/scripts/naive_bayes.py +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ from sklearn.naive_bayes import MultinomialNB from sklearn.metrics import f1_score, confusion_matrix import matplotlib.pyplot as plt import itertools import os #load saved files print "loading data" Loading
yelp_example/scripts/xg-boost.py +1 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ import xgboost as xgb from sklearn.metrics import f1_score, confusion_matrix import matplotlib.pyplot as plt import itertools import os #load saved files print "loading data" Loading