Package | Description |
---|---|
org.apache.reef.examples.group.bgd |
Runs BGD on the given runtime.
|
org.apache.reef.examples.group.bgd.data |
Interface for example data instance for linear models.
|
org.apache.reef.examples.group.utils.math |
Math utilities for Group Communication.
|
Modifier and Type | Method and Description |
---|---|
Pair<Pair<Double,Integer>,Vector> |
LossAndGradientReduceFunction.apply(Iterable<Pair<Pair<Double,Integer>,Vector>> lags) |
Pair<Vector,Integer> |
LineSearchReduceFunction.apply(Iterable<Pair<Vector,Integer>> evals) |
Modifier and Type | Method and Description |
---|---|
Pair<Pair<Double,Integer>,Vector> |
LossAndGradientReduceFunction.apply(Iterable<Pair<Pair<Double,Integer>,Vector>> lags) |
Pair<Vector,Integer> |
LineSearchReduceFunction.apply(Iterable<Pair<Vector,Integer>> evals) |
Modifier and Type | Method and Description |
---|---|
void |
SparseExample.addGradient(Vector gradientVector,
double gradient) |
void |
Example.addGradient(Vector gradientVector,
double gradient)
Adds the current example's gradient to the gradientVector, assuming that
the gradient with respect to the prediction is gradient.
|
double |
SparseExample.predict(Vector w) |
double |
Example.predict(Vector w)
Computes the prediction for this Example, given the model w.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractVector
Abstract base class for
Vector implementations. |
class |
DenseVector
A dense
Vector implementation backed by a double[]. |
Modifier and Type | Method and Description |
---|---|
Vector |
VectorCodec.decode(byte[] data) |
Vector |
Vector.newInstance()
Create a new instance of the current type.
|
Vector |
DenseVector.newInstance() |
Modifier and Type | Method and Description |
---|---|
void |
Vector.add(Vector that)
Adds the Vector that to this one in place: this += that.
|
void |
AbstractVector.add(Vector that) |
double |
ImmutableVector.dot(Vector that)
Computes the inner product with another Vector.
|
byte[] |
VectorCodec.encode(Vector vec) |
Copyright © 2016 The Apache Software Foundation. All rights reserved.