Skip to content

dylanebert/nbc

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
.vs
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

New Brown Corpus

This repository provides data and code to use the New Brown Corpus dataset. To view this dataset online, visit https://lunar.cs.brown.edu/nbc

Dependencies

  • numpy
  • pandas
  • pickle
  • tqdm
  • argparse

Download

Usage

  • Import the NBC class
import sys  
sys.path.append('path/to/nbc_parent_dir')  
from nbc.nbc import NBC
  • Create argparse arguments to construct an NBC object.
import argparse
parser = argparse.ArgumentParser()
NBC.add_args(parser)
args = parser.parse_args([
  '--features', 'posX:LeftHand', 'posY:RightHand' posZ:RightHand'
])
dataset = NBC(args)
  • Access dataset properties/methods as needed. For example, to access train/test feature matrices:
train_x = np.vstack(list(dataset.features['train'].values()))
test_x = np.vstack(list(dataset.features['test'].values()))

See nbc.py for available properties, methods, and arguments.

Notes

  • The dataset will take a while to load for each new subsampling/dynamic_only argument configuration. However, temporary files will be stored in tmp/ to allow faster loading.
  • Examples using the image data currently aren't available. However, image data follows the format {session_name}/{step_number}.png, and corresponds one-to-one to the spatial data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published