public class LinearBatch.GradFunction extends Object implements FunctionVec
Constructor and Description |
---|
GradFunction(DataSet D,
LossFunc loss) |
Modifier and Type | Method and Description |
---|---|
Vec |
f(double... x)
Computes the function value given the input
x |
Vec |
f(Vec w)
Computes the function value given the input
x |
Vec |
f(Vec w,
Vec s)
Computes the function value given the input
x |
Vec |
f(Vec w,
Vec s,
ExecutorService ex)
Computes the function value given the input
x |
public Vec f(double... x)
FunctionVec
x
f
in interface FunctionVec
x
- the input to compute the output frompublic Vec f(Vec w)
FunctionVec
x
f
in interface FunctionVec
w
- the input to compute the output frompublic Vec f(Vec w, Vec s)
FunctionVec
x
f
in interface FunctionVec
w
- the input to compute the output froms
- the vector to store the result in, or null
if a new
vector should be allocateds
if s
is not null
public Vec f(Vec w, Vec s, ExecutorService ex)
FunctionVec
x
f
in interface FunctionVec
w
- the input to compute the output froms
- the vector to store the result in, or null
if a new
vector should be allocatedex
- the source of threads to use for the computations
of s
is not null
Copyright © 2017. All rights reserved.