API Reference¶
Demo Datasets¶
|
Returns the retail entityset example. |
|
Return dataframes of mock customer data |
|
Download, clean, and filter flight data from 2017. |
Deep Feature Synthesis¶
|
Calculates a feature matrix and features given a dictionary of entities and a list of relationships. |
Wrappers¶
Scikit-learn (BETA)¶
|
Transformer using Scikit-Learn interface for Pipeline uses. |
Time utils¶
|
Makes a set of equally spaced cutoff times prior to a set of input cutoffs and instance ids. |
Feature Primitives¶
A list of all Featuretools primitives can be obtained by visiting primitives.featurelabs.com.
Primitive Types¶
Feature for entity that is a based off one or more other features in that entity. |
|
Primitive Creation Functions¶
|
Returns a new aggregation primitive class. |
|
Returns a new transform primitive class |
Aggregation Primitives¶
|
Determines the total number of values, excluding NaN. |
|
Computes the average for a list of values. |
|
Calculates the total addition, ignoring NaN. |
|
Calculates the smallest value, ignoring NaN values. |
|
Calculates the highest value, ignoring NaN values. |
|
Computes the dispersion relative to the mean value, ignoring NaN. |
|
Determines the middlemost number in a list of values. |
|
Determines the most commonly repeated value. |
|
Computes the average number of seconds between consecutive events. |
|
Calculates the time elapsed since the last datetime (default in seconds). |
|
Calculates the time elapsed since the first datetime (in seconds). |
Determines the number of distinct values, ignoring NaN values. |
|
Determines the percent of True values. |
|
|
Calculates if all values are ‘True’ in a list. |
|
Determines if any value is ‘True’ in a list. |
|
Determines the first value in a list. |
|
Determines the last value in a list. |
|
Computes the extent to which a distribution differs from a normal distribution. |
|
Calculates the trend of a variable over time. |
|
Calculates the entropy for a categorical variable |
Transform Primitives¶
Combine features¶
|
Determines whether a value is present in a provided list. |
|
Element-wise logical AND of two lists. |
|
Element-wise logical OR of two lists. |
|
Negates a boolean value. |
General Transform Primitives¶
|
Computes the absolute value of a number. |
Determines the percentile rank for each value in a list. |
|
|
Calculates time from a value to a specified cutoff datetime. |
Datetime Transform Primitives¶
|
Determines the seconds value of a datetime. |
|
Determines the minutes value of a datetime. |
|
Determines the day of the week from a datetime. |
Determines if a date falls on a weekend. |
|
|
Determines the hour value of a datetime. |
|
Determines the day of the month from a datetime. |
|
Determines the week of the year from a datetime. |
|
Determines the month value of a datetime. |
|
Determines the year value of a datetime. |
Cumulative Transform Primitives¶
|
Compute the difference between the value in a list and the previous value in that list. |
|
Compute the time since the previous entry in a list. |
|
Calculates the cumulative count. |
|
Calculates the cumulative sum. |
|
Calculates the cumulative mean. |
|
Calculates the cumulative minimum. |
|
Calculates the cumulative maximum. |
Natural Language Processing Primitives¶
Natural Language Processing primitives create features for textual data. For more information on how to use and install these primitives, see here.
Calculates the overall complexity of the text based on the total |
|
|
Calculates the Latent Semantic Analysis Values of Text Input |
Determines the mean number of characters per word. |
|
Calculates the occurences of each different part of speech. |
|
Calculates the polarity of a text on a scale from -1 (negative) to 1 (positive) |
|
Determines number of punctuation characters in a string. |
|
Determines number of stopwords in a string. |
|
Determines the number of title words in a string. |
|
Transforms a sentence or short paragraph to a vector using [tfhub model](https://tfhub.dev/google/universal-sentence-encoder/2) |
|
Calculates the number of upper case letters in text. |
Feature methods¶
|
Rename Feature, returns copy |
|
Returns depth of feature |
Feature calculation¶
|
Calculates a matrix for a given set of instance ids and calculation times. |
Feature encoding¶
|
Encode categorical features |
Saving and Loading Features¶
|
Saves the features list as JSON to a specified filepath/S3 path, writes to an open file, or returns the serialized features as a JSON string. |
|
Loads the features from a filepath, S3 path, URL, an open file, or a JSON formatted string. |
EntitySet, Entity, Relationship, Variable Types¶
Constructors¶
|
Stores all actual data for a entityset |
|
Represents an entity in a Entityset, and stores relevant metadata and data |
|
Class to represent an relationship between entities |
EntitySet load and prepare data¶
|
Load the data for a specified entity from a Pandas DataFrame. |
|
Add a new relationship between entities in the entityset |
|
Create a new entity and relationship from unique values of an existing variable. |
Find interesting values for categorical variables, to be used to generate “where” clauses |
EntitySet serialization¶
|
Read entityset from disk, S3 path, or URL. |
|
Write entityset to disk in the csv format, location specified by path. |
|
Write entityset in the pickle format, location specified by path. |
|
Write entityset to disk in the parquet format, location specified by path. |
EntitySet query methods¶
|
Get entity instance from entityset |
Generator which yields all backward paths between a start and goal entity. |
|
Generator which yields all forward paths between a start and goal entity. |
|
|
Get entities that are in a forward relationship with entity |
|
Get entities that are in a backward relationship with entity |
EntitySet visualization¶
|
Create a UML diagram-ish graph of the EntitySet. |
Entity methods¶
|
Convert variable in dataframe to different type |
|
Find interesting values for categorical variables, to be used to |
Relationship attributes¶
Instance of variable in parent entity |
|
Instance of variable in child entity |
|
Parent entity object |
|
Child entity object |
Variable types¶
|
Represents variables that uniquely identify an instance of an entity |
|
Represents variables that identify another entity |
|
Represents time index of entity |
|
Represents time index of entity that is a datetime |
|
Represents time index of entity that is numeric |
|
Represents variables that are points in time |
|
Represents variables that contain numeric values |
|
Represents variables that can take an unordered discrete values |
|
Represents variables that take on an ordered discrete value |
|
Represents variables that take on one of two values |
|
Represents variables that are arbitary strings |
|
Represents an ordered pair (Latitude, Longitude) To make a latlong in a dataframe do data[‘latlong’] = data[[‘latitude’, ‘longitude’]].apply(tuple, axis=1) |
|
Represents a postal address in the United States. |
|
Represents a computer network address. |
|
Represents a person’s full name. |
|
Represents an email box to which email message are sent. |
|
Represents a valid web url (with or without http/www) |
|
Represents any valid phone number. |
|
Represents a date of birth as a datetime |
|
Represents an ISO-3166 standard country code. |
|
Represents an ISO-3166 standard sub-region code. |
|
Represents a valid filepath, absolute or relative |
Feature Selection¶
|
Select features that have at least 2 unique values and that are not all null |