public abstract class BaseDpLinearClassifier extends BasePythonClassifier
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseDpLinearClassifier.Builder<T extends BasePythonClassifier>
The type Builder.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseDpLinearClassifier(BaseDpLinearClassifier.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
static BaseDpLinearClassifier.Builder |
builder() |
int |
getBatchSize()
Gets the number of samples in one batch.
|
double |
getDpEpsilon()
Gets the value that controls the strength of the privacy guarantees.
|
double |
getLearningRate()
Gets learning rate.
|
int |
getMaxEpochs()
Gets the number of epochs to run for training.
|
double |
getMomentum()
Gets optimization coefficient.
|
double |
getPenaltyCoefficient()
Gets the value for the penalty parameter C of the error term.
|
double |
getRadiusConstant()
Gets the value for the radius factor on which to project the weight parameters.
|
double |
getRegLambda()
Gets the value for the L2 regularization parameter.
|
Object |
getSampleWeights()
Gets sample weights (
SampleWeightsType or list of sample weights for each class type). |
int |
getVerbose()
Gets verbose level.
|
boolean |
isGpu()
Whether the gpu is used during training.
|
boolean |
isHighMemory()
Wheather high memory mode is enabled (gpu only) where training data is kept on CPU memory and only the mini-batch data is sent.
|
close, fit, getModelName, getWorkingDir, init, predictprotected BaseDpLinearClassifier(BaseDpLinearClassifier.Builder builder)
public int getMaxEpochs()
public int getBatchSize()
public Object getSampleWeights()
SampleWeightsType or list of sample weights for each class type). If null then all classes are supposed
to have weight one.public int getVerbose()
public boolean isGpu()
public double getDpEpsilon()
public boolean isHighMemory()
public double getMomentum()
public double getLearningRate()
public double getRadiusConstant()
public double getRegLambda()
public double getPenaltyCoefficient()
public static BaseDpLinearClassifier.Builder builder()
Copyright © 2019. All rights reserved.