A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://spark.apache.org/docs/latest/api/java/org/apache/spark/ml/feature/TargetEncoder.html below:

TargetEncoder (Spark 4.0.0 JavaDoc)

All Implemented Interfaces:
Serializable, org.apache.spark.internal.Logging, TargetEncoderBase, Params, HasHandleInvalid, HasInputCol, HasInputCols, HasLabelCol, HasOutputCol, HasOutputCols, DefaultParamsWritable, Identifiable, MLWritable

Target Encoding maps a column of categorical indices into a numerical feature derived from the target.

When handleInvalid is configured to 'keep', previously unseen values of a feature are mapped to the dataset overall statistics.

When 'targetType' is configured to 'binary', categories are encoded as the conditional probability of the target given that category (bin counting). When 'targetType' is configured to 'continuous', categories are encoded as the average of the target given that category (mean encoding)

Parameter 'smoothing' controls how in-category stats and overall stats are weighted.

See Also:
Note:
When encoding multi-column by using inputCols and outputCols params, input/output cols come in pairs, specified by the order in the arrays, and each pair is treated independently.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4