95ee3130ab91b46eee8e931fd73d20a9cc81f4f4,pyglmnet/pyglmnet.py,,simulate_glm,#Any#Any#Any#Any#Any#Any#Any#,325

Before Change


        return _lmb(distr, beta0, beta, X, eta)

    if random_state is not None:
        np.random.RandomState(random_state)
    if distr == "softplus" or distr == "poisson":
        y = np.random.poisson(_lmb(distr, beta0, beta, X, eta))
    if distr == "gaussian":
        y = np.random.normal(_lmb(distr, beta0, beta, X, eta))

After Change


    if not sample:
        return _lmb(distr, beta0, beta, X, eta)

    _random_state = np.random.RandomState(random_state)
    if distr == "softplus" or distr == "poisson":
        y = _random_state.poisson(_lmb(distr, beta0, beta, X, eta))
    if distr == "gaussian":
        y = _random_state.normal(_lmb(distr, beta0, beta, X, eta))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: glm-tools/pyglmnet
Commit Name: 95ee3130ab91b46eee8e931fd73d20a9cc81f4f4
Time: 2018-09-15
Author: giovanni.det@gmail.com
File Name: pyglmnet/pyglmnet.py
Class Name:
Method Name: simulate_glm


Project Name: GPflow/GPflow
Commit Name: 22e14d736fd9bf73a58c5f82da08ed785977a65e
Time: 2020-02-14
Author: st--@users.noreply.github.com
File Name: doc/source/notebooks/basics/classification.pct.py
Class Name:
Method Name:


Project Name: automl/SMAC3
Commit Name: f6ec707c04d5ee4a040e03cc97eca096fb09f818
Time: 2016-09-30
Author: marius.rks@googlemail.com
File Name: examples/leadingones.py
Class Name:
Method Name:


Project Name: nilearn/nilearn
Commit Name: 97c25525813ec3ce38b5ae5be4e5d8b70b925cae
Time: 2014-02-11
Author: elvis.dohmatob@inria.fr
File Name: nilearn/tests/test_masking.py
Class Name:
Method Name: test_issue_162_fix


Project Name: hyperspy/hyperspy
Commit Name: 0a5f39a7f6b08b10ecdd79e74ab493f14b430d0e
Time: 2020-02-05
Author: paul.quinn@diamond.ac.uk
File Name: hyperspy/tests/drawing/test_plot_mva.py
Class Name: TestPlotClusterAnalysis
Method Name: setup_method


Project Name: pfnet-research/chainer-chemistry
Commit Name: 4318564685430bf9a0702b0451e16802ad4acdaf
Time: 2018-06-27
Author: mottodora@gmail.com
File Name: chainer_chemistry/dataset/splitters/stratified_splitter.py
Class Name: StratifiedSplitter
Method Name: _split