GithubHelp home page GithubHelp logo

fagan2888 / d3m-online-retail-dataset Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alteryx/d3m-online-retail-dataset

0.0 0.0 0.0 7.16 MB

Convert D3M raw dataset to D3M clean dataset with Featuretools

Python 100.00%

d3m-online-retail-dataset's Introduction

About

The python script dfs_d3m.py takes in a multitable dataset and outputs a feature matrix and D3M data schema.

How to use

  1. Install python 2.7
  2. Install python requirements Featuretools and scikit-learn
   pip install sklearn
   pip install featuretools
  1. (Optional) Replace the LABELS_PATH in dfs_d3m.py to point to "data/purchase_sum_4_weeks_first_100.csv" to speed up run time (creates smaller dataset)
  2. Run
python dfs_d3m.py input OUTPUT_PATH

(OUTPUT_PATH is the directory where the clean dataset will be created)

The outputs are:

  • data/dataSchema.json
  • data/trainData.csv
  • data/trainTargets.csv
  • data/testData.csv
  • data/testTargets.csv

Coming soon

  1. This sample is currently hard coded to deal with the online retail data set. In the future, it will be able to take in an arbitrary data set.
  2. Similarly, the code currently splits the data into test and train (because the online retail is all one set). It will in the future take in separate test data and also transform that.

Reference

General Links

Wiki Links

d3m-online-retail-dataset's People

Contributors

rwedge avatar kmax12 avatar seth-rothschild avatar

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.