|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.webservice.SimpleWekaService
public class SimpleWekaService
Class that implements the weka web service.
| Field Summary | |
|---|---|
protected LRUCache<String,Classifier> |
m_Classifiers
the cache for the classifier models. |
protected LRUCache<String,weka.clusterers.Clusterer> |
m_Clusterers
the cache for the clusterer models. |
protected WekaServiceWS |
m_Owner
web service object |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
SimpleWekaService()
Default Constructor. |
|
| Method Summary | |
|---|---|
CrossValidateResponseObject |
crossValidateClassifier(Dataset dataset,
int seed,
int folds,
String classifier)
Cross-validates a classifier on a dataset. |
DisplayClassifierResponseObject |
displayClassifier(String model)
Returns the string representation of the specified classifier. |
DisplayClustererResponseObject |
displayClusterer(String model)
Returns the string representation of the specified clusterer. |
protected void |
displayString(Dataset dataset)
For outputting the dataset in debug mode. |
WekaServiceWS |
getOwner()
Returns the current owner of this webservice. |
String |
globalInfo()
Returns a string for the GUI that describes this object. |
List<String> |
listClassifiers()
Returns a list of all classifier models currently stored on the server. |
List<String> |
listClusterers()
Returns a list of all clusterer models currently stored on the server. |
OptimizeReturnObject |
optimizeClassifierMultiSearch(String classifier,
List<String> searchParameters,
Dataset dataset,
String evaluation)
Optimizes the parameters of a base classifier using MultiSearch. |
PredictClassifierResponseObject |
predictClassifier(Dataset dataset,
String modelName)
Makes predictions using a previously generated model. |
PredictClustererResponseObject |
predictClusterer(Dataset dataset,
String modelName)
Uses a previously built clusterer model to predict clusters for the provided data. |
void |
setOwner(WekaServiceWS value)
Sets the owner of this webservice. |
TestClassifierResponseObject |
testClassifier(Dataset dataset,
String modelName)
Tests a previously trained model. |
TrainClassifierResponseObject |
trainClassifier(Dataset dataset,
String classifier,
String name)
Performs training of a classifier and stores it in the model cache. |
TrainClustererResponseObject |
trainClusterer(Dataset dataset,
String clusterer,
String modelName)
Trains a cluster algorithm. |
TransformResponseObject |
transform(Dataset dataset,
String actorName)
Transforms a dataset using a global actor on the server. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected WekaServiceWS m_Owner
protected LRUCache<String,Classifier> m_Classifiers
protected LRUCache<String,weka.clusterers.Clusterer> m_Clusterers
| Constructor Detail |
|---|
public SimpleWekaService()
setOwner(WekaServiceWS) method.
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void setOwner(WekaServiceWS value)
setOwner in interface OwnedByWekaServiceWSvalue - the ownerpublic WekaServiceWS getOwner()
getOwner in interface OwnedByWekaServiceWS
public TrainClassifierResponseObject trainClassifier(Dataset dataset,
String classifier,
String name)
trainClassifier in interface WekaServicedataset - the dataset to use for trainingclassifier - the classifier setupname - the identifier for the model
public TestClassifierResponseObject testClassifier(Dataset dataset,
String modelName)
testClassifier in interface WekaServicedataset - the dataset to use for testingmodelName - the name of the model to use
public CrossValidateResponseObject crossValidateClassifier(Dataset dataset,
int seed,
int folds,
String classifier)
crossValidateClassifier in interface WekaServicedataset - the dataset to use for cross-validationseed - the seed for randomizing the datafolds - the number of folds to useclassifier - the classifier setup
public PredictClassifierResponseObject predictClassifier(Dataset dataset,
String modelName)
predictClassifier in interface WekaServicedataset - the data to use for the predictionsmodelName - the model to use
public TransformResponseObject transform(Dataset dataset,
String actorName)
transform in interface WekaServicedataset - the data to transformactorName - the global actor to use
public TrainClustererResponseObject trainClusterer(Dataset dataset,
String clusterer,
String modelName)
trainClusterer in interface WekaServicedataset - the data to useclusterer - the clusterer setup to usemodelName - the name to store the model under
public PredictClustererResponseObject predictClusterer(Dataset dataset,
String modelName)
predictClusterer in interface WekaServicedataset - the data to predict the clusters formodelName - the name of the clusterer to use
public DisplayClassifierResponseObject displayClassifier(String model)
displayClassifier in interface WekaServicemodel - the model name to return the string representation for
public DisplayClustererResponseObject displayClusterer(String model)
displayClusterer in interface WekaServicemodel - the model name to return the string representation for
public List<String> listClassifiers()
listClassifiers in interface WekaServicepublic List<String> listClusterers()
listClusterers in interface WekaService
public OptimizeReturnObject optimizeClassifierMultiSearch(String classifier,
List<String> searchParameters,
Dataset dataset,
String evaluation)
MultiSearch.
optimizeClassifierMultiSearch in interface WekaServiceclassifier - the base classifiersearchParameters - the search parameters for the optimizationdataset - the dataset to evaluate onevaluation - the statistic to use for performance evaluation
protected void displayString(Dataset dataset)
dataset - the dataset to output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||