featuretools.load_features

featuretools.load_features(features, profile_name=None)[source]

Loads the features from a filepath, S3 path, URL, an open file, or a JSON formatted string.

Parameters
  • features (str or FileObject) – The location of where features has

  • file (been saved which this must include the name of the) –

  • formatted (or a JSON) –

  • string

  • saved. (or a readable file handle where the features have been) –

  • profile_name (str, bool) – The AWS profile specified to write to S3. Will default to None and search for AWS credentials. Set to False to use an anonymous profile.

Returns

Feature definitions list.

Return type

features (list[FeatureBase])

Note

Features saved in one version of Featuretools or python are not guaranteed to work in another. After upgrading Featuretools or python, features may need to be generated again.

Example

filepath = os.path.join('/Home/features/', 'list.json')
ft.load_features(filepath)

f = open(filepath, 'r')
ft.load_features(f)

feature_str = f.read()
ft.load_features(feature_str)

See also

save_features()