GithubHelp home page GithubHelp logo

fairywang9 / automated-data-preprocessing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mdkearns/automated-data-preprocessing

0.0 1.0 0.0 453 KB

A command-line utility program for automating the trivial, frequently occurring data preparation tasks: missing value interpolation, outlier removal, and encoding categorical variables.

License: MIT License

Python 100.00%

automated-data-preprocessing's Introduction

Automated Data Preprocessing

A command-line utility program for automating the trivial, frequently occurring data preparation tasks: missing value interpolation, outlier removal, and encoding categorical variables.

  • Identify missing values in the data set and replace them with the sentinel NaN value.
  • Interpolate missing values using mean for continuous features, mode for discrete features.
  • Remove outliers on the assumption that the distribution of the field values follow a normal distribution.
  • Encode categorical features using a one-hot encoding schema.

Getting Started

For a copy of the command-line utility program, simply clone the repository by running:

git clone https://github.com/mdkearns/automated-data-preprocessing

inside of the directory where you would like to store the program.

Prerequisites

This program relies on having the NumPy and Pandas Python packages. You can use pip to install the prerequisites for this program as follows:

pip install -r requirements.txt

Running

You can use the program by running

python make_clean.py [options] path/to/your/data

Running

python make_clean.py --help

has the output

usage: make_clean.py [-h] [-a] [-c] [-i] [-m] [-o] [-v] filePath

The make_clean command line utility program automatically performs common data
preprocessing tasks on your uncleaned data sets.

positional arguments:
  filePath           Path to uncleaned data file

optional arguments:
  -h, --help         show this help message and exit
  -a, --all          all
  -c, --categorical  file contains categorical data
  -i, --interpolate  interpolate missing values
  -m, --missing      file is missing field names
  -o, --outliers     outlier detection and removal
  -v, --version      show program's version number and exit

Versioning

We use SemVer for versioning.

Authors

  • Matthew D. Kearns - Initial work - mdkearns

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgements

Thanks to PurpleBooth for the gist providing a helpful README.md template. If you like the template and would like to use it for your project, it can be found here.

automated-data-preprocessing's People

Contributors

mdkearns avatar

Watchers

 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.