ARLO Adapt
|
This class wraps the Arlo SVM model builder and applier, and provides access to the exposed properties. More...
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 |
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.
arlo.SVMModelRunner.SVMModelRunner | ( | ) |
the runner will load the dataflow from the resource fork of the jar file wrapping all required data.
HashMap<String, HashMap<String, Object> > arlo.SVMModelRunner.execute | ( | String | name, |
OutputStream | os | ||
) | throws Exception |
this method will execute the dataflow.
name | a name for the flow. |
os | the output stream to send logging to. |
Exception |
String arlo.SVMModelRunner.getAccount | ( | ) |
int arlo.SVMModelRunner.getCalledTagSet | ( | ) |
double arlo.SVMModelRunner.getComplexityConstant | ( | ) |
int arlo.SVMModelRunner.getFramesPerExample | ( | ) |
int arlo.SVMModelRunner.getFramesPerSecond | ( | ) |
int arlo.SVMModelRunner.getFrequencyBands | ( | ) |
String arlo.SVMModelRunner.getHost | ( | ) |
int arlo.SVMModelRunner.getLabelTagSet | ( | ) |
String arlo.SVMModelRunner.getPassword | ( | ) |
int arlo.SVMModelRunner.getPort | ( | ) |
|
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.
args |
void arlo.SVMModelRunner.setAccount | ( | String | account | ) |
account | the account to set |
void arlo.SVMModelRunner.setCalledTagSet | ( | int | calledTagSet | ) |
calledTagSet | the calledTagSet to set |
void arlo.SVMModelRunner.setComplexityConstant | ( | double | complexityConstant | ) |
complexityConstant | the complexityConstant to set |
void arlo.SVMModelRunner.setDampingFactor | ( | double | damping | ) |
void arlo.SVMModelRunner.setFramesPerExample | ( | int | framesPerExample | ) |
framesPerExample | the framesPerExample to set |
void arlo.SVMModelRunner.setFramesPerSecond | ( | int | framesPerSecond | ) |
framesPerSecond | the framesPerSecond to set |
void arlo.SVMModelRunner.setFrequencyBands | ( | int | frequencyBands | ) |
frequencyBands | the frequencyBands to set |
void arlo.SVMModelRunner.setHost | ( | String | host | ) |
host | the host to set |
void arlo.SVMModelRunner.setLabelTagSet | ( | int | labelTagSet | ) |
labelTagSet | the labelTagSet to set |
void arlo.SVMModelRunner.setMaxFrequency | ( | int | mxF | ) |
void arlo.SVMModelRunner.setMinFrequency | ( | int | mF | ) |
void arlo.SVMModelRunner.setPassword | ( | String | password | ) |
password | the password to set |
void arlo.SVMModelRunner.setPort | ( | int | port | ) |
port | the port to set |
|
private |
the user account.
|
private |
the name of the data generator to get the application data set.
|
private |
defines the machine tagged data.
|
private |
the complexity constant.
|
private |
|
private |
the dataflow.
|
private |
the name of the label data generator component.
|
private |
number of frames per example.
|
private |
number of frames per second.
|
private |
the frequency bands.
|
private |
the host name.
|
private |
the name of the label data generator component.
|
private |
This tag set provides label data against the example project media files.
|
private |
|
private |
|
private |
the name of the label data generator component.
|
private |
the password.
|
private |
the port.
|
private |
the name of the label data generator component.