You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'''quick script for generating a real model and caffe time command'''
import argparse,sys
parser = argparse.ArgumentParser(description='Train neural net on .types data.')
parser.add_argument('-m','--model',type=str,required=True,help="Model template. Must use TRAINFILE and TESTFILE")
parser.add_argument('-p','--prefix',type=str,help="Prefix for training/test files: <prefix>[train|test][num].types",default="/home/dkoes/scorebench/PDBbind/refined-set/affinity_search/types/small")
parser.add_argument('-o','--output',type=str,help="Output model (default timeit.model)",default="timeit.model")
parser.add_argument('--data_root',type=str,help="Root directory for gninatypes files",default="/home/dkoes/scorebench/PDBbind/refined-set/")
args = parser.parse_args()
model = open(args.model).read()
model = model.replace('TRAINFILE','%strain0.types'%args.prefix)
model = model.replace('TESTFILE','%stest0.types'%args.prefix)