Ejemplo n.º 1
0
    def get_feature_vector(self):
        """

        The ``get_feature_vector`` method generates the list of regression features from the column headers of the input dataset.

        Returns:
            Pyomo IndexedParam  : An indexed parameter list of the variables supplied in the original data

        """
        p = Param(self.x_data_columns, mutable=True, initialize=0)
        p.index_set().construct()
        p.construct()
        self.feature_list = p
        return p
Ejemplo n.º 2
0
    def get_feature_vector(self):
        """
        =====================================================================================================================
        The get_feature_vector method generates the list of features from the column headers of the input dataset.

        :returns
            p(<IndexedParam>): An indexed parameter list of the variables supplied in the original data
        =====================================================================================================================
        """
        p = Param(self.x_data_columns, mutable=True, initialize=0)
        p.index_set().construct()
        p.construct()
        self.feature_list = p
        return p