Skip to content

Commit 6070cf6

Browse files
authored
Merge pull request #103 from tisnik/fixed-issue-97
Fixed issue #97
2 parents 3e5b2ca + 4dec3f8 commit 6070cf6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

training/train.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env python
22
# coding: utf-8
3+
4+
"""Training script."""
5+
36
import os
47
import numpy as np
58
import pandas as pd
@@ -227,6 +230,7 @@ def precision_recall_at_m(m, test_df, recommender, user_item_df):
227230

228231

229232
def run_recommender(train_df, latent_factor):
233+
"""Start the recommender."""
230234
recommender = hpfrec.HPF(k=latent_factor, random_seed=123,
231235
allow_inconsistent_math=True, ncores=24)
232236
recommender.step_size = None

0 commit comments

Comments
 (0)