---
name: "nmf_als.hpp"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/nmf_als.hpp"
---

# nmf\_als.hpp(3)

## NAME

src/mlpack/methods/amf/update\_rules/nmf\_als.hpp -

## SYNOPSIS

### Classes

class **mlpack::amf::NMFALSUpdate**\
 *The alternating least square update rules of matrices W and H.*

### Namespaces

 **mlpack**\
 *Linear algebra utility functions, generally performed on matrices or vectors.*   **mlpack::amf**\

## Detailed Description

**Author:**

Mohan Rajendran

Update rules for the Non-negative Matrix Factorization. This follows a method titled 'Alternating Least Squares' described in the paper 'Positive Matrix Factorization: A Non-negative Factor Model with Optimal Utilization of Error Estimates of Data Values' by P. Paatero and U. Tapper. It uses least squares projection formula to reduce the error value of $ qrt{um\_i um\_j(V-WH)^2} $ by alternately calculating W and H respectively while holding the other matrix constant.

This file is part of MLPACK 1.0.10.

MLPACK is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

MLPACK is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details (LICENSE.txt).

You should have received a copy of the GNU General Public License along with MLPACK. If not, see http://www.gnu.org/licenses/.

Definition in file **nmf\_als.hpp**.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
