class StandardScalerModel extends VectorTransformer
Represents a StandardScaler model that can transform vectors.
- Annotations
- @Since( "1.1.0" )
- Source
- StandardScaler.scala
- Alphabetic
- By Inheritance
- StandardScalerModel
- VectorTransformer
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
StandardScalerModel(std: Vector)
- Annotations
- @Since( "1.3.0" )
-
new
StandardScalerModel(std: Vector, mean: Vector)
- Annotations
- @Since( "1.3.0" )
-
new
StandardScalerModel(std: Vector, mean: Vector, withStd: Boolean, withMean: Boolean)
- std
column standard deviation values
- mean
column mean values
- withStd
whether to scale the data to have unit standard deviation
- withMean
whether to center the data before scaling
- Annotations
- @Since( "1.3.0" )
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
mean: Vector
- Annotations
- @Since( "1.1.0" )
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
setWithMean(withMean: Boolean): StandardScalerModel.this.type
- Annotations
- @Since( "1.3.0" )
-
def
setWithStd(withStd: Boolean): StandardScalerModel.this.type
- Annotations
- @Since( "1.3.0" )
-
val
std: Vector
- Annotations
- @Since( "1.3.0" )
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
transform(vector: Vector): Vector
Applies standardization transformation on a vector.
Applies standardization transformation on a vector.
- vector
Vector to be standardized.
- returns
Standardized vector. If the std of a column is zero, it will return default
0.0
for the column with zero std.
- Definition Classes
- StandardScalerModel → VectorTransformer
- Annotations
- @Since( "1.1.0" )
-
def
transform(data: JavaRDD[Vector]): JavaRDD[Vector]
Applies transformation on a JavaRDD[Vector].
Applies transformation on a JavaRDD[Vector].
- data
JavaRDD[Vector] to be transformed.
- returns
transformed JavaRDD[Vector].
- Definition Classes
- VectorTransformer
- Annotations
- @Since( "1.1.0" )
-
def
transform(data: RDD[Vector]): RDD[Vector]
Applies transformation on an RDD[Vector].
Applies transformation on an RDD[Vector].
- data
RDD[Vector] to be transformed.
- returns
transformed RDD[Vector].
- Definition Classes
- VectorTransformer
- Annotations
- @Since( "1.1.0" )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
var
withMean: Boolean
- Annotations
- @Since( "1.3.0" )
-
var
withStd: Boolean
- Annotations
- @Since( "1.3.0" )