Modifier and Type | Field and Description |
---|---|
DenseVector |
KnnModelData.featureNormSquares |
DenseVector |
KnnModelData.labels |
Constructor and Description |
---|
KnnModelData(DenseMatrix packedFeatures,
DenseVector featureNormSquares,
DenseVector labels) |
Modifier and Type | Field and Description |
---|---|
DenseVector |
LogisticRegressionModelData.coefficient |
Modifier and Type | Method and Description |
---|---|
void |
LogisticGradient.computeGradient(List<LabeledPointWithWeight> dataPoints,
DenseVector coefficient,
DenseVector cumGradient)
Computes gradient on a set of samples.
|
org.apache.flink.api.java.tuple.Tuple2<Double,Double> |
LogisticGradient.computeLoss(List<LabeledPointWithWeight> dataPoints,
DenseVector coefficient)
Computes weight sum and loss sum on a set of samples.
|
Constructor and Description |
---|
LogisticRegressionModelData(DenseVector coefficient) |
Modifier and Type | Field and Description |
---|---|
DenseVector |
NaiveBayesModelData.labels
Value of labels.
|
DenseVector |
NaiveBayesModelData.piArray
Log of class priors, whose dimension is C (number of classes).
|
Constructor and Description |
---|
NaiveBayesModelData(Map<Double,Double>[][] theta,
DenseVector piArray,
DenseVector labels) |
Modifier and Type | Field and Description |
---|---|
DenseVector[] |
KMeansModelData.centroids |
Modifier and Type | Method and Description |
---|---|
static org.apache.flink.streaming.api.datastream.DataStream<DenseVector[]> |
KMeans.selectRandomCentroids(org.apache.flink.streaming.api.datastream.DataStream<DenseVector> data,
int k,
long seed) |
Constructor and Description |
---|
KMeansModelData(DenseVector[] centroids) |
Modifier and Type | Method and Description |
---|---|
DenseVector |
LabeledPointWithWeight.getFeatures() |
Modifier and Type | Method and Description |
---|---|
void |
LabeledPointWithWeight.setFeatures(DenseVector features) |
Constructor and Description |
---|
LabeledPointWithWeight(DenseVector features,
double label,
double weight) |
Modifier and Type | Method and Description |
---|---|
static DenseVector |
Vectors.dense(double... values)
Creates a dense vector from its values.
|
Modifier and Type | Method and Description |
---|---|
static double |
BLAS.asum(DenseVector x)
\sum_i |x_i| .
|
static void |
BLAS.axpy(double a,
DenseVector x,
DenseVector y)
y += a * x .
|
static double |
BLAS.dot(DenseVector x,
DenseVector y)
x \cdot y .
|
static void |
BLAS.gemv(double alpha,
DenseMatrix matrix,
boolean transMatrix,
DenseVector x,
double beta,
DenseVector y)
y = alpha * matrix * x + beta * y or y = alpha * (matrix^T) * x + beta * y.
|
static double |
BLAS.norm2(DenseVector x)
\sqrt(\sum_i x_i * x_i) .
|
static void |
BLAS.scal(double a,
DenseVector x)
x = x * a .
|
Modifier and Type | Method and Description |
---|---|
DenseVector |
DenseVectorSerializer.copy(DenseVector from) |
DenseVector |
DenseVectorSerializer.copy(DenseVector from,
DenseVector reuse) |
DenseVector |
DenseVectorSerializer.createInstance() |
DenseVector |
DenseVectorSerializer.deserialize(org.apache.flink.core.memory.DataInputView source) |
DenseVector |
DenseVectorSerializer.deserialize(DenseVector reuse,
org.apache.flink.core.memory.DataInputView source) |
Modifier and Type | Method and Description |
---|---|
org.apache.flink.api.common.typeutils.TypeSerializer<DenseVector> |
DenseVectorTypeInfo.createSerializer(org.apache.flink.api.common.ExecutionConfig executionConfig) |
org.apache.flink.api.common.typeinfo.TypeInformation<DenseVector> |
DenseVectorTypeInfoFactory.createTypeInfo(Type t,
Map<String,org.apache.flink.api.common.typeinfo.TypeInformation<?>> genericParameters) |
Class<DenseVector> |
DenseVectorTypeInfo.getTypeClass() |
org.apache.flink.api.common.typeutils.TypeSerializerSnapshot<DenseVector> |
DenseVectorSerializer.snapshotConfiguration() |
Modifier and Type | Method and Description |
---|---|
DenseVector |
DenseVectorSerializer.copy(DenseVector from) |
DenseVector |
DenseVectorSerializer.copy(DenseVector from,
DenseVector reuse) |
DenseVector |
DenseVectorSerializer.deserialize(DenseVector reuse,
org.apache.flink.core.memory.DataInputView source) |
void |
DenseVectorSerializer.serialize(DenseVector vector,
org.apache.flink.core.memory.DataOutputView target) |
Copyright © 2019–2023 The Apache Software Foundation. All rights reserved.