Extends
- module:eclairjs/ml/attribute.Attribute
Methods
(static) defaultAttr() → {module:eclairjs/ml/attribute.NumericAttribute}
The default numeric attribute.
Returns:
attrType() → {module:eclairjs/ml/attribute.AttributeType}
Returns:
- Type
- module:eclairjs/ml/attribute.AttributeType
isNominal() → {boolean}
Returns:
- Type
- boolean
isNumeric() → {boolean}
Returns:
- Type
- boolean
withIndex(index) → {module:eclairjs/ml/attribute.NumericAttribute}
Parameters:
Name | Type | Description |
---|---|---|
index |
number |
Returns:
withMax(max) → {module:eclairjs/ml/attribute.NumericAttribute}
Copy with a new max value.
Parameters:
Name | Type | Description |
---|---|---|
max |
number |
Returns:
withMin(min) → {module:eclairjs/ml/attribute.NumericAttribute}
Copy with a new min value.
Parameters:
Name | Type | Description |
---|---|---|
min |
number |
Returns:
withName(name) → {module:eclairjs/ml/attribute.NumericAttribute}
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
Returns:
withoutIndex() → {module:eclairjs/ml/attribute.NumericAttribute}
Returns:
withoutMax() → {module:eclairjs/ml/attribute.NumericAttribute}
Copy without the max value.
Returns:
withoutMin() → {module:eclairjs/ml/attribute.NumericAttribute}
Copy without the min value.
Returns:
withoutName() → {module:eclairjs/ml/attribute.NumericAttribute}
Returns:
withoutSparsity() → {module:eclairjs/ml/attribute.NumericAttribute}
Copy without the sparsity.
Returns:
withoutStd() → {module:eclairjs/ml/attribute.NumericAttribute}
Copy without the standard deviation.
Returns:
withoutSummary() → {module:eclairjs/ml/attribute.NumericAttribute}
Copy without summary statistics.
Returns:
withSparsity(sparsity) → {module:eclairjs/ml/attribute.NumericAttribute}
Copy with a new sparsity.
Parameters:
Name | Type | Description |
---|---|---|
sparsity |
number |
Returns:
withStd(std) → {module:eclairjs/ml/attribute.NumericAttribute}
Copy with a new standard deviation.
Parameters:
Name | Type | Description |
---|---|---|
std |
number |