b56a4b355dfc302fa449d223e065af3a7acac986,snorkel/learning/pytorch/noise_aware_model.py,TorchNoiseAwareModel,save,#TorchNoiseAwareModel#Any#Any#Any#Any#,225
Before Change
dump(self.model_kwargs, f)
// Save graph and report if verbose
saver.save(
self.session,
os.path.join(model_dir, model_name),
global_step=global_step
)
if verbose:
print("[{0}] Model saved as <{1}>".format(self.name, model_name))
def load(self, model_name=None, save_dir="checkpoints", verbose=True):
After Change
warnings.warn("Unstable! Please extensively test this part of the code when time permits")
// implement Path here
print(model_dir)
torch.save(
self.state_dict(),
"{}/model.params".format(model_dir)
)
if verbose:
print("[{0}] Model saved as <{1}>".format(self.name, model_name))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: snorkel-team/snorkel
Commit Name: b56a4b355dfc302fa449d223e065af3a7acac986
Time: 2018-05-03
Author: dnicholson329@gmail.com
File Name: snorkel/learning/pytorch/noise_aware_model.py
Class Name: TorchNoiseAwareModel
Method Name: save
Project Name: horovod/horovod
Commit Name: 85b09a95187fbaaf00ad513320a8df722be1b204
Time: 2018-07-13
Author: tgaddair@gmail.com
File Name: examples/pytorch_imagenet_resnet50.py
Class Name:
Method Name: save_checkpoint
Project Name: HazyResearch/fonduer
Commit Name: c12f538d2d496f5e8f932abc1ee72a586b9ea855
Time: 2018-08-14
Author: senwu@cs.stanford.edu
File Name: fonduer/learning/disc_learning.py
Class Name: TFNoiseAwareModel
Method Name: save