1#ifndef REGULARIZED_ALTERNATING_LEAST_SQUARES_DEFINED
2#define REGULARIZED_ALTERNATING_LEAST_SQUARES_DEFINED
15 double regularizationFriction_,
16 double initialLambda_)
19 ,
lambda(initialLambda_) {}
23 virtual void update(
double const swampingFactor) {
25 double estimatedLambda(
lambda * s * s);
40 virtual void update(
double const swampingFactor) {}
43template <
typename F =
double>
53template <
typename F =
double>
63 AlternatingLeastSquaresRegularizationEstimator *regularizationEstimatorA);
65template <
typename F =
double>
Definition RegularizedAlternatingLeastSquares.hpp:10
virtual ~AlternatingLeastSquaresRegularizationEstimator()
Definition RegularizedAlternatingLeastSquares.hpp:20
virtual double getLambda()
Definition RegularizedAlternatingLeastSquares.hpp:22
double lambda
Definition RegularizedAlternatingLeastSquares.hpp:32
virtual void update(double const swampingFactor)
Definition RegularizedAlternatingLeastSquares.hpp:23
AlternatingLeastSquaresRegularizationEstimator(double swampingThreshold_, double regularizationFriction_, double initialLambda_)
Definition RegularizedAlternatingLeastSquares.hpp:14
double regularizationFriction
Definition RegularizedAlternatingLeastSquares.hpp:31
AlternatingLeastSquaresRegularizationEstimator()
Definition RegularizedAlternatingLeastSquares.hpp:12
double swampingThreshold
Definition RegularizedAlternatingLeastSquares.hpp:31
double getSwampingThreshold()
Definition RegularizedAlternatingLeastSquares.hpp:21
Definition RegularizedAlternatingLeastSquares.hpp:36
virtual double getLambda()
Definition RegularizedAlternatingLeastSquares.hpp:39
virtual ~NoRegularizationEstimator()
Definition RegularizedAlternatingLeastSquares.hpp:38
virtual void update(double const swampingFactor)
Definition RegularizedAlternatingLeastSquares.hpp:40
Definition Algorithm.hpp:10
void fitAlternatingLeastSquaresFactor(Tensor< F > &T, char const *indicesT, Tensor< F > &B, char const idxB, Tensor< F > &C, char const idxC, Tensor< F > &A, char const idxA)
Definition RegularizedAlternatingLeastSquares.cxx:14
void dryFitRegularizedAlternatingLeastSquaresFactor(DryTensor< F > &T, char const *indicesT, DryTensor< F > &B, char const idxB, DryTensor< F > &C, char const idxC, DryTensor< F > &A, char const idxA)
Definition RegularizedAlternatingLeastSquares.cxx:146
void fitRegularizedAlternatingLeastSquaresFactor(Tensor< F > &T, char const *indicesT, Tensor< F > &B, char const idxB, Tensor< F > &C, char const idxC, Tensor< F > &A, char const idxA, AlternatingLeastSquaresRegularizationEstimator *regularizationEstimatorA)
Definition RegularizedAlternatingLeastSquares.cxx:71