ARLO Adapt
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
arlo.SVMModelRunner Class Reference

This class wraps the Arlo SVM model builder and applier, and provides access to the exposed properties. More...

Collaboration diagram for arlo.SVMModelRunner:
Collaboration graph
[legend]

Public Member Functions

 SVMModelRunner ()
 the runner will load the dataflow from the resource fork of the jar file wrapping all required data. More...
 
int getFramesPerSecond ()
 
void setFramesPerSecond (int framesPerSecond)
 
int getFramesPerExample ()
 
void setFramesPerExample (int framesPerExample)
 
void setDampingFactor (double damping)
 
void setMinFrequency (int mF)
 
void setMaxFrequency (int mxF)
 
int getFrequencyBands ()
 
void setFrequencyBands (int frequencyBands)
 
double getComplexityConstant ()
 
void setComplexityConstant (double complexityConstant)
 
String getAccount ()
 
void setAccount (String account)
 
String getPassword ()
 
void setPassword (String password)
 
String getHost ()
 
void setHost (String host)
 
int getPort ()
 
void setPort (int port)
 
int getLabelTagSet ()
 
void setLabelTagSet (int labelTagSet)
 
int getCalledTagSet ()
 
void setCalledTagSet (int calledTagSet)
 
HashMap< String, HashMap< String, Object > > execute (String name, OutputStream os) throws Exception
 this method will execute the dataflow. More...
 

Static Public Member Functions

static void main (String[] args)
 Test and exemplify the use of this class. More...
 

Private Attributes

final String LABEL_DATA_GEN = "arlo-label-data-generator/0"
 the name of the label data generator component. More...
 
final String APPLY_DATA_GEN = "arlo-data-generator/0"
 the name of the data generator to get the application data set. More...
 
final String NFOLD_SVM_MODEL_PRODUCER = "weka-svm-producer/0"
 the name of the label data generator component. More...
 
final String FINAL_SVM_MODEL_PRODUCER = "weka-svm-producer/2"
 the name of the label data generator component. More...
 
final String TAG_WRITER = "arlo-tag-writer/0"
 the name of the label data generator component. More...
 
BasicDataflow df
 the dataflow. More...
 
int calledTagSet
 defines the machine tagged data. More...
 
int labelTagSet
 This tag set provides label data against the example project media files. More...
 
int framesPerSecond = 1
 number of frames per second. More...
 
int framesPerExample = 1
 number of frames per example. More...
 
int frequencyBands = 256
 the frequency bands. More...
 
double complexityConstant = 1.0
 the complexity constant. More...
 
String account = ""
 the user account. More...
 
String password = ""
 the password. More...
 
String host = "live.arloproject.com"
 the host name. More...
 
int port = 81
 the port. More...
 
double dampingFactor = 0.5D
 
int minFrequency = 600
 
int maxFrequency = 5000
 

Detailed Description

This class wraps the Arlo SVM model builder and applier, and provides access to the exposed properties.

There is also a convenient execute method will run the workflow, and return when done. This method is provided an input stream for logging, or null for no output.

Author
redman

Constructor & Destructor Documentation

arlo.SVMModelRunner.SVMModelRunner ( )

the runner will load the dataflow from the resource fork of the jar file wrapping all required data.

Member Function Documentation

HashMap<String, HashMap<String, Object> > arlo.SVMModelRunner.execute ( String  name,
OutputStream  os 
) throws Exception

this method will execute the dataflow.

Parameters
namea name for the flow.
osthe output stream to send logging to.
Returns
a list of results each entry keyed on module name (sort of), containing a list of named results.
Exceptions
Exception
String arlo.SVMModelRunner.getAccount ( )
Returns
the account
int arlo.SVMModelRunner.getCalledTagSet ( )
Returns
the calledTagSet
double arlo.SVMModelRunner.getComplexityConstant ( )
Returns
the complexityConstant
int arlo.SVMModelRunner.getFramesPerExample ( )
Returns
the framesPerExample
int arlo.SVMModelRunner.getFramesPerSecond ( )
Returns
the framesPerSecond
int arlo.SVMModelRunner.getFrequencyBands ( )
Returns
the frequencyBands
String arlo.SVMModelRunner.getHost ( )
Returns
the host
int arlo.SVMModelRunner.getLabelTagSet ( )
Returns
the labelTagSet
String arlo.SVMModelRunner.getPassword ( )
Returns
the password
int arlo.SVMModelRunner.getPort ( )
Returns
the port
static void arlo.SVMModelRunner.main ( String []  args)
static

