{ "metadata": { "name": "", "signature": "sha256:aa98e782994859300c8acae4ec372e672d762baddbad1b1223d0913df3122857" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook is used to interactively choose the best parameters for identifying the gait landmarks in each trial." ] }, { "cell_type": "code", "collapsed": false, "input": [ "import sys\n", "sys.path.append('..')" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 1 }, { "cell_type": "code", "collapsed": false, "input": [ "from IPython.html.widgets import interactive\n", "from IPython.display import display\n", "from IPython.core.pylabtools import figsize" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 2 }, { "cell_type": "code", "collapsed": false, "input": [ "from gaitanalysis.gait import WalkingData" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 3 }, { "cell_type": "code", "collapsed": false, "input": [ "from src import utils" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 4 }, { "cell_type": "code", "collapsed": false, "input": [ "%matplotlib inline" ], "language": "python", "metadata": {}, "outputs": [], "prompt_number": 5 }, { "cell_type": "code", "collapsed": false, "input": [ "trial_directory = utils.trial_data_dir()" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Trials data directory is set to /home/moorepants/Data/human-gait/gait-control-identification\n" ] } ], "prompt_number": 6 }, { "cell_type": "code", "collapsed": false, "input": [ "utils.generate_meta_data_table(trial_directory).sort('id').head()" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "
\n", " | datetime | \n", "id | \n", "nominal-speed | \n", "notes | \n", "subject-id | \n", "
---|---|---|---|---|---|
72 | \n", "2013-12-03 05:06:00 | \n", "1 | \n", "NaN | \n", "This is a trial that Obinna collected for his ... | \n", "1 | \n", "
20 | \n", "2013-10-22 | \n", "3 | \n", "1.2 | \n", "This is an unloaded trial (no subject) of the ... | \n", "0 | \n", "
35 | \n", "2013-10-22 | \n", "4 | \n", "1.2 | \n", "This is an unloaded trial (no subject) of the ... | \n", "0 | \n", "
44 | \n", "2013-10-22 | \n", "5 | \n", "1.2 | \n", "This is an unloaded trial (no subject) of the ... | \n", "0 | \n", "
27 | \n", "2013-10-22 | \n", "6 | \n", "1.2 | \n", "This is the first attempt at the 10 minute pro... | \n", "1 | \n", "