(self, data_inst, sample_ids=None)
return sample_data
Entry to use sample method

        Parameters
        ----------
        data_inst : Table
            The input data

        sample_ids : None or list
            if None, will sample data from the class instance's parameters,
            otherwise, it will be sample transform process, which means use the samples_ids the generate data

        Returns
        -------
        sample_data: Table
            the output sample data, same format with input
Entry to use sample method
Entry to use sample method
def sample(self, data_inst, sample_ids=None):
        """
        Entry to use sample method

        Parameters
        ----------
        data_inst : Table
            The input data

        sample_ids : None or list
            if None, will sample data from the class instance's parameters,
            otherwise, it will be sample transform process, which means use the samples_ids the generate data

        Returns
        -------
        sample_data: Table
            the output sample data, same format with input


        """
        ori_schema = data_inst.schema
        sample_data = self.sampler.sample(data_inst, sample_ids)
        self.set_summary(self.sampler.get_summary())

        try:
            if len(sample_data) == 2:
                sample_data[0].schema = ori_schema
        except:
            sample_data.schema = ori_schema

        return sample_data
def sample ( self , data_inst , sample_ids = None ) : ori_schema = data_inst . schema sample_data = self . sampler . sample ( data_inst , sample_ids ) self . set_summary ( self . sampler . get_summary ( ) ) try : if len ( sample_data ) == 2 : sample_data [ 0 ] . schema = ori_schema except : sample_data . schema = ori_schema return sample_data