http://people.cs.uchicago.edu/~dinoj/matlab/

 

 

 

Some Matlab Code

This collection of Matlab code is brought to you by the phrases "caveat emptor" and "quid quid latine dictum sit, altum videtur", and by the number 404.

Wrapper Code for LIBSVM

batchtest.m : Runs batches of train+test tasks using LIBSVM (Chang & Lin 2000), including model selection for the RBF kernel. Uses svmlwrite.m (by Anton Schwaighofer) and getcm.m. If you ask for class probability estimates, you will also need readprobest.m.

nfolds.m : Combines makefolds.m and batchtest.m

readprobest.m : Reads class probability estimates output when you use the "-b" option with LIBSVM.

splitbysomething.m : Like batchtest, but allows you to create different classifiers for different partitions of all the data. It requires the function ispartition.m.

General Machine Learning

makefolds.m : creates indices of train and test sets for each of n folds for deterministic cross-validation.

makesplits.m : partitions a vector by its values. makefolds could be made shorter if it made calls to makesplits, but I'm not going to change that (now).

getcm.m : Gets confusion matrices, accuracy, precision, recall, F-score, from actual and predicted labels.

precrec.m : Produces precision-recall and ROC curves given true labels and real-valued classifier output. Only for binary classifiers. Uses getcm.

choosebestscore.m : Chooses highest score (given precomputed scores) of elements in sequences.

revhmm.m : Does Viterbi decoding given posteriors.

Manifold Stuff

KADRE.zip : Kick-ass dimensionality reduction (versions of Laplacian Eigenmaps and Isomap that use the Cover Tree algorithm to create the nearest neighbor graph... covertree code only works on linux)

Speech Stuff

makepitchtier.m : creates PitchTier file (for Praat) given measurement times and values.

Visualization / Partiview

Ndaona : package for producing partiview files for interactive 3d or 3d+time models

partiviewangles.m Calculates coordinates Rx and Ry required by Partiview to position a camera. (Very useful.... but use tfm.pl instead.)

Sequence Data

For a description of the SEQ (and FLAT) formats that I use to store data for sequential classification, see my Sequential Data / Classification page.

seqread.m : reads from a file with SEQ data to a SEQ Matlab structure.

seqread.m : writes to a file with SEQ data from a SEQ Matlab structure.

seq2flat : converts from a SEQ Matlab structure to a FLAT Matlab structure.

seqkeepcols.m : converts from a SEQ Matlab structure to another SEQ Matlab structure but with only selected columns.

Tone Recognition

For a description of the PWS (Phrase-Word-Syllable) format that I use to store data for tone recognition, see my Tone Recognition page.

pws2textgrid.m : creates Praat-formatted TextGrid files, with three tiers for Phrase, Word, and Syllable, of a PWS structure (or a cell array thereof).

textgrid2pws.m : reads Praat-formatted TextGrid files into a PWS structure. Good for replacing automatic alignments with manually corrected alignments. (Remember to press SHIFT while doing the manual alignment so that boundaries across different tiers remain aligned!)

'Matlab > Source Code' 카테고리의 다른 글

Top 10 most popular MATLAB & Simulink file downloads from last year  (0) 2017.03.18
random forest using matlab  (0) 2017.03.12
plot standard deviation and mean  (0) 2017.02.08
matlab dist function  (0) 2017.01.17
matlab de2bi source code  (0) 2017.01.17
Posted by uniqueone
,