b0d50f3cccf54888ed59292f3213bea9b2f15dcf,spotlight/factorization/implicit.py,ImplicitFactorizationModel,fit,#ImplicitFactorizationModel#,110

Before Change



        if self._optimizer is None:
            self._optimizer = optim.Adam(
                self._net.parameters(),
                weight_decay=self._l2,
                lr=self._learning_rate
            )
        else:
            self._optimizer = self._optimizer_func(self._net.parameters())

        if self._loss == "pointwise":
            loss_fnc = pointwise_loss
        elif self._loss == "bpr":

After Change


        user_ids = interactions.user_ids.astype(np.int64)
        item_ids = interactions.item_ids.astype(np.int64)

        if not self._initialized:
            self._initialize(interactions)

        self._check_input(user_ids, item_ids)

        for epoch_num in range(self._n_iter):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: maciejkula/spotlight
Commit Name: b0d50f3cccf54888ed59292f3213bea9b2f15dcf
Time: 2017-07-31
Author: ethanrosenthal@gmail.com
File Name: spotlight/factorization/implicit.py
Class Name: ImplicitFactorizationModel
Method Name: fit


Project Name: maciejkula/spotlight
Commit Name: b0d50f3cccf54888ed59292f3213bea9b2f15dcf
Time: 2017-07-31
Author: ethanrosenthal@gmail.com
File Name: spotlight/factorization/explicit.py
Class Name: ExplicitFactorizationModel
Method Name: fit


Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: 4888cb7a5299f7eed9214ddc70871dc05ea0f4d2
Time: 2019-03-20
Author: zdzheng12@gmail.com
File Name: model/ft_ResNet50/train.py
Class Name:
Method Name:


Project Name: maciejkula/spotlight
Commit Name: b0d50f3cccf54888ed59292f3213bea9b2f15dcf
Time: 2017-07-31
Author: ethanrosenthal@gmail.com
File Name: spotlight/factorization/implicit.py
Class Name: ImplicitFactorizationModel
Method Name: fit