Documentation ¶
Index ¶
- func ExtractBoolean(field, boolean string) (string, error)
- func ExtractCategorical(field, category string) string
- func ExtractDate(field, date string) ([]string, error)
- func ExtractIP(field, addr string) (string, error)
- func ExtractNumerical(field string, num float32, min float32, max float32) string
- func ExtractNumericalMaxMin(field string, num float32, min float32, max float32) string
- func ExtractText(text, delim string) []string
- func ExtractTimestamp(field, timestamp string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractBoolean ¶
ExtractBoolean returns a 0/1 vector for the deterministic feature ID
func ExtractCategorical ¶
ExtractCategorical returns a vector that is a positive boolean for a deterministic categorical feature ID
func ExtractDate ¶
ExtractDate returns a slice of 2 scaled seasonality vectors: day of week, and month of year each with a deterministic feature id
func ExtractIP ¶
ExtractIP returns a vector that is a scaled integer representation of IPv4 and IPv6 IPs with a deterministic feature ID
func ExtractNumerical ¶
ExtractNumerical returns a min/max scalled vector to a deterministic feature ID
func ExtractNumericalMaxMin ¶
ExtractNumericalMaxMin returns a min/max scalled vector to a deterministic feature ID
func ExtractText ¶
ExtractText returns a slice of "featureID:1" strings for each token in the string
func ExtractTimestamp ¶
ExtractTimestamp returns a slice of 3 scaled seasonality vectors: minute of hour, hour of day, day of week each with a deterministic feature ID
Types ¶
This section is empty.