49d5bf135a0e4ff88b04f7cde696227055c335ea,bambi/backends.py,PyMC3BackEnd,__init__,#PyMC3BackEnd#,27
Before Change
self.mu = 0.
self.dists = {}
self.model = pm.Model()
self.shared_params = {}
def _build_dist(self, label, dist, **kwargs):
""" Build and return a PyMC3 Distribution. """
if isinstance(dist, string_types):
After Change
class PyMC3BackEnd(BackEnd):
def __init__(self):
self.reset()
def reset(self):
self.model = pm.Model()
self.mu = 0.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: bambinos/bambi
Commit Name: 49d5bf135a0e4ff88b04f7cde696227055c335ea
Time: 2016-07-25
Author: tyarkoni@gmail.com
File Name: bambi/backends.py
Class Name: PyMC3BackEnd
Method Name: __init__
Project Name: victoresque/pytorch-template
Commit Name: 102123eef25500a39160412eca7e8cb9f53104a6
Time: 2019-09-10
Author: SunQ0313@gmail.com
File Name: trainer/trainer.py
Class Name: Trainer
Method Name: _train_epoch
Project Name: anttttti/Wordbatch
Commit Name: bebc4f82590590fe09ec330cfc020cf20641719b
Time: 2018-03-23
Author: antti.puurula@yahoo.com
File Name: wordbatch/wordbatch.py
Class Name: WordBatch
Method Name: reset