da329da89ad1d5029093d7faea05784c43b86d00,textClassification/models.py,,getModel,#Any#Any#Any#,594
Before Change
model = cnn(maxlen, max_features, embed_size, recurrent_units, dropout_rate, recurrent_dropout_rate, dense_size, embedding_vector, nb_classes)
if (modelName == "cnn2"):
model = cnn2(maxlen, max_features, embed_size, recurrent_units, dropout_rate, recurrent_dropout_rate, dense_size, embedding_vector, nb_classes)
if (modelName == "cnn3"):
model = cnn3(maxlen, max_features, embed_size, recurrent_units, dropout_rate, recurrent_dropout_rate, dense_size, embedding_vector, nb_classes)
if (modelName == "lstm_cnn"):
model = lstm_cnn(maxlen, max_features, embed_size, recurrent_units, dropout_rate, recurrent_dropout_rate, dense_size, embedding_vector, nb_classes)
if (modelName == "conv"):
model = dpcnn(maxlen, max_features, embed_size, recurrent_units, dropout_rate, recurrent_dropout_rate, dense_size, embedding_vector, nb_classes)
After Change
elif (model_type == "gru_simple"):
model = gru_simple(maxlen, max_features, embed_size, recurrent_units, dropout_rate, recurrent_dropout_rate, dense_size, embedding_vector, nb_classes)
else:
raise (OSError("The model type "+model_type+" is unknown"))
return model
def train_model(model, list_classes, batch_size, max_epoch, use_roc_auc, train_x, train_y, val_x, val_y):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: kermitt2/delft
Commit Name: da329da89ad1d5029093d7faea05784c43b86d00
Time: 2018-05-01
Author: patrice.lopez@science-miner.com
File Name: textClassification/models.py
Class Name:
Method Name: getModel
Project Name: DexterInd/GoPiGo3
Commit Name: 94bfdd11f123d2f39d936d7c73fc35bc9a26e242
Time: 2019-03-08
Author: robert.lucian.chiriac@gmail.com
File Name: Software/Python/easygopigo3.py
Class Name:
Method Name: LineFollower
Project Name: Kamnitsask/deepmedic
Commit Name: 6ad8f3fb14fc1ab0daeb11315f7bd676e39840de
Time: 2020-06-07
Author: konstantinos.kamnitsas12@imperial.ac.uk
File Name: deepmedic/frontEnd/configParsing/testSessionParams.py
Class Name: TestSessionParameters
Method Name: __init__