1c952e9a584ac173dded00b5b649750d896d9c57,lightfm/lightfm.py,LightFM,fit_partial,#LightFM#Any#Any#Any#Any#Any#Any#Any#,244

Before Change


                                                           item_features)

        if self.loss == "warp-kos" and sample_weight is not None:
            raise NotImplementedError("k-OS loss with sample weights "
                                      "not implemented.")

        interactions = self._to_cython_dtype(interactions)
        user_features = self._to_cython_dtype(user_features)
        item_features = self._to_cython_dtype(item_features)

After Change


        interactions = interactions.tocoo()

        if interactions.dtype != CYTHON_DTYPE:
            interactions.data = interactions.data.astype(CYTHON_DTYPE)

        sample_weight_data = self._process_sample_weight(interactions,
                                                         sample_weight)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: lyst/lightfm
Commit Name: 1c952e9a584ac173dded00b5b649750d896d9c57
Time: 2016-04-15
Author: maciejkula@gmail.com
File Name: lightfm/lightfm.py
Class Name: LightFM
Method Name: fit_partial


Project Name: khaotik/DaNet-Tensorflow
Commit Name: de00082780be884fc90e0113d323bfd63006ffba
Time: 2017-08-07
Author: junkkhaotik@gmail.com
File Name: main.py
Class Name:
Method Name: load_wavfile


Project Name: mil-tokyo/webdnn
Commit Name: 42adcea31de47006d910822145e8faf9d4f8563b
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/tensorflow/ops/gen_array_ops.py
Class Name:
Method Name: slice_handler