Uses of Class
weka.core.Attribute
Package
Description
-
Uses of Attribute in weka.associations
Modifier and TypeMethodDescriptionItem.getAttribute()
Get the attribute that this item originates from.ModifierConstructorDescriptionBinaryItem
(Attribute att, int valueIndex) Constructor.NominalItem
(Attribute att, int valueIndex) Constructs a new NominalItem.NumericItem
(Attribute att, double splitPoint, NumericItem.Comparison comp) Constructs a newNumericItem
-
Uses of Attribute in weka.classifiers.evaluation
Modifier and TypeMethodDescriptionstatic 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. -
Uses of Attribute in weka.classifiers.pmml.producer
Modifier and TypeMethodDescriptionstatic 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. -
Uses of Attribute in weka.classifiers.rules
Modifier and TypeMethodDescriptionweka.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 attributeweka.classifiers.rules.OneR.OneRRule
Create a rule branching on this attribute.Prints this ruleModifierConstructorDescriptionConstructorConstructorConstructor -
Uses of Attribute in weka.classifiers.trees.ht
Modifier and TypeMethodDescriptiondouble[]
HNode.getDistribution
(Instance inst, Attribute classAtt) Return a class probability distribution computed from the frequency counts at this nodedouble[]
NBNode.getDistribution
(Instance inst, Attribute classAtt) double[]
NBNodeAdaptive.getDistribution
(Instance inst, Attribute classAtt) -
Uses of Attribute in weka.core
Modifier and TypeMethodDescriptionAbstractInstance.attribute
(int index) Returns the attribute with the given index.Instance.attribute
(int index) Returns the attribute with the given index.Instances.attribute
(int index) Returns an attribute.Returns an attribute given its name.AbstractInstance.attributeSparse
(int indexOfIndex) Returns the attribute with the given index in the sparse representation.Instance.attributeSparse
(int indexOfIndex) Returns the attribute with the given index in the sparse representation.AbstractInstance.classAttribute()
Returns class attribute.Instance.classAttribute()
Returns class attribute.Instances.classAttribute()
Returns the class attribute.final Attribute
Produces a shallow copy of this attribute with a new name.Modifier and TypeMethodDescriptionAbstractInstance.enumerateAttributes()
Returns an enumeration of all the attributes.Instance.enumerateAttributes()
Returns an enumeration of all the attributes.Instances.enumerateAttributes()
Returns an enumeration of all the attributes.Modifier and TypeMethodDescriptionint
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
Tests if a specific value is "missing".boolean
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.final Instances
AbstractInstance.relationalValue
(Attribute att) Returns the relational value of a relational attribute.Instance.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.setAttributeWeight
(Attribute att, double weight) Sets the weight of an attribute.void
Sets the class attribute.final void
AbstractInstance.setMissing
(Attribute att) Sets a specific value to be "missing".void
Instance.setMissing
(Attribute att) Sets a specific value to be "missing".final void
Sets a specific value in the instance to the given value (internal floating-point format).final void
Sets a value of an nominal or string attribute to the given value.void
Sets a specific value in the instance to the given value (internal floating-point format).void
Sets a value of an nominal or string attribute to the given value.void
Sorts the instances based on an attribute.void
Instances.stableSort
(Attribute att) Sorts the instances based on an attribute, using a stable sort.final String
AbstractInstance.stringValue
(Attribute att) Returns the value of a nominal, string, date, or relational attribute for the instance as a string.Instance.stringValue
(Attribute att) Returns the value of a nominal, string, date, or relational attribute for the instance as a string.boolean
Test the given attribute, whether it can be processed by the handler, given its capabilities.boolean
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.final String
Returns the description of one value of the instance as a string.final String
Returns the description of one value of the instance as a string.Returns the description of one value of the instance as a string.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
Returns an instance's attribute value in internal format.double
Returns an instance's attribute value in internal format.double
Computes the variance for a numeric attribute.ModifierConstructorDescriptionAttributeMetaInfo
(ProtectedProperties metadata, Attribute att) Creates the meta info object based on the given meta data. -
Uses of Attribute in weka.core.pmml
Modifier and TypeMethodDescriptionDerivedFieldMetaInfo.getFieldAsAttribute()
Get this derived field as an Attribute.abstract Attribute
FieldMetaInfo.getFieldAsAttribute()
Return this field as an Attribute.MiningFieldMetaInfo.getFieldAsAttribute()
Return this mining field as an Attribute.TargetMetaInfo.getFieldAsAttribute()
Return this field as an Attribute.Expression.getFieldDef
(String attName) Return the named attribute from the list of reference fields.BuiltInArithmetic.getOutputDef()
Get the structure of the result produced by this function.BuiltInMath.getOutputDef()
Get the structure of the result produced by this function.BuiltInString.getOutputDef()
Get the structure of the result produced by this function.DefineFunction.getOutputDef()
Get the structure of the result produced by this function.FieldRef.getOutputDef()
Return the structure of the result of applying this Expression as an Attribute.abstract Attribute
Function.getOutputDef()
Get the structure of the result produced by this function.Modifier and TypeMethodDescriptionstatic 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.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.void
DerivedFieldMetaInfo.setFieldDefs
(ArrayList<Attribute> fieldDefs) Upadate the field definitions for this derived fieldvoid
Discretize.setFieldDefs
(ArrayList<Attribute> fieldDefs) Set the field definitions for this Expression to usevoid
Expression.setFieldDefs
(ArrayList<Attribute> fieldDefs) Set the field definitions for this Expression to usevoid
FieldRef.setFieldDefs
(ArrayList<Attribute> fieldDefs) void
NormContinuous.setFieldDefs
(ArrayList<Attribute> fieldDefs) Set the field definitions for this Expression to usevoid
NormDiscrete.setFieldDefs
(ArrayList<Attribute> fieldDefs) Set the field definitions for this Expression to usevoid
BuiltInArithmetic.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
BuiltInString.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.abstract void
Function.setParameterDefs
(ArrayList<Attribute> paramDefs) Set the structure of the parameters that are expected as input by this function.ModifierConstructorDescriptionConstant
(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 ExpressionExpression
(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. -
Uses of Attribute in weka.gui
Modifier and TypeMethodDescriptionvoid
CostBenefitAnalysisPanel.setDataSet
(PlotData2D data, Attribute classAtt) Set the threshold data for the panel to use. -
Uses of Attribute in weka.gui.arffviewer
Modifier and TypeMethodDescriptionArffSortedTableModel.getAttributeAt
(int columnIndex) returns the attribute at the given index, can be NULL if not an attribute columnArffTableModel.getAttributeAt
(int columnIndex) returns the attribute at the given index, can be NULL if not an attribute column -
Uses of Attribute in weka.gui.beans
Modifier and TypeMethodDescriptionThresholdDataEvent.getClassAttribute()
Return the class attribute for which the threshold data was generated for.Modifier and TypeMethodDescriptionvoid
CostBenefitAnalysis.setCurveData
(PlotData2D curveData, Attribute origClassAtt) Set the threshold curve data to use.ModifierConstructorDescriptionThresholdDataEvent
(Object source, PlotData2D dataSet, Attribute classAtt) -
Uses of Attribute in weka.gui.visualize.plugins
Modifier and TypeMethodDescriptionVisualizePlugin.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.