public abstract class WekaUtility
extends java.lang.Object
Constructor and Description |
---|
WekaUtility() |
Modifier and Type | Method and Description |
---|---|
static Citation |
convertToCitation(weka.core.TechnicalInformation techInfo,
java.lang.Class component)
Convert a Weka TechnicalInformation object to a Magpie Citation object.
|
static java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,Citation>> |
getWekaObjectCitations(java.lang.Object wekaClass,
java.lang.Class component)
Generate citations from a Weka object
|
static void |
importWekaHome()
Load in packages that were installed with the package manager.
|
static weka.classifiers.AbstractClassifier |
instantiateWekaModel(java.lang.String model_type,
java.lang.String[] options)
Instantiate an AbstractClassifier object from Weka.
|
public static weka.classifiers.AbstractClassifier instantiateWekaModel(java.lang.String model_type, java.lang.String[] options) throws java.lang.Exception
model_type
- Name of classifiers (i.e. trees.REPTree)options
- Any options for model (can be null)java.lang.Exception
public static void importWekaHome()
public static Citation convertToCitation(weka.core.TechnicalInformation techInfo, java.lang.Class component)
techInfo
- Technical information from Weka classcomponent
- Component this citation is associated withpublic static java.util.List<org.apache.commons.lang3.tuple.Pair<java.lang.String,Citation>> getWekaObjectCitations(java.lang.Object wekaClass, java.lang.Class component)
wekaClass
- Class to be checkedcomponent
- Magpie component which these citations are for