- Execute
source setup_env.shat the directory root - Run python codes from the directory src/python
The installation assumes that you have installed git
and anaconda (or miniconda).
git clone --recurse-submodules https://github.com/uwescience/xstate.gitcd xstatebash setup.sh
Windows users should manually perform the steps in setup.sh.
For all use cases:
- Start a new terminal session
cd xstateconda activate xstate
When done, conda deactivate xstate
Update the classifiers:
- From the top level repository directory,
python xstate/xstate/python/tools/make_svm_classifier.py. (On windows, use\instead of/.
Run a classification:
- Start a new terminal session, change directory to
xstate, and activate the virtual environment. - From the top level repository directory,
python xstate/xstate/python/tools/classify_expression.py <data_file>. (On windows, use\instead of/. Note: It is assumed that <data file> is in thesamplesdirectory underdata. To change the directory, use the--diroption.