Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Lundquist authored and Eric Lundquist committed Jun 8, 2020
1 parent 285baf1 commit 82720e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
lint:
python -m pyflakes rankfm/
python -m flake8 --ignore W3,E3,E5,E74 rankfm/

test:
python -m pytest -r Efp tests/
2 changes: 1 addition & 1 deletion rankfm/numba_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _fit(interactions, sample_weight, user_items, item_idx, regularization, lear

# create a shuffle index to diversify each training epoch
n_interaction = len(interactions)
shuffle_index = np.arange(n_interaction)
shuffle_index = np.arange(n_interaction, dtype=np.int32)

# start the main training epoch loop

Expand Down
4 changes: 0 additions & 4 deletions rankfm/rankfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
from rankfm.numba_methods import _fit, _predict, _recommend
from rankfm.utils import get_data

# import warnings
# warnings.filterwarnings("ignore", category=nb.NumbaPerformanceWarning)


class RankFM():
"""Factorization Machines for Ranking Problems with Implicit Feedback Data"""

Expand Down

0 comments on commit 82720e6

Please sign in to comment.