Package org.tribuo.math.optimisers.util
Interface ShrinkingTensor
- All Known Implementing Classes:
ShrinkingMatrix
,ShrinkingVector
public interface ShrinkingTensor
An interface which tags a
Tensor
with a convertToDense method.-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
The tolerance below which the scale factor is applied to the stored values and reset to 1.0. -
Method Summary
Modifier and TypeMethodDescriptionConverts the tensor into a dense tensor.
-
Field Details
-
tolerance
static final double toleranceThe tolerance below which the scale factor is applied to the stored values and reset to 1.0.- See Also:
-
-
Method Details
-
convertToDense
Tensor convertToDense()Converts the tensor into a dense tensor.- Returns:
- A dense tensor copy of this shrinking tensor.
-