Uses of Class
weka.core.Attribute
Packages that use Attribute
Package
Description
-
Uses of Attribute in weka.associations
Methods in weka.associations that return AttributeModifier and TypeMethodDescriptionItem.getAttribute()Get the attribute that this item originates from.Constructors in weka.associations with parameters of type AttributeModifierConstructorDescriptionBinaryItem(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
Methods in weka.classifiers.evaluation with parameters of type AttributeModifier and TypeMethodDescriptionstatic doubleRegressionAnalysis.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
Methods in weka.classifiers.pmml.producer with parameters of type AttributeModifier 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
Methods in weka.classifiers.rules that return AttributeMethods in weka.classifiers.rules with parameters of type AttributeModifier and TypeMethodDescriptionweka.classifiers.rules.OneR.OneRRuleOneR.newNominalRule(Attribute attr, Instances data, int[] missingValueCounts) Create a rule branching on this nominal attribute.weka.classifiers.rules.OneR.OneRRuleOneR.newNumericRule(Attribute attr, Instances data, int[] missingValueCounts) Create a rule branching on this numeric attributeweka.classifiers.rules.OneR.OneRRuleCreate a rule branching on this attribute.Prints this ruleConstructors in weka.classifiers.rules with parameters of type AttributeModifierConstructorDescriptionConstructorConstructorConstructor -
Uses of Attribute in weka.classifiers.trees.ht
Methods in weka.classifiers.trees.ht with parameters of type AttributeModifier 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 AttributeProduces 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 TypeMethodDescriptionintAttribute.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.voidInstances.deleteWithMissing(Attribute att) Removes all instances with missing values for a particular attribute from the dataset.voidInstances.insertAttributeAt(Attribute att, int position) Inserts an attribute at the given position (0 to numAttributes()) and sets all values to be missing.booleanTests if a specific value is "missing".booleanTests if a specific value is "missing".doubleInstances.kthSmallestValue(Attribute att, int k) Returns the kth-smallest attribute value of a numeric attribute.doubleInstances.meanOrMode(Attribute att) Returns the mean (mode) for a numeric (nominal) attribute as a floating-point value.intInstances.numDistinctValues(Attribute att) Returns the number of distinct values of a given attribute.final InstancesAbstractInstance.relationalValue(Attribute att) Returns the relational value of a relational attribute.Instance.relationalValue(Attribute att) Returns the relational value of a relational attribute.voidInstances.renameAttribute(Attribute att, String name) Renames an attribute.voidInstances.renameAttributeValue(Attribute att, String val, String name) Renames the value of a nominal (or string) attribute value.voidInstances.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.voidInstances.setAttributeWeight(Attribute att, double weight) Sets the weight of an attribute.voidSets the class attribute.final voidAbstractInstance.setMissing(Attribute att) Sets a specific value to be "missing".voidInstance.setMissing(Attribute att) Sets a specific value to be "missing".final voidSets a specific value in the instance to the given value (internal floating-point format).final voidSets a value of an nominal or string attribute to the given value.voidSets a specific value in the instance to the given value (internal floating-point format).voidSets a value of an nominal or string attribute to the given value.voidSorts the instances based on an attribute.voidInstances.stableSort(Attribute att) Sorts the instances based on an attribute, using a stable sort.final StringAbstractInstance.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.booleanTest the given attribute, whether it can be processed by the handler, given its capabilities.booleanTest the given attribute, whether it can be processed by the handler, given its capabilities.voidCapabilities.testWithFail(Attribute att) tests the given attribute by calling the test(Attribute,boolean) method and throws an exception if the test fails.voidCapabilities.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 StringReturns the description of one value of the instance as a string.final StringReturns 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 StringAttribute.typeToString(Attribute att) Returns a string representation of the attribute type.static StringAttribute.typeToStringShort(Attribute att) Returns a short string representation of the attribute type.doubleReturns an instance's attribute value in internal format.doubleReturns an instance's attribute value in internal format.doubleComputes 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
Methods in weka.core.pmml that return AttributeModifier and TypeMethodDescriptionDerivedFieldMetaInfo.getFieldAsAttribute()Get this derived field as an Attribute.abstract AttributeFieldMetaInfo.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 AttributeFunction.getOutputDef()Get the structure of the result produced by this function.Method parameters in weka.core.pmml with type arguments of type AttributeModifier and TypeMethodDescriptionstatic ExpressionExpression.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 ExpressionExpression.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.voidDerivedFieldMetaInfo.setFieldDefs(ArrayList<Attribute> fieldDefs) Upadate the field definitions for this derived fieldvoidDiscretize.setFieldDefs(ArrayList<Attribute> fieldDefs) Set the field definitions for this Expression to usevoidExpression.setFieldDefs(ArrayList<Attribute> fieldDefs) Set the field definitions for this Expression to usevoidFieldRef.setFieldDefs(ArrayList<Attribute> fieldDefs) voidNormContinuous.setFieldDefs(ArrayList<Attribute> fieldDefs) Set the field definitions for this Expression to usevoidNormDiscrete.setFieldDefs(ArrayList<Attribute> fieldDefs) Set the field definitions for this Expression to usevoidBuiltInArithmetic.setParameterDefs(ArrayList<Attribute> paramDefs) Set the structure of the parameters that are expected as input by this function.voidBuiltInMath.setParameterDefs(ArrayList<Attribute> paramDefs) Set the structure of the parameters that are expected as input by this function.voidBuiltInString.setParameterDefs(ArrayList<Attribute> paramDefs) Set the structure of the parameters that are expected as input by this function.voidDefineFunction.setParameterDefs(ArrayList<Attribute> paramDefs) Set the structure of the parameters that are expected as input by this function.abstract voidFunction.setParameterDefs(ArrayList<Attribute> paramDefs) Set the structure of the parameters that are expected as input by this function.Constructor parameters in weka.core.pmml with type arguments of type AttributeModifierConstructorDescriptionConstant(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 TypeMethodDescriptionvoidCostBenefitAnalysisPanel.setDataSet(PlotData2D data, Attribute classAtt) Set the threshold data for the panel to use. -
Uses of Attribute in weka.gui.arffviewer
Methods in weka.gui.arffviewer that return AttributeModifier 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
Methods in weka.gui.beans that return AttributeModifier and TypeMethodDescriptionThresholdDataEvent.getClassAttribute()Return the class attribute for which the threshold data was generated for.Methods in weka.gui.beans with parameters of type AttributeModifier and TypeMethodDescriptionvoidCostBenefitAnalysis.setCurveData(PlotData2D curveData, Attribute origClassAtt) Set the threshold curve data to use.Constructors in weka.gui.beans with parameters of type AttributeModifierConstructorDescriptionThresholdDataEvent(Object source, PlotData2D dataSet, Attribute classAtt) -
Uses of Attribute in weka.gui.visualize.plugins
Methods in weka.gui.visualize.plugins with parameters of type AttributeModifier 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.