Constructor
new NumericAttribute(name, index, min, max, std, sparsity)
Parameters:
Name | Type | Description |
---|---|---|
name |
optional name | |
index |
optional index | |
min |
optional min value | |
max |
optional max value | |
std |
optional standard deviation | |
sparsity |
optional sparsity (ratio of zeros) |
- Source:
Extends
- module:eclairjs/sql/catalyst/expressions.Attribute
Methods
(static) defaultAttr() → {module:eclairjs/ml/attribute.NumericAttribute}
The default numeric attribute.
- Source:
Returns:
attrType() → {AttributeType}
- Source:
Returns:
- Type
- AttributeType
equals(other) → {Promise.<boolean>}
Parameters:
Name | Type | Description |
---|---|---|
other |
object |
- Source:
Returns:
- Type
- Promise.<boolean>
hashCode() → {Promise.<number>}
- Source:
Returns:
- Type
- Promise.<number>
isNominal() → {Promise.<boolean>}
- Source:
Returns:
- Type
- Promise.<boolean>
isNumeric() → {Promise.<boolean>}
- Source:
Returns:
- Type
- Promise.<boolean>
withIndex(index) → {NumericAttribute}
Parameters:
Name | Type | Description |
---|---|---|
index |
number |
- Source:
Returns:
- Type
- NumericAttribute
withMax(max) → {NumericAttribute}
Copy with a new max value.
Parameters:
Name | Type | Description |
---|---|---|
max |
number |
- Source:
Returns:
- Type
- NumericAttribute
withMin(min) → {NumericAttribute}
Copy with a new min value.
Parameters:
Name | Type | Description |
---|---|---|
min |
number |
- Source:
Returns:
- Type
- NumericAttribute
withName(name) → {NumericAttribute}
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
- Source:
Returns:
- Type
- NumericAttribute
withoutIndex() → {NumericAttribute}
- Source:
Returns:
- Type
- NumericAttribute
withoutMax() → {NumericAttribute}
Copy without the max value.
- Source:
Returns:
- Type
- NumericAttribute
withoutMin() → {NumericAttribute}
Copy without the min value.
- Source:
Returns:
- Type
- NumericAttribute
withoutName() → {NumericAttribute}
- Source:
Returns:
- Type
- NumericAttribute
withoutSparsity() → {NumericAttribute}
Copy without the sparsity.
- Source:
Returns:
- Type
- NumericAttribute
withoutStd() → {NumericAttribute}
Copy without the standard deviation.
- Source:
Returns:
- Type
- NumericAttribute
withoutSummary() → {NumericAttribute}
Copy without summary statistics.
- Source:
Returns:
- Type
- NumericAttribute
withSparsity(sparsity) → {NumericAttribute}
Copy with a new sparsity.
Parameters:
Name | Type | Description |
---|---|---|
sparsity |
number |
- Source:
Returns:
- Type
- NumericAttribute
withStd(std) → {NumericAttribute}
Copy with a new standard deviation.
Parameters:
Name | Type | Description |
---|---|---|
std |
number |
- Source:
Returns:
- Type
- NumericAttribute