8c0e9b7a20e0bf25216de5121a475c77b18c02ae,pixyz/models/model.py,Model,__str__,#Model#,27
Before Change
self.optimizer = optimizer(params, **optimizer_params)
def __str__(self):
prob_text = [prob.prob_text for prob in self.distributions._modules.values()]
text = "Distributions (for training): \n {} \n".format(", ".join(prob_text))
text += "Loss function: \n {} \n".format(str(self.loss_cls))
optimizer_text = re.sub("^", " " * 2, str(self.optimizer), flags=re.MULTILINE)
After Change
func_text.append(prob.__str__())
text = "Distributions (for training): \n {} \n".format(", ".join(prob_text))
if len(func_text) > 0:
text += "Deterministic functions (for training): \n {} \n".format(", ".join(func_text))
text += "Loss function: \n {} \n".format(str(self.loss_cls))
optimizer_text = re.sub("^", " " * 2, str(self.optimizer), flags=re.MULTILINE)
text += "Optimizer: \n{}".format(optimizer_text)
return text
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: masa-su/pixyz
Commit Name: 8c0e9b7a20e0bf25216de5121a475c77b18c02ae
Time: 2019-01-22
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: pixyz/models/model.py
Class Name: Model
Method Name: __str__
Project Name: theislab/scanpy
Commit Name: 4b1f799c8403626ff56c7bf23fb1fbdb79dcb015
Time: 2019-01-14
Author: fidel.ramirez@gmail.com
File Name: scanpy/plotting/_tools/__init__.py
Class Name:
Method Name: _rank_genes_groups_plot
Project Name: gboeing/osmnx
Commit Name: dfe8d88a87a4b98f831f69012e22f8b7611f7d25
Time: 2020-05-13
Author: boeing@usc.edu
File Name: osmnx/simplify.py
Class Name:
Method Name: consolidate_intersections_rebuild_graph