|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectorg.apache.spark.ml.PipelineStage
org.apache.spark.ml.Transformer
org.apache.spark.ml.feature.HashingTF
public class HashingTF
:: Experimental :: Maps a sequence of terms to their term frequencies using the hashing trick.
| Constructor Summary | |
|---|---|
HashingTF()
|
|
HashingTF(String uid)
|
|
| Method Summary | |
|---|---|
HashingTF |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params. |
int |
getNumFeatures()
|
IntParam |
numFeatures()
Number of features. |
HashingTF |
setInputCol(String value)
|
HashingTF |
setNumFeatures(int value)
|
HashingTF |
setOutputCol(String value)
|
DataFrame |
transform(DataFrame dataset)
Transforms the input dataset. |
StructType |
transformSchema(StructType schema)
:: DeveloperApi :: |
String |
uid()
|
| Methods inherited from class org.apache.spark.ml.Transformer |
|---|
transform, transform, transform |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.spark.ml.param.Params |
|---|
clear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, setDefault, shouldOwn, validateParams |
| Methods inherited from interface org.apache.spark.Logging |
|---|
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning |
| Constructor Detail |
|---|
public HashingTF(String uid)
public HashingTF()
| Method Detail |
|---|
public String uid()
public HashingTF setInputCol(String value)
public HashingTF setOutputCol(String value)
public IntParam numFeatures()
public int getNumFeatures()
public HashingTF setNumFeatures(int value)
public DataFrame transform(DataFrame dataset)
Transformer
transform in class Transformerdataset - (undocumented)
public StructType transformSchema(StructType schema)
PipelineStageDerives the output schema from the input schema.
transformSchema in class PipelineStageschema - (undocumented)
public HashingTF copy(ParamMap extra)
Params
copy in interface Paramscopy in class Transformerextra - (undocumented)
defaultCopy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||