Skip to content

Commit

Permalink
Reset norms when refitting [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 20, 2021
1 parent ae7a457 commit de2f05e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/disco/recommender.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def fit(train_set, validation_set: nil)
@user_factors = model.p_factors(format: :numo)
@item_factors = model.q_factors(format: :numo)

@user_norms = nil
@item_norms = nil

@user_recs_index = nil
@similar_users_index = nil
@similar_items_index = nil
Expand Down

0 comments on commit de2f05e

Please sign in to comment.