Package vsql_core :: Package catalog :: Module model_creator
[hide private]
[frames] | no frames]

Module model_creator

source code

This class contains functions to build PostgreSQL string and query to insert Victor Models table.

Functions [hide private]
string
build_string_constant(v)
Builds PostgreSQL string from the given string parameter
source code
string
insert_to_victor_models(model_name, objective_all, objective_item, gradient, prox, model_type, data_type)
Constructs PostgreSQL query to insert given model to the victor models table
source code
Variables [hide private]
  victor_models = "VICTOR_MODELS"
Function Details [hide private]

build_string_constant(v)

source code 

Builds PostgreSQL string from the given string parameter

Parameters:
  • v (string) - the string that will be used to build PostgreSQL string
Returns: string
returns 'v' (PostgreSQL string)

insert_to_victor_models(model_name, objective_all, objective_item, gradient, prox, model_type, data_type)

source code 

Constructs PostgreSQL query to insert given model to the victor models table

Parameters:
  • model_name (string) - name of the model
  • objective_all (string) - objectivea ll
  • objective_item (string) - objective item
  • gradient (string) - gradient
  • prox (string) - prox
  • model_type (string) - type of the model
  • data_type (string) - type of the data
Returns: string
returns insert query