Two-Level Behavior Classification


[Up] [Top]

Documentation for package ‘TLBC’ version 1.0

Help Pages

TLBC-package Two-Level Behavior Classification
alignStart Function to align start of a window
annotationsToLabels Function to convert bout-level annotations to instance-level labels
calcPerformance Function to calculate performance of a classification model
calcPerformanceFromLabels Function to calculate performance of a classification model
classify Function to classify accelerometer and/or GPS data
clearFiles Clear files
computeEmissionProbs Compute emission probabilities
computeOneAccFeat Compute one acceleration feature
computeOneGPSFeat Compute one GPS feature
computePriorProbs Compute prior probabilities
computeTransProbs Compute transition probabilities
distance Distance
extractAccelerometerFeatures Extract accelerometer features
extractAccFeatsFile Extract accelerometer features from a file
extractFeatsPALMSDir Extract GPS features from a PALMS directory
extractFeatsPALMSOneFile Extract GPS features from a PALMS file
extractLabelsDir Extract labels from a directory
extractLabelsSingleFile Extract labels from a directory
getDateFmt Get date format
hmm Hidden Markov model
isFeatureDirectory Is feature directory?
isInstanceFormat Is instance format?
loadData Load data
loadFeatures Load features
loadLabels Load labels
loadModel Load model
loadPredictions Load predictions
loadPredictionsAndLabels Load predictions and labels
looXval Function to perform leave-one-out cross-validation
looXvalFromFeats Function to perform leave-one-out cross-validation
rf Random Forest
senseCamLabels SenseCam Labels
senseCamLabelsFile SenseCam Labels
sensorsToFeatures Function to extract featurese from raw sensor data
stratSample Stratified sample
testAllDir Function to classify accelerometer and/or GPS data
testHMM Test a hidden Markov model
testRF Test a random forest classifier
testTwoRFs Test two random forest classifiers
TLBC Two-Level Behavior Classification
trainFromFeatures Function to train a two-level model from accelerometer and/or GPS data
trainHMM Train a hidden Markov model
trainModel Function to train a two-level model from accelerometer and/or GPS data
trainRF Train a random forest classifier
winSize Window Size
writePredictions Write predictions to a file