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.

  • 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.


Feature definitions list.

Return type:

features (list[FeatureBase])


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.


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

# Option 2
filepath = os.path.join('/Home/features/', 'list.json')
with open(filepath, 'r') as f:
    features = ft.load_features(f)

# Option 3
filepath = os.path.join('/Home/features/', 'list.json')
with open(filepath, 'r') as :
    feature_str = f.read()
features = ft.load_features(feature_str)

See also