From 0c4f86b1d4c8154fa7dda3aef352d245202a549f Mon Sep 17 00:00:00 2001 From: joaonrb Date: Wed, 5 Feb 2014 11:36:32 +0100 Subject: [PATCH] [BUGFIX] model parameters must be passed with ** --- AUTHORS | 2 +- src/testfm/examples/tuning_example.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 4fdc81b..40600f5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,5 +1,5 @@ test.fm was originally created 2014 at Telefonica Research as a -convenient wayt to test okapi.grafos.ml models. +convenient way to test okapi.grafos.ml models. We used it for building Firefox OS app discovery engine project. The PRIMARY AUTHORS are (and/or have been): diff --git a/src/testfm/examples/tuning_example.py b/src/testfm/examples/tuning_example.py index a2aa3fd..d4a60db 100644 --- a/src/testfm/examples/tuning_example.py +++ b/src/testfm/examples/tuning_example.py @@ -22,7 +22,7 @@ print tf_params tf = TensorCoFi() -tf.setParams(tf_params) +tf.setParams(**tf_params) tf.fit(training) print tf.getName().ljust(50), print testfm.evaluate_model(tf, testing, all_items=training.item.unique())