Skip to content

[BUG] Model fitting time increases significantly starting from version 1.16.0 #557

@romqn1999

Description

@romqn1999

Description

I am utilizing the BPR model for my recommender system.

I have experimented with the same class BPR across different versions while training the models on identical datasets. The results showed that:

  • Using the library version <=1.15.4, the process rate is approximately 3it/s
  • With the library version >=1.16.0, the process rate is around 100s/it

In which platform does it happen?

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

How do we replicate the issue?

My script runs in a venv with python3.9

from cornac.data import Dataset
from cornac.models import BPR


train_set = Dataset.from_uir(...)

model = BPR(k=128, max_iter=500, learning_rate=0.05, lambda_reg=0.001, verbose=True)

model.fit(train_set)

Expected behavior

The fitting time for the same model in the later versions should not be longer than the fitting time in the earlier versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions