bcf723a2f67a372e6b03a453149a82ecf2766fff,theanolm/commands/train.py,,train,#Any#,139
Before Change
theano.config.profile = args.profile
theano.config.profile_memory = args.profile
if os.path.exists(args.model_path):
print("Reading initial state from %s." % args.model_path)
initial_state = numpy.load(args.model_path)
else:
initial_state = None
print("Reading dictionary.")
sys.stdout.flush()
dictionary = theanolm.Dictionary(args.dictionary_file,
args.dictionary_format)
After Change
for option_name, option_value in training_options.items():
logging.debug("%s: %s", option_name, str(option_value))
with h5py.File(args.model_path, "a", driver="core") as state:
print("Building neural network trainer.")
sys.stdout.flush()
trainer = create_trainer(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: senarvi/theanolm
Commit Name: bcf723a2f67a372e6b03a453149a82ecf2766fff
Time: 2015-12-24
Author: seppo.git@marjaniemi.com
File Name: theanolm/commands/train.py
Class Name:
Method Name: train
Project Name: calico/basenji
Commit Name: d6cfffd01a2a3129739c6e76f9d966287b20b7c5
Time: 2019-04-12
Author: drk@calicolabs.com
File Name: bin/basenji_predict.py
Class Name:
Method Name: main
Project Name: hyperspy/hyperspy
Commit Name: 62e13f209e0b7b4c2c757202601c8a5051a05793
Time: 2019-05-03
Author: 14300780+ssomnath@users.noreply.github.com
File Name: hyperspy/io_plugins/usid_hdf5.py
Class Name:
Method Name: file_writer