ea80e4bf2033628822e2b0f92e2e373d1b3c147b,fancyimpute/auto_encoder.py,AutoEncoder,complete,#AutoEncoder#Any#Any#,163

Before Change


        assert self.network is not None, \
            "Network should have been constructed but was found to be None"
        if not self.n_training_epochs:
            n_updates_per_epoch = int(np.ceil(n_samples / self.batch_size))
            // heuristic of ~1M updates for each model
            epochs = min(2000, int(np.ceil(10 ** 5 / n_updates_per_epoch)))
        else:
            epochs = self.n_training_epochs
        X_with_observed_mask = np.hstack([X, missing_mask])
        self.network.fit(

After Change


            "Network should have been constructed but was found to be None"
        if not self.n_training_epochs:
            actual_batch_size = min(self.batch_size, n_samples)
            n_updates_per_epoch = int(np.ceil(n_samples / actual_batch_size))
            // heuristic of ~1M updates for each model
            epochs = int(np.ceil(0.5 * 10 ** 6 / n_updates_per_epoch))
            print("Epochs: %d" % epochs)
        else:
            epochs = self.n_training_epochs
        X_with_observed_mask = np.hstack([X, missing_mask])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 8

Instances


Project Name: iskandr/fancyimpute
Commit Name: ea80e4bf2033628822e2b0f92e2e373d1b3c147b
Time: 2015-12-31
Author: alex.rubinsteyn@gmail.com
File Name: fancyimpute/auto_encoder.py
Class Name: AutoEncoder
Method Name: complete


Project Name: jonathf/chaospy
Commit Name: 3c4d31ff178f629ebdab792a35f5a9c03d0ccf86
Time: 2017-10-29
Author: jonathf@gmail.com
File Name: src/chaospy/distributions/sampler/generator.py
Class Name:
Method Name: generate_samples


Project Name: tgsmith61591/pmdarima
Commit Name: 0710d3a704994e5862a3b037bd91213bae1d9f10
Time: 2018-12-17
Author: tgsmith61591@gmail.com
File Name: pmdarima/arima/stationarity.py
Class Name: KPSSTest
Method Name: is_stationary


Project Name: rlworkgroup/garage
Commit Name: d78606358441d2ece534d2a3c455a55bf6a58969
Time: 2020-06-09
Author: 31981600+yeukfu@users.noreply.github.com
File Name: tests/fixtures/models/simple_cnn_model.py
Class Name: SimpleCNNModel
Method Name: _build


Project Name: arviz-devs/arviz
Commit Name: 86776e7837cd4c3d7a09416ca1c16dd7681043bc
Time: 2018-05-24
Author: colcarroll@gmail.com
File Name: doc/sphinxext/gallery_generator.py
Class Name:
Method Name: create_thumbnail