Skip to content

Commit

Permalink
fix matrix facto imports
Browse files Browse the repository at this point in the history
Former-commit-id: 036ffd9
  • Loading branch information
MaxHalford committed Dec 1, 2021
1 parent a6d44ac commit 8997df5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
}
],
"source": [
"from river import meta\n",
"from river import preprocessing\n",
"from river import optim\n",
"from river import reco\n",
"\n",
Expand All @@ -276,7 +276,7 @@
" 'initializer': optim.initializers.Zeros()\n",
"}\n",
"\n",
"model = meta.PredClipper(\n",
"model = preprocessing.PredClipper(\n",
" regressor=reco.Baseline(**baseline_params),\n",
" y_min=1,\n",
" y_max=5\n",
Expand Down Expand Up @@ -344,7 +344,7 @@
" 'initializer': optim.initializers.Normal(mu=0., sigma=0.1, seed=73)\n",
"}\n",
"\n",
"model = meta.PredClipper(\n",
"model = preprocessing.PredClipper(\n",
" regressor=reco.FunkMF(**funk_mf_params),\n",
" y_min=1,\n",
" y_max=5\n",
Expand Down Expand Up @@ -415,7 +415,7 @@
" 'l2_latent': 0.\n",
"}\n",
"\n",
"model = meta.PredClipper(\n",
"model = preprocessing.PredClipper(\n",
" regressor=reco.BiasedMF(**biased_mf_params),\n",
" y_min=1,\n",
" y_max=5\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"source": [
"from river import compose\n",
"from river import facto\n",
"from river import meta\n",
"from river import preprocessing\n",
"from river import optim\n",
"from river import stats\n",
"\n",
Expand All @@ -154,7 +154,7 @@
"regressor = compose.Select('user', 'item')\n",
"regressor |= facto.FMRegressor(**fm_params)\n",
"\n",
"model = meta.PredClipper(\n",
"model = preprocessing.PredClipper(\n",
" regressor=regressor,\n",
" y_min=1,\n",
" y_max=5\n",
Expand Down Expand Up @@ -341,7 +341,7 @@
")\n",
"regressor |= facto.FMRegressor(**fm_params)\n",
"\n",
"model = meta.PredClipper(\n",
"model = preprocessing.PredClipper(\n",
" regressor=regressor,\n",
" y_min=1,\n",
" y_max=5\n",
Expand Down Expand Up @@ -425,7 +425,7 @@
")\n",
"regressor |= facto.HOFMRegressor(**hofm_params)\n",
"\n",
"model = meta.PredClipper(\n",
"model = preprocessing.PredClipper(\n",
" regressor=regressor,\n",
" y_min=1,\n",
" y_max=5\n",
Expand Down Expand Up @@ -509,7 +509,7 @@
")\n",
"regressor |= facto.FFMRegressor(**ffm_params)\n",
"\n",
"model = meta.PredClipper(\n",
"model = preprocessing.PredClipper(\n",
" regressor=regressor,\n",
" y_min=1,\n",
" y_max=5\n",
Expand Down Expand Up @@ -589,7 +589,7 @@
")\n",
"regressor |= facto.FwFMRegressor(**fwfm_params)\n",
"\n",
"model = meta.PredClipper(\n",
"model = preprocessing.PredClipper(\n",
" regressor=regressor,\n",
" y_min=1,\n",
" y_max=5\n",
Expand Down

0 comments on commit 8997df5

Please sign in to comment.