forked from zhuww/ubc_AI
-
Notifications
You must be signed in to change notification settings - Fork 0
pscholz/ubc_AI
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
UBC AI project (pfd AI part) by Aaron Berndsen and Weiwei Zhu TO USE THIS CODE YOU NEED TO INSTALL: sklearn (python package, version 0.12.1) libblas-dev theano (python) python-dev TO INSTALL the packages: apt-get install python-dev apt-get install libblas-dev easy_install scikit-learn==0.12.1 easy_install theano TO USE OUR PICKLED CLASSIFIERS: ***The following code is from the quickclf.py code in the repo, this code classifer all .pfd file in the current workign directory and save teh result to clfresult.txt. One can then open up and inspect the result using: python pfdviewr.py clfresult.txt import cPickle, glob, ubc_AI from ubc_AI.data import pfdreader AI_PATH = '/'.join(ubc_AI.__file__.split('/')[:-1]) classifier = cPickle.load(open(AI_PATH+'/trained_AI/clfl2_BD.pkl','rb')) pfdfile = glob.glob('*.pfd') AI_scores = classifier.report_score([pfdreader(f) for f in pfdfile]) text = '\n'.join(['%s %s' % (pfdfile[i], AI_scores[i]) for i in range(len(pf dfile))]) fout = open('clfresult.txt', 'w') fout.write(text) fout.close()
About
UBC AI project
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 99.4%
- Fortran 0.6%