Class: NumericAttribute

eclairjs/ml/attribute. NumericAttribute

A numeric attribute with optional summary statistics.

Constructor

new NumericAttribute()

Source:

Extends

  • module:eclairjs/ml/attribute.Attribute

Methods

(static) defaultAttr() → {module:eclairjs/ml/attribute.NumericAttribute}

The default numeric attribute.
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

attrType() → {module:eclairjs/ml/attribute.AttributeType}

Source:
Returns:
Type
module:eclairjs/ml/attribute.AttributeType

isNominal() → {boolean}

Source:
Returns:
Type
boolean

isNumeric() → {boolean}

Source:
Returns:
Type
boolean

withIndex(index) → {module:eclairjs/ml/attribute.NumericAttribute}

Parameters:
Name Type Description
index number
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withMax(max) → {module:eclairjs/ml/attribute.NumericAttribute}

Copy with a new max value.
Parameters:
Name Type Description
max number
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withMin(min) → {module:eclairjs/ml/attribute.NumericAttribute}

Copy with a new min value.
Parameters:
Name Type Description
min number
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withName(name) → {module:eclairjs/ml/attribute.NumericAttribute}

Parameters:
Name Type Description
name string
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withoutIndex() → {module:eclairjs/ml/attribute.NumericAttribute}

Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withoutMax() → {module:eclairjs/ml/attribute.NumericAttribute}

Copy without the max value.
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withoutMin() → {module:eclairjs/ml/attribute.NumericAttribute}

Copy without the min value.
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withoutName() → {module:eclairjs/ml/attribute.NumericAttribute}

Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withoutSparsity() → {module:eclairjs/ml/attribute.NumericAttribute}

Copy without the sparsity.
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withoutStd() → {module:eclairjs/ml/attribute.NumericAttribute}

Copy without the standard deviation.
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withoutSummary() → {module:eclairjs/ml/attribute.NumericAttribute}

Copy without summary statistics.
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withSparsity(sparsity) → {module:eclairjs/ml/attribute.NumericAttribute}

Copy with a new sparsity.
Parameters:
Name Type Description
sparsity number
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute

withStd(std) → {module:eclairjs/ml/attribute.NumericAttribute}

Copy with a new standard deviation.
Parameters:
Name Type Description
std number
Source:
Returns:
Type
module:eclairjs/ml/attribute.NumericAttribute