MADlib
1.0 A newer version is available
User Documentation
|
SQL functions for conditional random field. More...
Go to the source code of this file.
Functions | |
integer | lincrf (varchar source, varchar sparse_R, varchar dense_M, varchar sparse_M, varchar featureSize, integer tagSize, varchar featureset, varchar crf_feature, integer maxNumIterations=20) |
Compute linear-chain crf coefficients and diagnostic statistics. More... | |
Definition in file crf.sql_in.
integer lincrf | ( | varchar | source, |
varchar | sparse_R, | ||
varchar | dense_M, | ||
varchar | sparse_M, | ||
varchar | featureSize, | ||
integer | tagSize, | ||
varchar | featureset, | ||
varchar | crf_feature, | ||
integer | maxNumIterations = 20 |
||
) |
source | Name of the source relation containing the training data |
sparse_R | Name of the sparse single state feature column (of type DOUBLE PRECISION[]) |
dense_M | Name of the dense two state feature column (of type DOUBLE PRECISION[]) |
sparse_M | Name of the sparse two state feature column (of type DOUBLE PRECISION[]) |
featureSize | Name of feature size column (of type DOUBLE PRECISION) |
tagSize | The number of tags in the tag set |
featureset | The unique feature set |
crf_feature | The Name of output feature table |
maxNumIterations | The maximum number of iterations |
coef FLOAT8[]
- Array of coefficients, \( \boldsymbol c \)log_likelihood FLOAT8
- Log-likelihood \( l(\boldsymbol c) \)num_iterations INTEGER
- The number of iterations before the algorithm terminated Definition at line 573 of file crf.sql_in.