GithubHelp home page GithubHelp logo

alteryx / featuretools_sql Goto Github PK

View Code? Open in Web Editor NEW
10.0 17.0 0.0 142 KB

Automated creation of EntitySets from relational data stored in SQL databases

License: BSD 3-Clause "New" or "Revised" License

Makefile 6.30% Python 93.70%
feature-engineering machine-learning mysql postgres postgresql sql featuretools automated-feature-engineering automated-machine-learning automl

featuretools_sql's Introduction

Automated creation of EntitySets from relational data stored in SQL databases

PyPI Version Documentation Status Anaconda Version StackOverflow PyPI Downloads


The featuretools_sql library allows you to directly import your relational data into Featuretools to run automated feature engineering.

Installation

Install with pip:

python -m pip install "featuretools[sql]"

or from the Conda-forge channel on conda:

conda install -c conda-forge featuretools

Example

Simply pass in the database connection information:

from featuretools_sql.connector import DBConnector

sql_connector = DBConnector(
    system_name = "mysql",
    host = "127.0.0.1:3306"
    user = "root",
    password = "password",
    database = "db"
) 
entityset = sql_connector.get_entityset()

The entityset object will have the relationships and DataFrames already populated, allowing you to call featuretools.DFS and run automated feature generation.

import featuretools as ft

feature_defs, feature_matrix = ft.dfs(
    entityset=entityset,
    target_entity='target_table_name'
)

We currently supports importing data from the following relational database systems:

  • MySQL
  • PostgreSQL
  • Snowflake

Support

The Featuretools community is happy to provide support to users. Project support can be found in four places depending on the type of question:

  1. For usage questions, use Stack Overflow with the featuretools tag.
  2. For bugs, issues, or feature requests start a Github issue.
  3. For discussion regarding development, use Slack.
  4. For everything else, the core developers can be reached by email at [email protected]

Built at Alteryx

featuretools_sql is an open source project maintained by Alteryx. To see the other open source projects we’re working on, visit Alteryx Open Source. If building impactful data science pipelines is important to you or your business, please get in touch.

Alteryx Open Source

featuretools_sql's People

Contributors

gsheni avatar machinefl avatar sbadithe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

featuretools_sql's Issues

Improve Postgres testing

-Add relationship information for retail dataset to Testing Postgres Database (Retail Demo for all)
-Test that number of output dataframes match input dataframes
-Test types match (this might fail because WW types aren't the same)
-Pull out EntitySet setup and tear down into a reproduceable mechanism that we can reuse in other tests
-Ensure relationship information matches

Fix Pandas SQLAlchemy data type issues and resolve warnings

Pandas's IO library is throwing warnings when we use it with a non-SQLAlchemy connector object. Furthermore, there seems to be issues with snowflake.connector objects handling particular data types.

We should decide how we want to resolve this issue, either by working around it or switching to SQLAlchemy.

Determine what to do in event user has not defined primary key

  • Suppose the user attempts to import tables where there is no primary key constraint explicitly defined. In this event, the code that creates the relationships data structure will fail. What is the best behavior in this scenario? For now, we can throw an informational warning and leave it to the user to set a primary key.

Clean up readme

  • The readme should have the following
    • badges
    • a library image
    • example usage
    • benefits of using the library
    • links to documentation

Remove tensorflow requirements from setup.cfg

  • These requirements should not be there
complete =
    tensorflow >= 1.14.0; sys_platform!="darwin" or platform_machine!='arm64'
    tensorflow-metal >= 0.4.0; sys_platform=="darwin" and platform_machine=='arm64'
    tensorflow-macos >= 2.8.0; sys_platform=="darwin" and platform_machine=='arm64'
    tensorflow_hub >= 0.4.0

Add `do_not_select` parameter

Suppose user has 100 tables, and wants to include all but n. It may be useful to have a do_not_select parameter instead of having to enumerate the 100-n tables they do want in the select_only argument.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.