Loading...

verticapy.machine_learning.memmodel.preprocessing.Scaler#

class verticapy.machine_learning.memmodel.preprocessing.Scaler(sub: list | ndarray, den: list | ndarray)#

InMemoryModel implementation of scalers.

Parameters#

sub: ArrayLike

Model’s features first aggregation.

den: ArrayLike

Model’s features second aggregation.

Attributes#

Attributes are identical to the input parameters, followed by an underscore (‘_’).

Examples#

This is a base class. To see a comprehensive example specific to your class of interest, please refer to that particular class.

__init__(sub: list | ndarray, den: list | ndarray) None#

Methods

__init__(sub, den)

get_attributes()

Returns the model attributes.

set_attributes(**kwargs)

Sets the model attributes.

transform(X)

Transforms and applies the Scaler model to the input matrix.

transform_sql(X)

Transforms and returns the SQL needed to deploy the Scaler.

Attributes

object_type

Must be overridden in child class