Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug new model #649

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions 0.11.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Collecting torch
Downloading torch-2.5.1-cp312-cp312-win_amd64.whl.metadata (28 kB)
Collecting torchvision
Downloading torchvision-0.20.1-cp312-cp312-win_amd64.whl.metadata (6.2 kB)
Collecting filelock (from torch)
Downloading filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
Requirement already satisfied: typing-extensions>=4.8.0 in c:\python312\lib\site-packages\setuptools\_vendor (from torch) (4.12.2)
Collecting networkx (from torch)
Downloading networkx-3.4.2-py3-none-any.whl.metadata (6.3 kB)
Collecting jinja2 (from torch)
Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting fsspec (from torch)
Downloading fsspec-2024.10.0-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: setuptools in c:\python312\lib\site-packages (from torch) (75.3.0)
Collecting sympy==1.13.1 (from torch)
Downloading sympy-1.13.1-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\python312\lib\site-packages (from sympy==1.13.1->torch) (1.3.0)
Requirement already satisfied: numpy in c:\python312\lib\site-packages (from torchvision) (1.26.4)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\python312\lib\site-packages (from torchvision) (10.2.0)
Collecting MarkupSafe>=2.0 (from jinja2->torch)
Downloading MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl.metadata (4.1 kB)
Downloading torch-2.5.1-cp312-cp312-win_amd64.whl (203.0 MB)
-------------------------------------- 203.0/203.0 MB 652.6 kB/s eta 0:00:00
Downloading sympy-1.13.1-py3-none-any.whl (6.2 MB)
---------------------------------------- 6.2/6.2 MB 781.5 kB/s eta 0:00:00
Downloading torchvision-0.20.1-cp312-cp312-win_amd64.whl (1.6 MB)
---------------------------------------- 1.6/1.6 MB 937.3 kB/s eta 0:00:00
Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
Downloading fsspec-2024.10.0-py3-none-any.whl (179 kB)
---------------------------------------- 179.6/179.6 kB 2.7 MB/s eta 0:00:00
Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
---------------------------------------- 133.3/133.3 kB 2.0 MB/s eta 0:00:00
Downloading networkx-3.4.2-py3-none-any.whl (1.7 MB)
---------------------------------------- 1.7/1.7 MB 1.8 MB/s eta 0:00:00
Downloading MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl (15 kB)
Installing collected packages: sympy, networkx, MarkupSafe, fsspec, filelock, jinja2, torch, torchvision
23 changes: 23 additions & 0 deletions 1.10.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Collecting torch
Using cached torch-2.5.1-cp312-cp312-win_amd64.whl.metadata (28 kB)
Collecting filelock (from torch)
Using cached filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
Requirement already satisfied: typing-extensions>=4.8.0 in c:\python312\lib\site-packages\setuptools\_vendor (from torch) (4.12.2)
Collecting networkx (from torch)
Using cached networkx-3.4.2-py3-none-any.whl.metadata (6.3 kB)
Collecting jinja2 (from torch)
Using cached jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting fsspec (from torch)
Using cached fsspec-2024.10.0-py3-none-any.whl.metadata (11 kB)
Requirement already satisfied: setuptools in c:\python312\lib\site-packages (from torch) (75.3.0)
Requirement already satisfied: sympy==1.13.1 in c:\python312\lib\site-packages (from torch) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\python312\lib\site-packages (from sympy==1.13.1->torch) (1.3.0)
Collecting MarkupSafe>=2.0 (from jinja2->torch)
Using cached MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl.metadata (4.1 kB)
Using cached torch-2.5.1-cp312-cp312-win_amd64.whl (203.0 MB)
Using cached filelock-3.16.1-py3-none-any.whl (16 kB)
Using cached fsspec-2024.10.0-py3-none-any.whl (179 kB)
Using cached jinja2-3.1.4-py3-none-any.whl (133 kB)
Using cached networkx-3.4.2-py3-none-any.whl (1.7 MB)
Using cached MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl (15 kB)
Installing collected packages: networkx, MarkupSafe, fsspec, filelock, jinja2, torch
2 changes: 1 addition & 1 deletion cornac/datasets/movielens.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def load_feedback(fmt="UIR", variant="100K", reader=None):
data: array-like
Data in the form of a list of tuples depending on the given data format.
"""

fmt = validate_format(fmt, VALID_DATA_FORMATS)

ml = ML_DATASETS.get(variant.upper(), None)
Expand Down
2 changes: 1 addition & 1 deletion cornac/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def run(self):
if self.val_result is not None:
output += "\nVALIDATION:\n...\n{}".format(self.val_result)
output += "\nTEST:\n...\n{}".format(self.result)

# print('helllooooooooooooow')
print(output)

timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S-%f")
Expand Down
2 changes: 1 addition & 1 deletion cornac/metrics/rating.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def compute(self, gt_ratings, pd_ratings, weights=None, **kwargs):
-------
mse: A scalar.
Mean Squared Error.

"""
mse = np.average((gt_ratings - pd_ratings) ** 2, axis=0, weights=weights)
return mse
Expand Down
1 change: 1 addition & 0 deletions cornac/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,4 @@
from .vbpr import VBPR
from .vmf import VMF
from .wmf import WMF
from .globallocalkernel import GlobalLocalKernel
1 change: 1 addition & 0 deletions cornac/models/globallocalkernel/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .recom_globallocalkernel import GlobalLocalKernel
Loading