Commit 673ad720 authored by Gao, Shang's avatar Gao, Shang
Browse files

added missing imports

parent 63a3397d
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -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
@@ -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
+8 −5
Original line number Diff line number Diff line
@@ -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
@@ -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
+8 −5
Original line number Diff line number Diff line
@@ -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
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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"
+1 −0
Original line number Diff line number Diff line
@@ -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