|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectorg.apache.spark.ml.attribute.Attribute
org.apache.spark.ml.attribute.NumericAttribute
public class NumericAttribute
:: DeveloperApi :: A numeric attribute with optional summary statistics. param: name optional name param: index optional index param: min optional min value param: max optional max value param: std optional standard deviation param: sparsity optional sparsity (ratio of zeros)
| Method Summary | |
|---|---|
AttributeType |
attrType()
Attribute type. |
static NumericAttribute |
defaultAttr()
The default numeric attribute. |
boolean |
equals(Object other)
|
int |
hashCode()
|
scala.Option<Object> |
index()
Index of the attribute. |
boolean |
isNominal()
Tests whether this attribute is nominal, true for NominalAttribute and BinaryAttribute. |
boolean |
isNumeric()
Tests whether this attribute is numeric, true for NumericAttribute and BinaryAttribute. |
scala.Option<Object> |
max()
|
scala.Option<Object> |
min()
|
scala.Option<String> |
name()
Name of the attribute. |
scala.Option<Object> |
sparsity()
|
scala.Option<Object> |
std()
|
NumericAttribute |
withIndex(int index)
Copy with a new index. |
NumericAttribute |
withMax(double max)
Copy with a new max value. |
NumericAttribute |
withMin(double min)
Copy with a new min value. |
NumericAttribute |
withName(String name)
Copy with a new name. |
NumericAttribute |
withoutIndex()
Copy without the index. |
NumericAttribute |
withoutMax()
Copy without the max value. |
NumericAttribute |
withoutMin()
Copy without the min value. |
NumericAttribute |
withoutName()
Copy without the name. |
NumericAttribute |
withoutSparsity()
Copy without the sparsity. |
NumericAttribute |
withoutStd()
Copy without the standard deviation. |
NumericAttribute |
withoutSummary()
Copy without summary statistics. |
NumericAttribute |
withSparsity(double sparsity)
Copy with a new sparsity. |
NumericAttribute |
withStd(double std)
Copy with a new standard deviation. |
| Methods inherited from class org.apache.spark.ml.attribute.Attribute |
|---|
toMetadata, toMetadata, toString, toStructField, toStructField |
| Methods inherited from class Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static NumericAttribute defaultAttr()
public scala.Option<String> name()
Attribute
name in class Attributepublic scala.Option<Object> index()
Attribute
index in class Attributepublic scala.Option<Object> min()
public scala.Option<Object> max()
public scala.Option<Object> std()
public scala.Option<Object> sparsity()
public AttributeType attrType()
Attribute
attrType in class Attributepublic NumericAttribute withName(String name)
Attribute
withName in class Attributepublic NumericAttribute withoutName()
Attribute
withoutName in class Attributepublic NumericAttribute withIndex(int index)
Attribute
withIndex in class Attributepublic NumericAttribute withoutIndex()
Attribute
withoutIndex in class Attributepublic NumericAttribute withMin(double min)
public NumericAttribute withoutMin()
public NumericAttribute withMax(double max)
public NumericAttribute withoutMax()
public NumericAttribute withStd(double std)
public NumericAttribute withoutStd()
public NumericAttribute withSparsity(double sparsity)
public NumericAttribute withoutSparsity()
public NumericAttribute withoutSummary()
public boolean isNumeric()
AttributeNumericAttribute and BinaryAttribute.
isNumeric in class Attributepublic boolean isNominal()
AttributeNominalAttribute and BinaryAttribute.
isNominal in class Attributepublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||