Commit e135e81b authored by Markus Shepherd's avatar Markus Shepherd

upgraded ludj-recommender, resolving #209

parent 943fbb27
......@@ -274,7 +274,7 @@
"ludoj-recommender": {
"editable": true,
"git": "https://gitlab.com/mshepherd/ludoj-recommender.git",
"ref": "66ead92a583a6c6b150e664dab0c3e780d482d94"
"ref": "b1ecd42a85429a3149bb5a6af30845bf486c3b7d"
},
"markdown": {
"hashes": [
......@@ -316,12 +316,16 @@
"sha256:5ee873d08fbd8b300a6adcf533cbae5a4331214fffe13c2cd2f9b4f4f7d894f3",
"sha256:8474ca7cdb688bc57d11641ecd03e752c8bd093a079c9b409ea94c311bdbb4e1",
"sha256:870610f310a5338b3ca3d391a6abdf4fe3f4e5130d836fae991a95c233ab7b4e",
"sha256:878dc5da34a9a2390e213290bf15b490fffdab5405afaeb138cf836515fad026",
"sha256:8c62cd40cd3b080862af68c3e233dafc6aac2e9263d0b328dcc8d82a31f5ac56",
"sha256:9708df9f05fa0478ab09ce08ab6fef673bd8e15de6d638ca2174202ac7d5a579",
"sha256:9f63e93377fa40bada25ae02d4e79a206c223c02a794ff9c780ed3a4a403d197",
"sha256:a7b42d9055da747c1b4cab9747fe5c98dcdbff30884dd003449adfa30d23ba64",
"sha256:ae3e1c42feda71add88ceee4461ed6804ddb90c352ca09c3958db90689be457b",
"sha256:c026991084928aebffb0590ccce611a71d08cd8ba8fea690c6ec6b3552b7d9d9",
"sha256:c5773cae81259b5b834ced7537ee2d625fac29795de5d24e9b751418f53abc91",
"sha256:c9b5069a9e4e5daf297803697a5819c193e42afa3cfd66bded6f28134adf7330",
"sha256:ce7669937744a55300336a665e9a3b758601c810a2e9ed0c5d1b619072bff1ea",
"sha256:d2c48b0f10b09f84f0b1494f408b46d8be45db9b868d9bf312f1c0251de92c45",
"sha256:d2c8c0327ef365540bf36f1c860af1c7b2f86866738f36264be152b3a54ef888",
"sha256:e3f19b3cb9fa6a0479a56e0da13e59c8e06fe8392cce5eaa85c7f159ae4570c0",
......@@ -632,10 +636,10 @@
},
"awscli": {
"hashes": [
"sha256:45146eb6fcd6f099e34db4dab65cecbe3c24852daaca6caa680b8d1fbea2c200",
"sha256:fc3f1b882742cf36de03eb9c7fc5c06a4a126b827f894ccf19165bd5d6ff2e66"
"sha256:87258e4719978f51dae8c62e15cd0486a778ddcb530645f3bc035239b800f184",
"sha256:fbd9dc00ecd7060f36e5768122c9293672b82748fa224cb13e22e6322532d8db"
],
"version": "==1.16.132"
"version": "==1.16.134"
},
"boto": {
"hashes": [
......@@ -646,17 +650,17 @@
},
"boto3": {
"hashes": [
"sha256:9e5ad47cb55768e23dbe3c56f83c4a31a937d5f9f130d8291d9e219e718dedb7",
"sha256:fff5ec5c97ed26fec46ebe01a8454630150f2f25b0669f23aba365fba33438b1"
"sha256:3927beac97e5467f869d63d60920b83c2d39964f69fbf944bc1db724116bfe1a",
"sha256:be88cae6f16bb9fe3b850b6c8259b297f60b46855175cadae57594c9a403c582"
],
"version": "==1.9.122"
"version": "==1.9.124"
},
"botocore": {
"hashes": [
"sha256:aeed0874594c143867ec10f2be9b2b9f523f2e0768eaf3f627924d36c7b2e7c1",
"sha256:c33273422c24a072562caeccac2ce1e0ba96dafb2b9bd9e61dbe9eb329ceb1cf"
"sha256:bb756a8da2c6e3ccf42dccb0ac71c1df2e07844db339183da06f4e0285b251d0",
"sha256:fc7560a2676df2f0bab4ef0638277b86e5a00944c2ce1c3bb124b3066e6d3d2a"
],
"version": "==1.12.122"
"version": "==1.12.124"
},
"btrees": {
"hashes": [
......@@ -1107,7 +1111,7 @@
"ludoj-scraper": {
"editable": true,
"git": "https://gitlab.com/mshepherd/ludoj-scraper.git",
"ref": "2ef8a6dc0f1aa0d4602b41bf4acb16209638da0a"
"ref": "5125654032be9ba3d3b83f4c574591e292bef1a0"
},
"lxml": {
"hashes": [
......
......@@ -366,11 +366,11 @@ def train(
users=None,
):
''' train recommender model '''
from ludoj_recommender import GamesRecommender
from ludoj_recommender import BGGRecommender
LOGGER.info(
'Training recommender model with games <%s> and ratings <%s>...', games_file, ratings_file)
recommender = GamesRecommender.train_from_files(
recommender = BGGRecommender.train_from_files(
games_file=games_file,
ratings_file=ratings_file,
similarity_model=True,
......
......@@ -146,8 +146,8 @@ def load_recommender(path):
if not path:
return None
try:
from ludoj_recommender import GamesRecommender
return GamesRecommender.load(path=path)
from ludoj_recommender import BGGRecommender
return BGGRecommender.load(path=path)
except Exception:
LOGGER.exception('unable to load recommender model from <%s>', path)
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment