converters.sklearn._linear_regression

Module Contents

Functions

convert(model,features,target) Convert a linear regression model to the protobuf spec.
_convert(model,features,target)
get_input_dimension(model)
convert(model, features, target)

Convert a linear regression model to the protobuf spec. Parameters ———- model: LinearRegression

A trained linear regression encoder model.
feature_names: [str]
Name of the input columns.
target: str
Name of the output column.
model_spec: An object of type Model_pb.
Protobuf representation of the model
_convert(model, features, target)
get_input_dimension(model)