Test and exemplify the use of this class.

For our testing, the TagSet id for the tags used to provide labeled data is 863. The tag set we will produce with machine labeling is tagset 876, in project PS-2kSubset with id 363.

Parameters
args
void arlo.SVMModelRunner.setAccount ( String  account)
Parameters
accountthe account to set
void arlo.SVMModelRunner.setCalledTagSet ( int  calledTagSet)
Parameters
calledTagSetthe calledTagSet to set
void arlo.SVMModelRunner.setComplexityConstant ( double  complexityConstant)
Parameters
complexityConstantthe complexityConstant to set
void arlo.SVMModelRunner.setDampingFactor ( double  damping)
void arlo.SVMModelRunner.setFramesPerExample ( int  framesPerExample)
Parameters
framesPerExamplethe framesPerExample to set
void arlo.SVMModelRunner.setFramesPerSecond ( int  framesPerSecond)
Parameters
framesPerSecondthe framesPerSecond to set
void arlo.SVMModelRunner.setFrequencyBands ( int  frequencyBands)
Parameters
frequencyBandsthe frequencyBands to set
void arlo.SVMModelRunner.setHost ( String  host)
Parameters
hostthe host to set
void arlo.SVMModelRunner.setLabelTagSet ( int  labelTagSet)
Parameters
labelTagSetthe labelTagSet to set
void arlo.SVMModelRunner.setMaxFrequency ( int  mxF)
void arlo.SVMModelRunner.setMinFrequency ( int  mF)
void arlo.SVMModelRunner.setPassword ( String  password)
Parameters
passwordthe password to set
void arlo.SVMModelRunner.setPort ( int  port)
Parameters
portthe port to set

Member Data Documentation

String arlo.SVMModelRunner.account = ""
private

the user account.

final String arlo.SVMModelRunner.APPLY_DATA_GEN = "arlo-data-generator/0"
private

the name of the data generator to get the application data set.

int arlo.SVMModelRunner.calledTagSet
private

defines the machine tagged data.

double arlo.SVMModelRunner.complexityConstant = 1.0
private

the complexity constant.

double arlo.SVMModelRunner.dampingFactor = 0.5D
private
BasicDataflow arlo.SVMModelRunner.df
private

the dataflow.

final String arlo.SVMModelRunner.FINAL_SVM_MODEL_PRODUCER = "weka-svm-producer/2"
private

the name of the label data generator component.

int arlo.SVMModelRunner.framesPerExample = 1
private

number of frames per example.

int arlo.SVMModelRunner.framesPerSecond = 1
private

number of frames per second.

int arlo.SVMModelRunner.frequencyBands = 256
private

the frequency bands.

String arlo.SVMModelRunner.host = "live.arloproject.com"
private

the host name.

final String arlo.SVMModelRunner.LABEL_DATA_GEN = "arlo-label-data-generator/0"
private

the name of the label data generator component.

int arlo.SVMModelRunner.labelTagSet
private

This tag set provides label data against the example project media files.

int arlo.SVMModelRunner.maxFrequency = 5000
private
int arlo.SVMModelRunner.minFrequency = 600
private
final String arlo.SVMModelRunner.NFOLD_SVM_MODEL_PRODUCER = "weka-svm-producer/0"
private

the name of the label data generator component.

String arlo.SVMModelRunner.password = ""
private

the password.

int arlo.SVMModelRunner.port = 81
private

the port.

final String arlo.SVMModelRunner.TAG_WRITER = "arlo-tag-writer/0"
private

the name of the label data generator component.


The documentation for this class was generated from the following file: