public class LSQROnHeap<K,V> extends AbstractLSQR implements AutoCloseable
AbstractLSQR
and Dataset
.Constructor and Description |
---|
LSQROnHeap(DatasetBuilder<K,V> datasetBuilder,
LearningEnvironmentBuilder envBuilder,
PartitionDataBuilder<K,V,LSQRPartitionContext,SimpleLabeledDatasetData> partDataBuilder,
LearningEnvironment localLearningEnv)
Constructs a new instance of OnHeap LSQR algorithm implementation.
|
Modifier and Type | Method and Description |
---|---|
protected double |
beta(double[] x,
double alfa,
double beta)
Calculates beta.
|
protected double |
bnorm()
Calculates bnorm.
|
void |
close() |
protected Integer |
getColumns()
Returns number of columns in dataset.
|
protected double[] |
iter(double bnorm,
double[] target)
Perform LSQR iteration.
|
solve
public LSQROnHeap(DatasetBuilder<K,V> datasetBuilder, LearningEnvironmentBuilder envBuilder, PartitionDataBuilder<K,V,LSQRPartitionContext,SimpleLabeledDatasetData> partDataBuilder, LearningEnvironment localLearningEnv)
datasetBuilder
- Dataset builder.envBuilder
- Learning environment builder.partDataBuilder
- Partition data builder.protected double bnorm()
bnorm
in class AbstractLSQR
protected double beta(double[] x, double alfa, double beta)
beta
in class AbstractLSQR
x
- X value.alfa
- Alfa value.beta
- Beta value.protected double[] iter(double bnorm, double[] target)
iter
in class AbstractLSQR
bnorm
- Bnorm value.target
- Target value.protected Integer getColumns()
getColumns
in class AbstractLSQR
public void close() throws Exception
close
in interface AutoCloseable
Exception
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024