converters.sklearn._normalizer

Module Contents

Functions

convert(model,input_features,output_features) Convert a normalizer model to the protobuf spec.
update_dimension(model,input_dimension) Given a model that takes an array of dimension input_dimension, returns
get_input_dimension(model)
convert(model, input_features, output_features)

Convert a normalizer model to the protobuf spec.

model: Normalizer
A Normalizer.
input_features: str
Name of the input column.
output_features: str
Name of the output column.
model_spec: An object of type Model_pb.
Protobuf representation of the model
update_dimension(model, input_dimension)

Given a model that takes an array of dimension input_dimension, returns the output dimension.

get_input_dimension(model)