7ca5b1abe7bee5b6e9b67bc98b1b831152186f56,batchflow/sampler.py,ScipySampler,__init__,#ScipySampler#Any#Any#,433
Before Change
super().__init__(name, seed, **kwargs)
name = _get_method_by_alias(name, "ss")
self.name = name
self.state = np.random.RandomState(seed=seed)
self.distr = getattr(ss, self.name)(**kwargs)
def sample(self, size):
Sampling method of ``ScipySampler``.
After Change
self.right = right
// calculate probs of samplers in mixture
_ws = np.array([self.left.weight, self.right.weight])
self.weight = np.sum(_ws)
self._normed = _ws / np.sum(_ws)
def sample(self, size):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: analysiscenter/batchflow
Commit Name: 7ca5b1abe7bee5b6e9b67bc98b1b831152186f56
Time: 2020-11-09
Author: akoriagin@nes.ru
File Name: batchflow/sampler.py
Class Name: ScipySampler
Method Name: __init__
Project Name: chrischoy/3D-R2N2
Commit Name: 7a46a379b5ab249ad843ccd11826478069a51220
Time: 2016-08-11
Author: chrischoy208@gmail.com
File Name: lib/layers.py
Class Name:
Method Name:
Project Name: openai/baselines
Commit Name: b875fb7b5e4feb85b9f1f1bf4e78f64c75595664
Time: 2019-02-27
Author: peterzhokhoff@gmail.com
File Name: baselines/common/tests/envs/mnist_env.py
Class Name: MnistEnv
Method Name: __init__