interface FeatureEngineeringFunctions
Feature engineering is a strong part of vowpal wabbit.
To refer any namespaces use VowpalWabbit.ANY_NAMESPACE
Modifier and Type | Method and Description |
---|---|
SGDVowpalWabbitBuilder |
constant(double initialValue)
Set initial value of constant
|
SGDVowpalWabbitBuilder |
cubic(String firstNameSpace,
String secondNamespace,
String thirdNamespace)
Create and use cubic features
|
SGDVowpalWabbitBuilder |
lrqfa(String firstNamespace,
String secondNamespace,
int k)
use low rank quadratic feature-aware weights
|
SGDVowpalWabbitBuilder |
ngram(String namespace,
int n)
Generate N grams.
|
SGDVowpalWabbitBuilder |
noconstant()
Don't add a constant feature
|
SGDVowpalWabbitBuilder |
quadratic(String firstNameSpace,
String secondNamespace)
Create and use quadratic features
|
SGDVowpalWabbitBuilder |
skips(String namespace,
int n)
Generate skips in N grams.
|
SGDVowpalWabbitBuilder noconstant()
SGDVowpalWabbitBuilder constant(double initialValue)
initialValue
- bias initial valueSGDVowpalWabbitBuilder ngram(String namespace, int n)
namespace
- namespace name, or ':' for any namespacesn
- size of n-gram.SGDVowpalWabbitBuilder skips(String namespace, int n)
To generate n-skips for a single namespace 'foo', arg should be fN.
namespace
- namespace name, or ':' for any namespacesn
- size of skips n-gram.SGDVowpalWabbitBuilder quadratic(String firstNameSpace, String secondNamespace)
firstNameSpace
- namespace name, or ':' for any namespacessecondNamespace
- namespace name, or ':' for any namespacesSGDVowpalWabbitBuilder cubic(String firstNameSpace, String secondNamespace, String thirdNamespace)
firstNameSpace
- namespace name, or ':' for any namespacessecondNamespace
- namespace name, or ':' for any namespacesthirdNamespace
- namespace name, or ':' for any namespacesSGDVowpalWabbitBuilder lrqfa(String firstNamespace, String secondNamespace, int k)
firstNamespace
- namespace name, or ':' for any namespacessecondNamespace
- namespace name, or ':' for any namespacesk
- k factorized matrices widthCopyright © 2017. All rights reserved.