e90d0bb446ad6da9d17ba1ab2d3fe6365e152961,finetune/datasets/stanford_sentiment_treebank.py,,,#,44

Before Change


if __name__ == "__main__":
    // Train and evaluate on SST
    dataset = StanfordSentimentTreebank(nrows=1000).dataframe
    model = Classifier(
        debugging_logs=True,
        interpolate_pos_embed=False, 
        n_epochs=3,
        batch_size=2,
        lr_warmup=0.1,
        max_length=64,
        base_model=GPTModel
    )
    trainX, testX, trainY, testY = train_test_split(dataset.Text.values, dataset.Target.values, test_size=0.3, random_state=42)
    model.fit(trainX, trainY)
    preds = model.predict(testX)
    print(preds, testY)

After Change


if __name__ == "__main__":
    // Train and evaluate on SST
    dataset = StanfordSentimentTreebank(nrows=1000).dataframe
    model = Classifier(
        debugging_logs=True,
        summarize_grads=True,
//        val_interval=1000,
    )
    trainX, testX, trainY, testY = train_test_split(dataset.Text.values, dataset.Target.values, test_size=0.3, random_state=42)
    model.fit(trainX, trainY)
    preds = model.predict(testX)
    print(preds, testY)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: IndicoDataSolutions/finetune
Commit Name: e90d0bb446ad6da9d17ba1ab2d3fe6365e152961
Time: 2020-02-05
Author: benlt@hotmail.co.uk
File Name: finetune/datasets/stanford_sentiment_treebank.py
Class Name:
Method Name:


Project Name: IndicoDataSolutions/finetune
Commit Name: 2b89324f1d9e48eacf19b4e0eb998c1e7835f747
Time: 2019-03-14
Author: benlt@hotmail.co.uk
File Name: finetune/datasets/stanford_sentiment_treebank.py
Class Name:
Method Name:


Project Name: IndicoDataSolutions/Enso
Commit Name: dfb3893dd2a47fe7482d5237eaf696eba8c25f62
Time: 2018-10-16
Author: benlt@hotmail.co.uk
File Name: enso/experiment/finetuning.py
Class Name: Finetune
Method Name: __init__