Go to the source code of this file.
Classes | |
class | Hazy_Database |
This class provides database connection, executes update and select queries. More... | |
Functions | |
void | svector_to_dbstring (const SVector &s, std::string &feature_vector_str) |
Converts given SVector to database string. | |
void | fvector_to_dbstring (const FVector &v, std::string &feature_values) |
Converts given FVector to database string. | |
void | model_to_dbstring (const struct model &m, std::string &model_string, std::string &bias_string) |
Converts given model vector and bias to database strings after scaling the model vector. | |
void | checkQueryReturnValue (int retVal, std::string query) |
Checks that query is executed successfully. |
void checkQueryReturnValue | ( | int | retVal, | |
std::string | query | |||
) |
Checks that query is executed successfully.
[in] | retVal | success that returned from execution of the query |
[in] | query | the query which is executed |
void fvector_to_dbstring | ( | const FVector & | v, | |
std::string & | feature_values | |||
) |
Converts given FVector to database string.
[in] | v | given fvector |
[out] | feature_values | database string |
void model_to_dbstring | ( | const struct model & | m, | |
std::string & | model_string, | |||
std::string & | bias_string | |||
) |
Converts given model vector and bias to database strings after scaling the model vector.
[in] | m | model that database strings will be constructed |
[out] | model_string | string that is constructed from model vector after scaling |
[out] | bias_string | string that is constructed from bias |
void svector_to_dbstring | ( | const SVector & | s, | |
std::string & | feature_vector_str | |||
) |
Converts given SVector to database string.
[in] | s | given svector |
[out] | feature_vector_str | database string |