public class LogisticRegression extends Object implements Estimator<LogisticRegression,LogisticRegressionModel>, LogisticRegressionParams<LogisticRegression>
See https://en.wikipedia.org/wiki/Logistic_regression.
LABEL_COL
WEIGHT_COL
MAX_ITER
LEARNING_RATE
GLOBAL_BATCH_SIZE
MULTI_CLASS
FEATURES_COL
PREDICTION_COL
RAW_PREDICTION_COL
Constructor and Description |
---|
LogisticRegression() |
Modifier and Type | Method and Description |
---|---|
LogisticRegressionModel |
fit(org.apache.flink.table.api.Table... inputs)
Trains on the given inputs and produces a Model.
|
Map<Param<?>,Object> |
getParamMap()
Returns a map which should contain value for every parameter that meets one of the following
conditions.
|
static LogisticRegression |
load(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env,
String path) |
void |
save(String path)
Saves this stage to the given path.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLabelCol, setLabelCol
getWeightCol, setWeightCol
getMaxIter, setMaxIter
getLearningRate, setLearningRate
getGlobalBatchSize, setGlobalBatchSize
getMultiClass, setMultiClass
getFeaturesCol, setFeaturesCol
getPredictionCol, setPredictionCol
getRawPredictionCol, setRawPredictionCol
get, getParam, set
public Map<Param<?>,Object> getParamMap()
WithParams
1) set(...) has been called to set value for this parameter.
2) The parameter is a public final field of this WithParams instance. This includes fields inherited from its interfaces and super-classes.
The subclass which implements this interface could meet this requirement by returning a
member field of the given map type, after having initialized this member field using the
ParamUtils.initializeMapWithDefaultValues(Map, WithParams)
method.
getParamMap
in interface WithParams<LogisticRegression>
public void save(String path) throws IOException
Stage
save
in interface Stage<LogisticRegression>
IOException
public static LogisticRegression load(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env, String path) throws IOException
IOException
public LogisticRegressionModel fit(org.apache.flink.table.api.Table... inputs)
Estimator
fit
in interface Estimator<LogisticRegression,LogisticRegressionModel>
inputs
- a list of tablesCopyright © 2019–2023 The Apache Software Foundation. All rights reserved.