8707241e2548a2b8a45e9757b26c9890581cdf06,elfi/bo/acquisition.py,Acquisition,acquire,#Acquisition#Any#Any#Any#,60

Before Change


           self.n_pending_locations = pending_locations.shape[0]
        self.n_values = n_values
        self.n_acquired += n_values
        return np.zeros((n_values, self.model.input_dim))

    @property
    def samples_left(self):
        Number of samples left to sample or sys.maxsize if no limit.

After Change



        obj = lambda x: self.evaluate(x, t)
        minloc, val = stochastic_optimization(obj, self.model.bounds, self.max_opt_iter)
        return np.tile(minloc, (n_values, 1))


class LCBSC(Acquisition):
    Lower Confidence Bound Selection Criterion. This is the same form as in
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: elfi-dev/elfi
Commit Name: 8707241e2548a2b8a45e9757b26c9890581cdf06
Time: 2017-03-24
Author: jarno.lintusaari@aalto.fi
File Name: elfi/bo/acquisition.py
Class Name: Acquisition
Method Name: acquire


Project Name: keras-team/keras
Commit Name: a78ad01bb44137f206dc8167626ea8cf73c7958b
Time: 2016-07-06
Author: yosinski@users.noreply.github.com
File Name: keras/layers/recurrent.py
Class Name: Recurrent
Method Name: get_initial_states


Project Name: pymc-devs/pymc3
Commit Name: 39cb01dfe48cf64a02de3cdb41bf0e2d647b20d9
Time: 2017-09-02
Author: maxim.v.kochurov@gmail.com
File Name: pymc3/variational/approximations.py
Class Name: MeanFieldGroup
Method Name: create_shared_params