Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/s/y/synt-HEAD/synt/accuracy.py   synt(Download)
 
    m = RedisManager()
    trained_classifier = m.r.get('trained_classifier') #retrieve the trained classifier
 
    if not trained_classifier:
    #we use the trained_to as our offset and proceed to use the samples
    #thereafter, unless an offset is otherwise specified
    trained_to = int(m.r.get('trained_to'))
 
    if not offset:
 
    if not db_name:
        db_name = m.r.get('trained_db') #use the trained samples database
 
    test_samples = get_samples(db_name, test_samples, offset=offset)
 
    testfeats = []
    trained_ext = m.r.get('trained_extractor')