7ff1d27bef4ef8c409460b74431dc989d27ac68e,citationClassifier.py,,train_and_eval,#Any#Any#Any#Any#Any#,44

Before Change



    maxlen = 150
    // default bert model parameters
    if architecture.find("bert") != -1:
        batch_size = 32

    model = Classifier("citations", model_type=architecture, list_classes=list_classes, max_epoch=100, fold_number=fold_count, patience=10,
        use_roc_auc=True, embeddings_name=embeddings_name, use_ELMo=use_ELMo, use_BERT=use_BERT, batch_size=batch_size, maxlen=maxlen,
        class_weights=class_weights)

After Change




def train_and_eval(embeddings_name, fold_count, use_ELMo=False, use_BERT=False, architecture="gru"): 
    batch_size, maxlen = configure(architecture, use_BERT, use_ELMo)
    maxlen = 150

    model = Classifier("citations", model_type=architecture, list_classes=list_classes, max_epoch=100, fold_number=fold_count, patience=10,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: kermitt2/delft
Commit Name: 7ff1d27bef4ef8c409460b74431dc989d27ac68e
Time: 2020-02-02
Author: luca@foppiano.org
File Name: citationClassifier.py
Class Name:
Method Name: train_and_eval


Project Name: commonsense/conceptnet5
Commit Name: 1e25b7fb1b442138e09a91e84bac79feffd2175a
Time: 2013-05-28
Author: rob@luminoso.com
File Name: cnet5_index_builder/cnet5-data/wiktionary_ja/ja_read_wiktionary.py
Class Name: FindTranslations
Method Name: handleLine


Project Name: kermitt2/delft
Commit Name: 7ff1d27bef4ef8c409460b74431dc989d27ac68e
Time: 2020-02-02
Author: luca@foppiano.org
File Name: citationClassifier.py
Class Name:
Method Name: train


Project Name: pyinstaller/pyinstaller
Commit Name: add649abefad3b1d020e979f6bed4f389a1d0f3e
Time: 2007-04-01
Author: rasky@develer.com
File Name: hooks/hook-xml.py
Class Name:
Method Name: hook