Coder Social home page Coder Social logo

tidy-uci-har's Introduction

tidy-uci-har

Running the script

By default, the script assumes the files are available in a folder called UCI HAR Dataset in the current working directory. If your files are on a different path, you need to modify the directory variable right at the top of the file. No other configuration is necessary in order to run the script. By default, the script saves its output to tidy UCI HAR Dataset.txt in the current working directory. If you want it to be saved at a different location, change the line right at the end of the file.

Process

The script proceeds in the following fashion

  1. Load training data
  2. Load testing data
  3. Merge training and testing data together
  4. Set reasonable column names
  5. Read in the feature names
  6. Keep only the features which represent the mean of some measurement and change the column names to accurately represent the features
  7. Read activity labels and replace the numerical representation with a human readable one
  8. Average all measurements by user and activity
  9. Save the output to a file

Codebook

  • Subject is a number between 1 and 30 which represents the ID of the person who measurements are noted in the row
  • Activity is a categorical variable taking on six values which represents the activity the subject was doing when the measurements were taken
  • The rest of the column are normalized sensor values between -1 and +1 averaged across all the subject-activity measurements

tidy-uci-har's People

Contributors

woodsy-sounding-wilful-sapwood 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.