Package org.apache.wayang.apps.sgd
Class SGDImprovedImpl
- java.lang.Object
-
- org.apache.wayang.apps.sgd.SGDImprovedImpl
-
public class SGDImprovedImpl extends java.lang.Object
This class executes a stochastic gradient descent optimization on Apache Wayang (incubating), just likeSGDImpl
. However, it used theMapPartitionsOperator
for performance improvements.
-
-
Constructor Summary
Constructors Constructor Description SGDImprovedImpl(Configuration configuration, Plugin[] plugins)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]
apply(java.lang.String datasetUrl, int datasetSize, int features, int maxIterations, double accuracy, int sampleSize)
double[]
apply(java.lang.String datasetUrl, int datasetSize, int features, int maxIterations, double accuracy, int sampleSize, Experiment experiment)
-
-
-
Constructor Detail
-
SGDImprovedImpl
public SGDImprovedImpl(Configuration configuration, Plugin[] plugins)
-
-
Method Detail
-
apply
public double[] apply(java.lang.String datasetUrl, int datasetSize, int features, int maxIterations, double accuracy, int sampleSize)
-
apply
public double[] apply(java.lang.String datasetUrl, int datasetSize, int features, int maxIterations, double accuracy, int sampleSize, Experiment experiment)
-
-