Functions | |
PG_FUNCTION_INFO_V1 (auxF) | |
Datum | auxF (PG_FUNCTION_ARGS) |
Parses input string and outputs word with tf score. | |
PG_FUNCTION_INFO_V1 (dotprdct_sparse_cached_waste) | |
PG_FUNCTION_INFO_V1 (dotprdct_sparse_cached_without_waste) | |
PG_FUNCTION_INFO_V1 (cache_model_waste) | |
Datum | initialize_waste_count (PG_FUNCTION_ARGS) |
Initializes waste count. | |
Datum | get_waste_ratio (PG_FUNCTION_ARGS) |
Calculates waste ratio. | |
Datum | cache_model_waste (PG_FUNCTION_ARGS) |
Caches the given model. | |
Datum | dotprdct_sparse_cached_waste (PG_FUNCTION_ARGS) |
Calculates the dot product with the cached model and given feature vector and updates waste count. | |
Datum | dotprdct_sparse_cached_without_waste (PG_FUNCTION_ARGS) |
Calculates the dot product with the cached model and given feature vector and do not update waste count. | |
PG_FUNCTION_INFO_V1 (dotprdct_dense_cached_waste) | |
PG_FUNCTION_INFO_V1 (dotprdct_dense_cached_without_waste) | |
Datum | dotprdct_dense_cached_waste (PG_FUNCTION_ARGS) |
Calculates the dot product with the cached model and given dense feature vector and updates waste count. | |
Datum | dotprdct_dense_cached_without_waste (PG_FUNCTION_ARGS) |
Calculates the dot product with the cached model and given dense feature vector and do not update waste count. | |
Variables | |
PG_MODULE_MAGIC | |
const char * | szDelim = "|" |
Datum auxF | ( | PG_FUNCTION_ARGS | ) |
Parses input string and outputs word with tf score.
[in] | parsedPubText | to_ts_vector output of the input string |
[in] | distinctWordCount | # of distinct words in the input string |
[in] | pubLength | string length |
Datum cache_model_waste | ( | PG_FUNCTION_ARGS | ) |
Caches the given model.
[in] | w | model vector |
[in] | bias |
Datum dotprdct_dense_cached_waste | ( | PG_FUNCTION_ARGS | ) |
Calculates the dot product with the cached model and given dense feature vector and updates waste count.
[in] | input | feature vector of the entity |
Datum dotprdct_dense_cached_without_waste | ( | PG_FUNCTION_ARGS | ) |
Calculates the dot product with the cached model and given dense feature vector and do not update waste count.
[in] | input | feature vector of the entity |
Datum dotprdct_sparse_cached_waste | ( | PG_FUNCTION_ARGS | ) |
Calculates the dot product with the cached model and given feature vector and updates waste count.
[in] | input | feature vector of the entity |
Datum dotprdct_sparse_cached_without_waste | ( | PG_FUNCTION_ARGS | ) |
Calculates the dot product with the cached model and given feature vector and do not update waste count.
[in] | input | feature vector of the entity |
Datum get_waste_ratio | ( | PG_FUNCTION_ARGS | ) |
Calculates waste ratio.
Datum initialize_waste_count | ( | PG_FUNCTION_ARGS | ) |
Initializes waste count.
PG_FUNCTION_INFO_V1 | ( | dotprdct_dense_cached_without_waste | ) |
PG_FUNCTION_INFO_V1 | ( | dotprdct_dense_cached_waste | ) |
PG_FUNCTION_INFO_V1 | ( | cache_model_waste | ) |
PG_FUNCTION_INFO_V1 | ( | dotprdct_sparse_cached_without_waste | ) |
PG_FUNCTION_INFO_V1 | ( | dotprdct_sparse_cached_waste | ) |
PG_FUNCTION_INFO_V1 | ( | auxF | ) |
const char* szDelim = "|" |