GPUMLib  0.2.2
GPU Machine Learning Library
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members

Base class for all Non-Negative Matrix Factorization classes. More...

#include <BaseNMF.h>

Inheritance diagram for NMF:
NMF_AdditiveDivergence NMF_AdditiveEuclidian NMF_MultiplicativeDivergence NMF_MultiplicativeEuclidianDistance

Public Member Functions

HostMatrix< cudafloatGetW ()
 
HostMatrix< cudafloatGetH ()
 
HostMatrix< cudafloatGetWH ()
 
virtual void DoIteration (bool updateW=true)=0
 
cudafloat QualityImprovement () const
 Gets the quality improvement caused by the last iteration.
 

Protected Member Functions

void DetermineQualityImprovement (bool calculateWH)
 
 NMF (HostMatrix< cudafloat > &v, int r)
 
 NMF (HostMatrix< cudafloat > &v, HostMatrix< cudafloat > &w, HostMatrix< cudafloat > &h)
 

Protected Attributes

DeviceMatrix< cudafloatV
 
DeviceMatrix< cudafloatW
 
DeviceMatrix< cudafloatH
 
DeviceMatrix< cudafloatWH
 

Detailed Description

Base class for all Non-Negative Matrix Factorization classes.

Definition at line 40 of file BaseNMF.h.

Member Function Documentation

virtual void DoIteration ( bool  updateW = true)
pure virtual

Do an algorithm iteration. Adjusts W and H matrices.

Parameters
updateWIndicates if the matrix W is updated (by default yes).

Implemented in NMF_MultiplicativeEuclidianDistance, NMF_AdditiveEuclidian, NMF_MultiplicativeDivergence, and NMF_AdditiveDivergence.

HostMatrix<cudafloat> GetH ( )
inline

Gets the H matrix

Returns
the H matrix

Definition at line 126 of file BaseNMF.h.

HostMatrix<cudafloat> GetW ( )
inline

Gets the W matrix

Returns
the W matrix

Definition at line 120 of file BaseNMF.h.

HostMatrix<cudafloat> GetWH ( )
inline

Gets the approximation, given by WH, to the matrix V

Returns
the approximation, given by WH, to the matrix V

Definition at line 132 of file BaseNMF.h.


The documentation for this class was generated from the following file: