graphlab.linear_regression.LinearRegression.list_fields

LinearRegression.list_fields()

List of fields stored in the model. Each of these fields can be queried using the get function.

Returns:

out : list

A list of fields that can be queried using the get method.

See also

get

Examples

>>> data =  graphlab.SFrame('https://static.turi.com/datasets/regression/houses.csv')
>>> model = graphlab.linear_regression.create(data,
                                     target='price',
                                     features=['bath', 'bedroom', 'size'])
>>> fields = model.list_fields()