|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.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 Attribute
public scala.Option<Object> index()
Attribute
index
in class Attribute
public 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 Attribute
public NumericAttribute withName(String name)
Attribute
withName
in class Attribute
public NumericAttribute withoutName()
Attribute
withoutName
in class Attribute
public NumericAttribute withIndex(int index)
Attribute
withIndex
in class Attribute
public NumericAttribute withoutIndex()
Attribute
withoutIndex
in class Attribute
public 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()
Attribute
NumericAttribute
and BinaryAttribute
.
isNumeric
in class Attribute
public boolean isNominal()
Attribute
NominalAttribute
and BinaryAttribute
.
isNominal
in class Attribute
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |