def __init__(self):
        """@__init__

        This constructor is responsible for defining class variables.

        """

        self.list_error = []
        self.sql = SQL()
    def __init__(self):
        '''@__init__

        This constructor is responsible for defining class variables.

        '''

        self.list_error = []
        self.sql = SQL()
        self.db_ml = current_app.config.get('DB_ML')
    def __init__(self, svm_data, session_type):
        """@__init__

        This constructor is responsible for defining class variables.

        """

        # class variables
        self.svm_data = svm_data
        self.session_type = session_type
        self.list_error = []
        self.sql = SQL()
    def __init__(self, premodel_data, session_type):
        '''@__init__

        This constructor is responsible for defining class variables.

        '''

        # class variables
        self.premodel_data = premodel_data
        self.session_type = session_type
        self.list_error = []
        self.sql = SQL()
        self.db_ml = current_app.config.get('DB_ML')
Esempio n. 5
0
    def __init__(self, premodel_data):
        '''@__init__

        This constructor is responsible for defining class variables.

        '''

        self.premodel_data = premodel_data
        self.list_error = []
        self.sql = SQL()
        self.db_ml = current_app.config.get('DB_ML')
        self.classification = current_app.config.get('MODEL_TYPE')[0]
        self.regression = current_app.config.get('MODEL_TYPE')[1]
Esempio n. 6
0
    def __init__(self, premodel_data, session_type):
        '''@__init__

        This constructor is responsible for defining class variables.

        @self.premodel_data, a dictionary with the following elements:

            {'uid': xx, 'id_entity': xx, 'title': yyy}

        Note: 'xx' denotes an integer value, 'yyy' a unicode string, and 'zz'
              representing a float value.

        '''

        self.premodel_data = premodel_data
        self.session_type = session_type
        self.list_error = []
        self.sql = SQL()
        self.db_ml = current_app.config.get('DB_ML')
Esempio n. 7
0
    def __init__(self, svm_data, session_type):
        """@__init__

        This constructor is responsible for defining class variables.

        Note: during the SVM entity instance, 'self.svm_data' is a dictionary
              with the following elements:

                  {'uid': xx, 'id_entity': xx, 'title': yyy}

              where 'xx' denotes an integer value, 'yyy' a unicode string, and
              'zz' representing a float value.

        """

        self.svm_data = svm_data
        self.session_type = session_type
        self.list_error = []
        self.sql = SQL()