keras
keras,
shows how to use keras to create a classifier for movie reviews.
We will be interested in working on the GPU nodes at the
Pittsburgh Supercomputing Center, but these calculations can
also be done on your laptop, if you install keras there.
The notes:
Python scripts:
-
imdb.py,
a keras/python script which carries out the IMDB analysis.
-
imdb_decode.py,
a keras/python script which decodes one of the movie reviews in the
IMDB database.
-
imdb_psc.py,
a keras/python script which carries out the IMDB analysis,
slightly modified so as to run on the PSC Bridges system,
where the data can only be loaded from a local directory.
Shell scripts:
-
imdb.sh,
a bash script which runs imdb.py.
-
imdb_copy.sh,
a bash script which will copy the imdb dataset information
from my PSC account to yours. You need to run this script
once before trying the imdb example. Get the script by
"cp ~jburkard/imdb_copy.sh imdb_copy.sh". Run the script by
"bash imdb_copy.sh".
-
imdb_psc.sh,
a bash script, for use with SLURM on the PSC,
which runs imdb_psc.py.
Text:
Images:
-
cloud1.png,
a word cloud associated with positive movie reviews.
-
cloud2.png,
a word cloud associated with negative movie reviews.
Last revised on 12 November 2019.