StandardScaler

com.spotify.featran.transformers.StandardScaler$

Transform features by normalizing each feature to have unit standard deviation and/or zero mean. When withStd is true, it scales the data to unit standard deviation. When withMean is true, it centers the data with mean before scaling.

Missing values are transformed to 0.0 if withMean is true or population mean otherwise.

Attributes

Source:
StandardScaler.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply(name: String, withStd: Boolean, withMean: Boolean): Transformer[Double, Moments, (Double, Double)]

Create a new StandardScaler instance.

Create a new StandardScaler instance.

Attributes

withMean

whether to center the data with mean before scaling

withStd

whether to scale the data to unit standard deviation

Source:
StandardScaler.scala
def fromSettings(setting: Settings): Transformer[Double, Moments, (Double, Double)]

Create a new StandardScaler from a settings object

Create a new StandardScaler from a settings object

Attributes

setting

Settings object

Source:
StandardScaler.scala