Skip to content

Commit

Permalink
expand docs about CMF_implicit ref #40
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes committed Mar 19, 2023
1 parent 8d51449 commit cba1ce1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ Description: Collective matrix factorization (a.k.a. multi-view or multi-way fac
License: MIT + file LICENSE
Suggests: Matrix, MatrixExtra, RhpcBLASctl, recosystem (>= 0.5), recommenderlab (>= 0.2-7), MASS, knitr, rmarkdown, kableExtra
VignetteBuilder: knitr
RoxygenNote: 7.2.2
RoxygenNote: 7.2.3
NeedsCompilation: yes
3 changes: 2 additions & 1 deletion R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ NULL
#' and the objective is to minimize squared error over the non-missing entries, in the
#' implicit-feedback variants the matrix `X` is assumed to be binary (all entries are zero
#' or one, with no unknown values), with the positive entries (those which are not
#' missing in the data) having a weight determined by `X`.
#' missing in the data) having a weight determined by `X`, and without including any
#' user/item biases or centering for the 'X' matrix.
#'
#' `CMF` is intended for explicit feedback data (e.g. movie ratings, which contain both
#' likes and dislikes), whereas `CMF_implicit` is intended for implicit feedback data
Expand Down
8 changes: 8 additions & 0 deletions cmfrec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4412,6 +4412,14 @@ class CMF_implicit(_CMF):
:math:`\mathbf{I} \sim \mathbf{B} \mathbf{D}^T`
Compared to the ``CMF`` class, here the interactions matrix 'X' treats missing
entries as zeros and non-missing entries as ones, while the values supplied for
interactions are applied as weights over this binarized matrix 'X' (see references
for more details). Roughly speaking, it is a more efficient version of `CMF` with
hard-coded arguments ``NA_as_zero=True``, ``center=False``, ``user_bias=False``,
``item_bias=False``, ``scale_lam=False``, plus a different initialization of factor
matrices, and 'X' converted to a weighted binary matrix as explained earlier.
Note
----
The default hyperparameters in this software are very different from others.
Expand Down
3 changes: 2 additions & 1 deletion man/fit.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cba1ce1

Please sign in to comment.