class KNN extends Estimator[KNNModel] with KNNParams with DefaultParamsWritable with OptimizedKNNFitting with SynapseMLLogging
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- KNN
- OptimizedKNNFitting
- SynapseMLLogging
- DefaultParamsWritable
- MLWritable
- KNNParams
- HasOutputCol
- Wrappable
- RWrappable
- PythonWrappable
- BaseWrappable
- HasFeaturesCol
- Estimator
- PipelineStage
- Logging
- Params
- Serializable
- Serializable
- Identifiable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
clear(param: Param[_]): KNN.this.type
- Definition Classes
- Params
-
def
copy(extra: ParamMap): Estimator[KNNModel]
- Definition Classes
- KNN → Estimator → PipelineStage → Params
-
def
explainParam(param: Param[_]): String
- Definition Classes
- Params
-
def
explainParams(): String
- Definition Classes
- Params
-
final
def
extractParamMap(): ParamMap
- Definition Classes
- Params
-
final
def
extractParamMap(extra: ParamMap): ParamMap
- Definition Classes
- Params
-
val
featuresCol: Param[String]
The name of the features column
The name of the features column
- Definition Classes
- HasFeaturesCol
-
def
fit(dataset: Dataset[_]): KNNModel
- Definition Classes
- KNN → Estimator
-
def
fit(dataset: Dataset[_], paramMaps: Seq[ParamMap]): Seq[KNNModel]
- Definition Classes
- Estimator
- Annotations
- @Since( "2.0.0" )
-
def
fit(dataset: Dataset[_], paramMap: ParamMap): KNNModel
- Definition Classes
- Estimator
- Annotations
- @Since( "2.0.0" )
-
def
fit(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): KNNModel
- Definition Classes
- Estimator
- Annotations
- @Since( "2.0.0" ) @varargs()
-
final
def
get[T](param: Param[T]): Option[T]
- Definition Classes
- Params
-
final
def
getDefault[T](param: Param[T]): Option[T]
- Definition Classes
- Params
-
def
getFeaturesCol: String
- Definition Classes
- HasFeaturesCol
-
def
getK: Int
- Definition Classes
- KNNParams
-
def
getLeafSize: Int
- Definition Classes
- KNNParams
-
final
def
getOrDefault[T](param: Param[T]): T
- Definition Classes
- Params
-
def
getOutputCol: String
- Definition Classes
- HasOutputCol
-
def
getParam(paramName: String): Param[Any]
- Definition Classes
- Params
-
def
getParamInfo(p: Param[_]): ParamInfo[_]
- Definition Classes
- BaseWrappable
-
def
getValuesCol: String
- Definition Classes
- KNNParams
-
final
def
hasDefault[T](param: Param[T]): Boolean
- Definition Classes
- Params
-
def
hasParam(paramName: String): Boolean
- Definition Classes
- Params
-
final
def
isDefined(param: Param[_]): Boolean
- Definition Classes
- Params
-
final
def
isSet(param: Param[_]): Boolean
- Definition Classes
- Params
-
val
k: IntParam
- Definition Classes
- KNNParams
-
val
leafSize: IntParam
- Definition Classes
- KNNParams
-
def
logClass(featureName: String): Unit
- Definition Classes
- SynapseMLLogging
-
def
logFit[T](f: ⇒ T, columns: Int): T
- Definition Classes
- SynapseMLLogging
-
def
logTransform[T](f: ⇒ T, columns: Int): T
- Definition Classes
- SynapseMLLogging
-
def
logVerb[T](verb: String, f: ⇒ T, columns: Option[Int] = None): T
- Definition Classes
- SynapseMLLogging
-
def
makePyFile(conf: CodegenConfig): Unit
- Definition Classes
- PythonWrappable
-
def
makeRFile(conf: CodegenConfig): Unit
- Definition Classes
- RWrappable
-
val
outputCol: Param[String]
The name of the output column
The name of the output column
- Definition Classes
- HasOutputCol
-
lazy val
params: Array[Param[_]]
- Definition Classes
- Params
-
def
pyAdditionalMethods: String
- Definition Classes
- PythonWrappable
-
def
pyInitFunc(): String
- Definition Classes
- PythonWrappable
-
def
save(path: String): Unit
- Definition Classes
- MLWritable
- Annotations
- @Since( "1.6.0" ) @throws( ... )
-
final
def
set[T](param: Param[T], value: T): KNN.this.type
- Definition Classes
- Params
-
def
setFeaturesCol(value: String): KNN.this.type
- Definition Classes
- HasFeaturesCol
-
def
setK(v: Int): KNN.this.type
- Definition Classes
- KNNParams
-
def
setLeafSize(v: Int): KNN.this.type
- Definition Classes
- KNNParams
-
def
setOutputCol(value: String): KNN.this.type
- Definition Classes
- HasOutputCol
-
def
setValuesCol(v: String): KNN.this.type
- Definition Classes
- KNNParams
-
def
toString(): String
- Definition Classes
- Identifiable → AnyRef → Any
-
def
transformSchema(schema: StructType): StructType
- Definition Classes
- KNN → PipelineStage
-
val
uid: String
- Definition Classes
- KNN → SynapseMLLogging → Identifiable
-
val
valuesCol: Param[String]
- Definition Classes
- KNNParams
-
def
write: MLWriter
- Definition Classes
- DefaultParamsWritable → MLWritable