Package CHEM :: Package ML :: Package predict :: Module reduce_database
[hide private]
[frames] | no frames]

Module reduce_database



Variables [hide private]
  usage = """ python reduce_database.py <model file> <MOL2 base ...
  model_f = sys.argv [1]
  mol2_f = sys.argv [2]
  new_model_f = sys.argv [3]
  new_mol2_f = sys.argv [4]
  db_size = 0
  support_l = []
  number_sv = len(support_l)
  ifs = oemolistream(mol2_f)
  ofs = oemolostream(new_mol2_f)
  count = -1
  f = open(model_f)
  g = open(new_model_f, 'w')
Variables Details [hide private]

usage

Value:
""" python reduce_database.py <model file> <MOL2 base (gzip)> <new mod\
el file> <new MOL2 base (gzip)>

Removes from the database and the model file all the values correspond\
ing to non support vectors

Prints on screen the number of support vectors that are remaining 
(You'll have to update Predictor.py and PredictorMol.py)
...