Skip to content

Commit

Permalink
Update src/nnmf.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Dominique <[email protected]>
  • Loading branch information
geoffroyleconte and dpo authored Mar 27, 2023
1 parent 047f0d9 commit 6c3ac8e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/nnmf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ objective
f(W, H) = ½ ‖A - WH‖₂²,
where A has non-negative entries and can be separeted into k clusters, `Av = A[:]`, and selected,
a vector of indexes `selected = k*m+1: k* (m+n)` is used to indicate the compements of (W, H) to apply
the regularizer to (so that the regulariazed only uses H entries).
We have A ∈ Rᵐˣⁿ, W ∈ Rᵐˣᵏ, H ∈ Rᵏˣⁿ.
where A ∈ Rᵐˣⁿ has non-negative entries and can be separated into k clusters, `Av = A[:]`.
The vector of indices `selected = k*m+1: k* (m+n)` is used to indicate the components of W ∈ Rᵐˣᵏ and H ∈ Rᵏˣⁿ to apply the regularizer to (so that the regularizer only applies to entries of H).
## Arguments
* `m :: Int`: the number of rows of A
Expand Down

0 comments on commit 6c3ac8e

Please sign in to comment.