e87334a5fbe16bd1f16357b452036b578ca3b5f8,auto_ml/utils_models.py,,load_keras_model,#Any#,480
Before Change
from keras.models import load_model
with open(file_name, "rb") as read_file:
base_pipeline = dill.load(read_file)
for step in base_pipeline.named_steps:
pipeline_step = base_pipeline.named_steps[step]
try:
After Change
return base_pipeline
def load_keras_model(file_name):
return load_ml_model(file_name)
def make_deep_learning_model(hidden_layers=None, num_cols=None, optimizer="adam", dropout_rate=0.2, weight_constraint=0, feature_learning=False):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: ClimbsRocks/auto_ml
Commit Name: e87334a5fbe16bd1f16357b452036b578ca3b5f8
Time: 2017-04-17
Author: ClimbsBytes@gmail.com
File Name: auto_ml/utils_models.py
Class Name:
Method Name: load_keras_model
Project Name: tryolabs/luminoth
Commit Name: ed700a85cf25be0971b7139fe9a2a2d0d34d2f7d
Time: 2017-08-04
Author: javirey@gmail.com
File Name: luminoth/utils/config.py
Class Name:
Method Name: get_base_config
Project Name: OpenNMT/OpenNMT-py
Commit Name: 23dffb96ac95827a3af89f6ff027d254284ba93c
Time: 2019-02-08
Author: guillaumekln@users.noreply.github.com
File Name: onmt/inputters/inputter.py
Class Name: DatasetLazyIter
Method Name: __iter__