Skip to content

Commit

Permalink
v0.2.2 (alteryx#220)
Browse files Browse the repository at this point in the history
* use prebuilt mock customer es in doc

* bump version number

* remove outdated documentation

* update changelog

* remove doc changes from changelog
  • Loading branch information
rwedge authored and Seth-Rothschild committed Aug 20, 2018
1 parent f74e7c3 commit c529bb2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 145 deletions.
125 changes: 0 additions & 125 deletions docs/source/automated_feature_engineering/_extra_todo.rst

This file was deleted.

15 changes: 15 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

Changelog
---------
**v0.2.2** Aug 20, 2018
* Remove unnecessary check no related instances call and refactor (:pr:`209`)
* Improve memory usage through support for pandas categorical types (:pr:`196`)
* Bump minimum pandas version from 0.20.3 to 0.23.0 (:pr:`216`)
* Better parallel memory warnings (:pr:`208`, :pr:`214`)
* Update demo datasets (:pr:`187`, :pr:`201`, :pr:`207`)
* Make primitive lookup case insensitive (:pr:`213`)
* Use capital name (:pr:`211`)
* Set class name for Min (:pr:`206`)
* Remove ``variable_types`` from normalize entity (:pr:`205`)
* Handle parquet serialization with last time index (:pr:`204`)
* Reset index of cutoff times in calculate feature matrix (:pr:`198`)
* Check argument types for .normalize_entity (:pr:`195`)
* Type checking ignore entities. (:pr:`193`)

**v0.2.1** July 2, 2018
* Cpu count fix (:pr:`176`)
* Update flight (:pr:`175`)
Expand Down
23 changes: 5 additions & 18 deletions docs/source/feature_engineering_language/feature-types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,7 @@
import featuretools as ft
import pandas as pd
data = ft.demo.load_mock_customer()
entities = {
"customers" : (data["customers"], "id"), # time index is optional
"sessions" : (data["sessions"], "id", "session_start"),
"products" : (data["products"], "id"),
"transactions" : (data["transactions"], "id", "transaction_time")
}
relationships = [("sessions", "id", "transactions", "session_id"),
("products", "id", "transactions", "product_id"),
("customers", "id", "sessions", "customer_id")]
es = ft.EntitySet("session_data", entities, relationships)
es
es = ft.demo.load_mock_customer(return_entityset=True)
Feature types
==============
Expand Down Expand Up @@ -96,7 +83,7 @@ Aggregation features are used to create features for a :term:`parent entity` by
.. ipython:: python
from featuretools.primitives import Count
total_events = Count(es["transactions"]["id"], es["customers"])
total_events = Count(es["transactions"]["transaction_id"], es["customers"])
fm = ft.calculate_feature_matrix([total_events], es)
fm.head()
Expand All @@ -108,7 +95,7 @@ Often times, we only want to aggregate using a certain amount of previous data.

.. ipython:: python
total_events_last_30_days = Count(es["transactions"]["id"],
total_events_last_30_days = Count(es["transactions"]["transaction_id"],
parent_entity=es["customers"],
use_previous="30 days")
fm = ft.calculate_feature_matrix([total_events_last_30_days], es)
Expand All @@ -124,7 +111,7 @@ When defining aggregation or cumulative transform features, we can provide a ``w

.. ipython:: python
afternoon_events = Count(es["transactions"]["id"],
afternoon_events = Count(es["transactions"]["transaction_id"],
parent_entity=es["customers"],
where=is_afternoon).rename("afternoon_events")
fm = ft.calculate_feature_matrix([afternoon_events], es)
Expand All @@ -143,7 +130,7 @@ Say we want to calculate the number of events per customer in the past 30 days.
.. ipython:: python
from featuretools.primitives import CumCount
total_events = CumCount(base_feature=es["transactions"]["id"],
total_events = CumCount(base_feature=es["transactions"]["transaction_id"],
group_feature=es["transactions"]["session_id"],
use_previous="1 hour")
fm = ft.calculate_feature_matrix([total_events], es)
Expand Down
2 changes: 1 addition & 1 deletion featuretools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
from .utils.time_utils import *
import featuretools.demo

__version__ = '0.2.1'
__version__ = '0.2.2'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def finalize_options(self):

setup(
name='featuretools',
version='0.2.1',
version='0.2.2',
packages=find_packages(),
package_data={'featuretools': ['config.yaml']},
description='a framework for automated feature engineering',
Expand Down

0 comments on commit c529bb2

Please sign in to comment.