(self)
Make subset of `self.train_set` Dataset object.
Make subset of `self.train_set` Dataset object.
Make subset of self . train_set Dataset object .
def sample_train_set(self) -> None:
        """Make subset of `self.train_set` Dataset object."""

        if self.auto_options["sample_size"] is None:
            return

        self.train_set.construct()
        n_train_instance = self.train_set.get_label().shape[0]
        if n_train_instance > self.auto_options["sample_size"]:
            offset = n_train_instance - self.auto_options["sample_size"]
            idx_list = offset + np.arange(self.auto_options["sample_size"])
            self.train_subset = self.train_set.subset(idx_list)
def sample_train_set ( self ) -> None : if self . auto_options [ "sample_size" ] is None : return self . train_set . construct ( ) n_train_instance = self . train_set . get_label ( ) . shape [ 0 ] if n_train_instance > self . auto_options [ "sample_size" ] : offset = n_train_instance - self . auto_options [ "sample_size" ] idx_list = offset + np . arange ( self . auto_options [ "sample_size" ] ) self . train_subset = self . train_set . subset ( idx_list )