48f991768b7274655b7cbc0e6e6124dac5873cdd,mushroom_rl/approximators/parametric/cmac.py,CMAC,__init__,#CMAC#Any#Any#Any#,13

Before Change



        if weights is not None:
            assert weights.size == output_dim * self._phi.size
            self._w = weights.reshape((output_dim, -1))
        else:
            self._w = np.zeros((output_dim, self._phi.size))

        self._add_save_attr(_w="numpy", _phi="pickle")

After Change


        self._phi = Features(tilings=tiles)
        self._n = len(tiles)

        super().__init__(weights=weights, input_shape=(self._phi.size,), output_shape=output_shape)

        self._add_save_attr(_phi="pickle")

    def fit(self, x, y, **fit_params):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: AIRLab-POLIMI/mushroom
Commit Name: 48f991768b7274655b7cbc0e6e6124dac5873cdd
Time: 2020-06-08
Author: boris.ilpossente@hotmail.it
File Name: mushroom_rl/approximators/parametric/cmac.py
Class Name: CMAC
Method Name: __init__


Project Name: kundajelab/deeplift
Commit Name: f2065ac6b8dcce4ac8dc1045afc0ebc3e5b6338f
Time: 2016-05-26
Author: avanti.shrikumar@gmail.com
File Name: deeplift/blobs.py
Class Name: BatchNormalization
Method Name: __init__


Project Name: UFAL-DSG/tgen
Commit Name: 695eaf421c7ac5d3f52136358b8c0c9794582a07
Time: 2015-04-09
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/rank_mlp.py
Class Name: FeedForwardLayer
Method Name: __init__