Git Product home page Git Product logo

uci-har's Introduction

uci-har

UCI Human Activity Recognition dataset analysis

UCI's Machine Learning Repository maintains a collection of datasets available to the machine learning community for analysis and research.

As a starting point for the use of data wrangling functions in R, the Johns Hopkins' Getting and Cleaning Data course offered on Coursera starts off with an assignment to perform various data table formatting, merging and summarizing functions on the [UCI Human Activity Recognition Using Smartphones Data Set] (http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones).

Assignment
  1. Create an R script named run_analysis.R that performs the steps below
  2. Merges the x_, y_ and subject_ data files that contain, respectively, the observations, the activities being recorded and the individual user/subject identifier
  3. Merges the train and test datasets each of which contain a set of x_, y_ and subject_ data files
  4. Assigns the appropriate column headers to all imported files
  5. Matches up the activity descriptions with the activity numbers used in the y_ data file
  6. Of the 561 available columns, extract only the ones that contain mean() or std() in the column name
  7. Tidy up the dataset, i.e. normalize as much as possible and
  8. Create another smaller dataset with the average measurement when grouped by the subject identifier, the activity and the measured variable.

Finally, the run_analysis.R file, the datasets and a Readme file all go up on a github repository, thusly.

Solution Files
  • run_analysis.R
  • README.md
  • CodeBook.md describing the variables, data and transformations used to arrive at the final solutions
  • Solution dataset #1 in long format (normalized) - HAR_tidy_dataset.txt
  • Solution dataset #2 with summary by subject, activity and measurement - HAR_summary.txt
  • \data\UCI HAR dataset\ with all the source files

uci-har's People

Contributors

aannasw avatar

Watchers

James Cloos 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.