85317dad0531c04e41c94d30e0667032f7d17aff,skopt/samples/sobol.py,Sobol,generate,#Sobol#Any#Any#Any#,190

Before Change


        for j in range(n_samples):
            r[j, 0:n_dim], seed = self._sobol(n_dim, seed)
        if self.randomize:
            return space.inverse_transform(_random_shift(r, random_state))
        return space.inverse_transform(r)

    def _sobol(self, dim_num, seed):
        Generates a new quasirandom Sobol vector with each call.

After Change


        for j in range(n_samples):
            r[j, 0:n_dim], seed = self._sobol(n_dim, seed)
        if self.randomize:
            r = space.inverse_transform(_random_shift(r, random_state))
        r = space.inverse_transform(r)
        space.set_transformer(transformer)
        return r

    def _sobol(self, dim_num, seed):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 85317dad0531c04e41c94d30e0667032f7d17aff
Time: 2020-02-18
Author: holgernahrstaedt@gmx.de
File Name: skopt/samples/sobol.py
Class Name: Sobol
Method Name: generate


Project Name: nilearn/nilearn
Commit Name: 02806a3dbb8250b6455ec63ac78348a08ba376e8
Time: 2012-10-02
Author: alexandre.abraham@cea.fr
File Name: plot_nifti_simple.py
Class Name:
Method Name:


Project Name: IndicoDataSolutions/finetune
Commit Name: cb89711536f566f3ed7d121520fe32ad41ca83bc
Time: 2019-01-11
Author: benlt@hotmail.co.uk
File Name: finetune/association.py
Class Name: Association
Method Name: predict


Project Name: IndicoDataSolutions/finetune
Commit Name: c753a3bf6c768eb45c0b4bad556161b7389fde65
Time: 2020-01-10
Author: benlt@hotmail.co.uk
File Name: finetune/target_models/sequence_labeling.py
Class Name: SequencePipeline
Method Name: _compute_class_counts


Project Name: scikit-learn-contrib/lightning
Commit Name: a89e78e6c1052f8432eb1488df18362fabd9a0bd
Time: 2012-05-07
Author: mathieu@mblondel.org
File Name: lightning/sgd.py
Class Name: SGDClassifier
Method Name: predict