| Modifier and Type | Method and Description |
|---|---|
Attribute |
Item.getAttribute()
Get the attribute that this item originates from.
|
| Constructor and Description |
|---|
BinaryItem(Attribute att,
int valueIndex)
Constructor.
|
Item(Attribute att) |
NominalItem(Attribute att,
int valueIndex)
Constructs a new NominalItem.
|
NumericItem(Attribute att,
double splitPoint,
NumericItem.Comparison comp)
Constructs a new
NumericItem |
| Modifier and Type | Method and Description |
|---|---|
static double |
RegressionAnalysis.calculateSSR(Instances data,
Attribute chosen,
double slope,
double intercept)
Returns the sum of squared residuals of the simple linear regression model:
y = a + bx.
|
static double[] |
RegressionAnalysis.calculateStdErrorOfCoef(Instances data,
Attribute chosen,
double slope,
double intercept,
int df)
Returns the standard errors of slope and intercept for a simple linear
regression model: y = a + bx.
|
| Modifier and Type | Method and Description |
|---|---|
static String[] |
AbstractPMMLProducerHelper.getNameAndValueFromUnsupervisedNominalToBinaryDerivedAttribute(Instances train,
Attribute derived)
Extracts the original attribute name and value from the name of a binary
indicator attribute created by unsupervised NominalToBinary.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
JRip.Antd.getAttr() |
| Modifier and Type | Method and Description |
|---|---|
weka.classifiers.rules.OneR.OneRRule |
OneR.newNominalRule(Attribute attr,
Instances data,
int[] missingValueCounts)
Create a rule branching on this nominal attribute.
|
weka.classifiers.rules.OneR.OneRRule |
OneR.newNumericRule(Attribute attr,
Instances data,
int[] missingValueCounts)
Create a rule branching on this numeric attribute
|
weka.classifiers.rules.OneR.OneRRule |
OneR.newRule(Attribute attr,
Instances data)
Create a rule branching on this attribute.
|
String |
JRip.RipperRule.toString(Attribute classAttr)
Prints this rule
|
| Constructor and Description |
|---|
JRip.Antd(Attribute a)
Constructor
|
JRip.NominalAntd(Attribute a)
Constructor
|
JRip.NumericAntd(Attribute a)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
NBNodeAdaptive.getDistribution(Instance inst,
Attribute classAtt) |
double[] |
NBNode.getDistribution(Instance inst,
Attribute classAtt) |
double[] |
HNode.getDistribution(Instance inst,
Attribute classAtt)
Return a class probability distribution computed from the frequency counts
at this node
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
Instances.attribute(int index)
Returns an attribute.
|
Attribute |
Instance.attribute(int index)
Returns the attribute with the given index.
|
Attribute |
AbstractInstance.attribute(int index)
Returns the attribute with the given index.
|
Attribute |
Instances.attribute(String name)
Returns an attribute given its name.
|
Attribute |
Instance.attributeSparse(int indexOfIndex)
Returns the attribute with the given index in the sparse representation.
|
Attribute |
AbstractInstance.attributeSparse(int indexOfIndex)
Returns the attribute with the given index in the sparse representation.
|
Attribute |
Instances.classAttribute()
Returns the class attribute.
|
Attribute |
Instance.classAttribute()
Returns class attribute.
|
Attribute |
AbstractInstance.classAttribute()
Returns class attribute.
|
Attribute |
Attribute.copy(String newName)
Produces a shallow copy of this attribute with a new name.
|
| Modifier and Type | Method and Description |
|---|---|
Enumeration<Attribute> |
Instances.enumerateAttributes()
Returns an enumeration of all the attributes.
|
Enumeration<Attribute> |
Instance.enumerateAttributes()
Returns an enumeration of all the attributes.
|
Enumeration<Attribute> |
AbstractInstance.enumerateAttributes()
Returns an enumeration of all the attributes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Attribute.addStringValue(Attribute src,
int index)
Adds a string value to the list of valid strings for attributes of type
STRING and returns the index of the string.
|
void |
Instances.deleteWithMissing(Attribute att)
Removes all instances with missing values for a particular attribute from
the dataset.
|
void |
Instances.insertAttributeAt(Attribute att,
int position)
Inserts an attribute at the given position (0 to numAttributes())
and sets all values to be missing.
|
boolean |
Instance.isMissing(Attribute att)
Tests if a specific value is "missing".
|
boolean |
AbstractInstance.isMissing(Attribute att)
Tests if a specific value is "missing".
|
double |
Instances.kthSmallestValue(Attribute att,
int k)
Returns the kth-smallest attribute value of a numeric attribute.
|
double |
Instances.meanOrMode(Attribute att)
Returns the mean (mode) for a numeric (nominal) attribute as a
floating-point value.
|
int |
Instances.numDistinctValues(Attribute att)
Returns the number of distinct values of a given attribute.
|
Instances |
Instance.relationalValue(Attribute att)
Returns the relational value of a relational attribute.
|
Instances |
AbstractInstance.relationalValue(Attribute att)
Returns the relational value of a relational attribute.
|
void |
Instances.renameAttribute(Attribute att,
String name)
Renames an attribute.
|
void |
Instances.renameAttributeValue(Attribute att,
String val,
String name)
Renames the value of a nominal (or string) attribute value.
|
void |
Instances.replaceAttributeAt(Attribute att,
int position)
Replaces the attribute at the given position (0 to
numAttributes()) with the given attribute and sets all its values to
be missing.
|
void |
Instances.setClass(Attribute att)
Sets the class attribute.
|
void |
Instance.setMissing(Attribute att)
Sets a specific value to be "missing".
|
void |
AbstractInstance.setMissing(Attribute att)
Sets a specific value to be "missing".
|
void |
Instance.setValue(Attribute att,
double value)
Sets a specific value in the instance to the given value (internal
floating-point format).
|
void |
AbstractInstance.setValue(Attribute att,
double value)
Sets a specific value in the instance to the given value (internal
floating-point format).
|
void |
Instance.setValue(Attribute att,
String value)
Sets a value of an nominal or string attribute to the given value.
|
void |
AbstractInstance.setValue(Attribute att,
String value)
Sets a value of an nominal or string attribute to the given value.
|
void |
Instances.sort(Attribute att)
Sorts the instances based on an attribute.
|
String |
Instance.stringValue(Attribute att)
Returns the value of a nominal, string, date, or relational attribute for
the instance as a string.
|
String |
AbstractInstance.stringValue(Attribute att)
Returns the value of a nominal, string, date, or relational attribute for
the instance as a string.
|
boolean |
Capabilities.test(Attribute att)
Test the given attribute, whether it can be processed by the handler, given
its capabilities.
|
boolean |
Capabilities.test(Attribute att,
boolean isClass)
Test the given attribute, whether it can be processed by the handler, given
its capabilities.
|
void |
Capabilities.testWithFail(Attribute att)
tests the given attribute by calling the test(Attribute,boolean) method and
throws an exception if the test fails.
|
void |
Capabilities.testWithFail(Attribute att,
boolean isClass)
tests the given attribute by calling the test(Attribute,boolean) method and
throws an exception if the test fails.
|
String |
Instance.toString(Attribute att)
Returns the description of one value of the instance as a string.
|
String |
AbstractInstance.toString(Attribute att)
Returns the description of one value of the instance as a string.
|
String |
Instance.toString(Attribute att,
int afterDecimalPoint)
Returns the description of one value of the instance as a string.
|
String |
AbstractInstance.toString(Attribute att,
int afterDecimalPoint)
Returns the description of one value of the instance as a string.
|
static String |
Attribute.typeToString(Attribute att)
Returns a string representation of the attribute type.
|
static String |
Attribute.typeToStringShort(Attribute att)
Returns a short string representation of the attribute type.
|
double |
Instance.value(Attribute att)
Returns an instance's attribute value in internal format.
|
double |
AbstractInstance.value(Attribute att)
Returns an instance's attribute value in internal format.
|
double |
Instances.variance(Attribute att)
Computes the variance for a numeric attribute.
|
| Constructor and Description |
|---|
Instances(String name,
ArrayList<Attribute> attInfo,
int capacity)
Creates an empty set of instances.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
TargetMetaInfo.getFieldAsAttribute()
Return this field as an Attribute.
|
Attribute |
MiningFieldMetaInfo.getFieldAsAttribute()
Return this mining field as an Attribute.
|
abstract Attribute |
FieldMetaInfo.getFieldAsAttribute()
Return this field as an Attribute.
|
Attribute |
DerivedFieldMetaInfo.getFieldAsAttribute()
Get this derived field as an Attribute.
|
Attribute |
Expression.getFieldDef(String attName)
Return the named attribute from the list of reference fields.
|
abstract Attribute |
Function.getOutputDef()
Get the structure of the result produced by this function.
|
Attribute |
FieldRef.getOutputDef()
Return the structure of the result of applying this Expression
as an Attribute.
|
Attribute |
DefineFunction.getOutputDef()
Get the structure of the result produced by this function.
|
Attribute |
BuiltInString.getOutputDef()
Get the structure of the result produced by this function.
|
Attribute |
BuiltInMath.getOutputDef()
Get the structure of the result produced by this function.
|
Attribute |
BuiltInArithmetic.getOutputDef()
Get the structure of the result produced by this function.
|
| Modifier and Type | Method and Description |
|---|---|
static Expression |
Expression.getExpression(Node container,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs,
weka.core.pmml.TransformationDictionary transDict)
Static factory method that returns a subclass of Expression that
encapsulates the type of expression contained in the Element
supplied.
|
static Expression |
Expression.getExpression(String name,
Node expression,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs,
weka.core.pmml.TransformationDictionary transDict)
Static factory method that returns a subclass of Expression that
encapsulates the type of expression supplied as an argument.
|
void |
NormDiscrete.setFieldDefs(ArrayList<Attribute> fieldDefs)
Set the field definitions for this Expression to use
|
void |
NormContinuous.setFieldDefs(ArrayList<Attribute> fieldDefs)
Set the field definitions for this Expression to use
|
void |
FieldRef.setFieldDefs(ArrayList<Attribute> fieldDefs) |
void |
Expression.setFieldDefs(ArrayList<Attribute> fieldDefs)
Set the field definitions for this Expression to use
|
void |
Discretize.setFieldDefs(ArrayList<Attribute> fieldDefs)
Set the field definitions for this Expression to use
|
void |
DerivedFieldMetaInfo.setFieldDefs(ArrayList<Attribute> fieldDefs)
Upadate the field definitions for this derived field
|
abstract void |
Function.setParameterDefs(ArrayList<Attribute> paramDefs)
Set the structure of the parameters that are expected as input by
this function.
|
void |
DefineFunction.setParameterDefs(ArrayList<Attribute> paramDefs)
Set the structure of the parameters that are expected as input by
this function.
|
void |
BuiltInString.setParameterDefs(ArrayList<Attribute> paramDefs)
Set the structure of the parameters that are expected as input by
this function.
|
void |
BuiltInMath.setParameterDefs(ArrayList<Attribute> paramDefs)
Set the structure of the parameters that are expected as input by
this function.
|
void |
BuiltInArithmetic.setParameterDefs(ArrayList<Attribute> paramDefs)
Set the structure of the parameters that are expected as input by
this function.
|
| Constructor and Description |
|---|
Constant(Element constant,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs)
Construct an new Constant Expression.
|
DerivedFieldMetaInfo(Element derivedField,
ArrayList<Attribute> fieldDefs,
weka.core.pmml.TransformationDictionary transDict) |
Discretize(Element discretize,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs)
Constructs a Discretize Expression
|
Expression(FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs) |
FieldRef(Element fieldRef,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs) |
NormContinuous(Element normCont,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs) |
NormDiscrete(Element normDisc,
FieldMetaInfo.Optype opType,
ArrayList<Attribute> fieldDefs)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
ArffTableModel.getAttributeAt(int columnIndex)
returns the attribute at the given index, can be NULL if not an attribute
column
|
Attribute |
ArffSortedTableModel.getAttributeAt(int columnIndex)
returns the attribute at the given index, can be NULL if not an attribute
column
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
ThresholdDataEvent.getClassAttribute()
Return the class attribute for which the threshold data was generated
for.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CostBenefitAnalysis.setCurveData(PlotData2D curveData,
Attribute origClassAtt)
Set the threshold curve data to use.
|
| Constructor and Description |
|---|
ThresholdDataEvent(Object source,
PlotData2D dataSet,
Attribute classAtt) |
| Modifier and Type | Method and Description |
|---|---|
JMenuItem |
VisualizePlugin.getVisualizeMenuItem(ArrayList<Prediction> preds,
Attribute classAtt)
Get a JMenu or JMenuItem which contain action listeners that perform the
visualization, using some but not necessarily all of the data.
|
Copyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.