Skip to content

Commit

Permalink
Merge pull request #32 from danieljl/fix-lastfm-example
Browse files Browse the repository at this point in the history
Fix lastfm example: Don't ignore the number of iterations
  • Loading branch information
benfred authored May 29, 2017
2 parents e6ff9fc + 7b81f82 commit c2d3aaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/lastfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ def calculate_similar_artists(input_filename, output_filename,
if exact:
model = AlternatingLeastSquares(factors=factors, regularization=regularization,
use_native=use_native, use_cg=cg,
dtype=dtype)
dtype=dtype, iterations=iterations)
else:
model = AnnoyAlternatingLeastSquares(factors=factors, regularization=regularization,
use_native=use_native, use_cg=cg,
dtype=dtype)
dtype=dtype, iterations=iterations)

# lets weight these models by bm25weight.
logging.debug("weighting matrix by bm25_weight")
Expand Down

0 comments on commit c2d3aaf

Please sign in to comment.