|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.yale.tools.WekaTools
public class WekaTools
This class contains static methods for converting Weka Instances to Yale ExampleSet and vice versa.
Constructor Summary | |
---|---|
WekaTools()
|
Method Summary | |
---|---|
static void |
addParameterTypes(weka.core.OptionHandler handler,
java.util.List<ParameterType> types,
java.util.List<ParameterType> wekaParameters,
boolean meta,
java.lang.String metaParameter)
Add the parameter type for the options of a Weka option handler. |
private static boolean |
getBooleanDefault(java.lang.String key,
java.lang.String[] options)
Returns the default value for a boolean parameter. |
private static java.lang.String |
getStringDefault(java.lang.String key,
java.lang.String[] options)
Returns the default value for a boolean parameter. |
static java.lang.String[] |
getWekaClasses(java.lang.Class superclass)
|
static java.lang.String[] |
getWekaClasses(java.lang.Class superclass,
java.lang.String[] searchConstraints,
boolean positive)
|
static java.lang.String[] |
getWekaClasses(java.lang.Class superclass,
java.lang.String[] positiveSearchConstraints,
java.lang.String[] negativeSearchConstraints)
|
static java.lang.String[] |
getWekaClasses(java.lang.Class superclass,
java.lang.String seachConstraint,
boolean includeConstraint)
|
static java.util.jar.JarFile |
getWekaJar()
Checks if the user has defined the position of Weka in an environment variable. |
static java.lang.String[] |
getWekaParametersFromList(java.util.List yaleParameters)
Returns the Weka parameters for a Yale parameter list. |
static java.lang.String[] |
getWekaParametersFromTypes(Operator operator,
java.util.List parameterTypes)
Returns all Weka parameters as String array from the given list of parameter types. |
static ParameterType |
guessParameterType(weka.core.Option option,
java.lang.String[] options)
Tries to guess the type of the given option. |
private static java.lang.String |
htmlEscape(java.lang.String toEscape,
java.lang.String what,
java.lang.String by)
|
static void |
registerWekaOperators(java.lang.ClassLoader classLoader,
java.lang.String[] classNames,
java.util.Map<java.lang.String,java.lang.String> deprecationInfos,
java.lang.String operatorClass,
java.lang.String firstDescription,
java.lang.String firstGroup,
java.lang.String icon)
Registers all given Weka operators. |
static void |
registerWekaOperators(java.lang.ClassLoader classLoader,
java.lang.String[] classNames,
java.lang.String operatorClass,
java.lang.String firstDescription,
java.lang.String firstGroup,
java.lang.String icon)
Registers all given Weka operators. |
private static java.lang.String[] |
removeMetaOptions(java.lang.String[] options)
Removes all parameters from the given Weka options which are part of the inner learner of a meta learning scheme. |
static weka.core.Instances |
toWekaInstances(ExampleSet exampleSet,
java.lang.String name,
int taskType)
Creates Weka instances with the given name from the given example set. |
static ExampleSet |
toYaleExampleSet(weka.core.Instances instances)
Invokes toYaleExampleSet(instances, null, DataRowFactory.TYPE_DOUBLE_ARRAY). |
static ExampleSet |
toYaleExampleSet(weka.core.Instances instances,
java.lang.String attributeNamePrefix)
Invokes toYaleExampleSet(instances, attributeNamePrefix, DataRowFactory.TYPE_DOUBLE_ARRAY). |
static ExampleSet |
toYaleExampleSet(weka.core.Instances instances,
java.lang.String attributeNamePrefix,
int datamanagement)
Creates a Yale example set from Weka instances. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WekaTools()
Method Detail |
---|
public static ExampleSet toYaleExampleSet(weka.core.Instances instances)
public static ExampleSet toYaleExampleSet(weka.core.Instances instances, java.lang.String attributeNamePrefix)
public static ExampleSet toYaleExampleSet(weka.core.Instances instances, java.lang.String attributeNamePrefix, int datamanagement)
attributeNamePrefix
is not null, the given
string prefix plus a number is used as attribute names.
public static weka.core.Instances toWekaInstances(ExampleSet exampleSet, java.lang.String name, int taskType)
public static java.lang.String[] getWekaParametersFromList(java.util.List yaleParameters)
public static java.lang.String[] getWekaParametersFromTypes(Operator operator, java.util.List parameterTypes)
public static ParameterType guessParameterType(weka.core.Option option, java.lang.String[] options)
private static boolean getBooleanDefault(java.lang.String key, java.lang.String[] options)
private static java.lang.String getStringDefault(java.lang.String key, java.lang.String[] options)
private static java.lang.String[] removeMetaOptions(java.lang.String[] options)
public static void addParameterTypes(weka.core.OptionHandler handler, java.util.List<ParameterType> types, java.util.List<ParameterType> wekaParameters, boolean meta, java.lang.String metaParameter)
public static java.util.jar.JarFile getWekaJar() throws java.io.IOException
java.io.IOException
public static java.lang.String[] getWekaClasses(java.lang.Class superclass)
public static java.lang.String[] getWekaClasses(java.lang.Class superclass, java.lang.String seachConstraint, boolean includeConstraint)
public static java.lang.String[] getWekaClasses(java.lang.Class superclass, java.lang.String[] searchConstraints, boolean positive)
public static java.lang.String[] getWekaClasses(java.lang.Class superclass, java.lang.String[] positiveSearchConstraints, java.lang.String[] negativeSearchConstraints)
public static void registerWekaOperators(java.lang.ClassLoader classLoader, java.lang.String[] classNames, java.lang.String operatorClass, java.lang.String firstDescription, java.lang.String firstGroup, java.lang.String icon)
public static void registerWekaOperators(java.lang.ClassLoader classLoader, java.lang.String[] classNames, java.util.Map<java.lang.String,java.lang.String> deprecationInfos, java.lang.String operatorClass, java.lang.String firstDescription, java.lang.String firstGroup, java.lang.String icon)
private static java.lang.String htmlEscape(java.lang.String toEscape, java.lang.String what, java.lang.String by)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |