d889aa1e7d7669372293f45883bcf96b864737e1,examples/imdb_cnn.py,,main,#Any#,80

Before Change


    //train_y = train_y[:1000]
    print("Parse data")
    train_X = list(tqdm.tqdm(nlp.pipe(train_X)))
    dev_X = list(tqdm.tqdm(nlp.pipe(dev_X)))
    n_sent = sum([len(list(doc.sents)) for doc in train_X])
    print("%d sentences" % n_sent)

    hpsearch = BestFirstFinder(

After Change


    train_X, train_y = zip(*train)
    test_X, test_y = zip(*test)
    train_y = Model.ops.asarray(to_categorical(train_y, nb_classes=2))
    test_y = Model.ops.asarray(to_categorical(test_y, nb_classes=2))
    
    //train_X = train_X[:2000]
    //test_X = test_X[:2000]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: explosion/thinc
Commit Name: d889aa1e7d7669372293f45883bcf96b864737e1
Time: 2017-11-24
Author: honnibal+gh@gmail.com
File Name: examples/imdb_cnn.py
Class Name:
Method Name: main


Project Name: ilastik/ilastik
Commit Name: 1f08e48e0508cbbeb762ce3277c341169e7df0c4
Time: 2015-11-18
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/labeling/labelingImport.py
Class Name: LabelImportOptionsDlg
Method Name: _initInsertPositionMappingWidgets


Project Name: explosion/thinc
Commit Name: 63f158a5173443754f27a15bba7b5220cdfe51e8
Time: 2017-11-24
Author: honnibal+gh@gmail.com
File Name: examples/imdb_cnn.py
Class Name:
Method Name: main


Project Name: tflearn/tflearn
Commit Name: 45e0e9f57cd6aa0253ef45ecd9044dbdb329c8f0
Time: 2017-05-22
Author: aymeric.damien@gmail.com
File Name: examples/images/dcgan.py
Class Name:
Method Name:


Project Name: CyberReboot/NetworkML
Commit Name: a9e42a7f1d0ea64be0371a6f7aff5039b5a48f4f
Time: 2017-11-15
Author: CStephenson970@gmail.com
File Name: NodeClassifier/iterator.py
Class Name: BatchIterator
Method Name: gen_data