(self)
return samples
See the documentation for get_training_samples

        :return: a set of validation samples distinct from the training samples.
See the documentation for get_training_samples
See the documentation for get_training_samples
def get_validation_samples(self):
        """
        See the documentation for get_training_samples

        :return: a set of validation samples distinct from the training samples.
        """
        indices = self._get_sample_indices(self._questions_val)
        each_separate = self._p.get('train.each.separate', False)
        self._p['train.each.separate'] = False
        max_negative_samples = self._p.get("max.negative.samples", 30)
        self._p["max.negative.samples"] = 50
        samples = self._get_indexed_samples(indices)
        self._p["max.negative.samples"] = max_negative_samples
        self._p['train.each.separate'] = each_separate
        return samples
def get_validation_samples ( self ) : indices = self . _get_sample_indices ( self . _questions_val ) each_separate = self . _p . get ( 'train.each.separate' , False ) self . _p [ 'train.each.separate' ] = False max_negative_samples = self . _p . get ( "max.negative.samples" , 30 ) self . _p [ "max.negative.samples" ] = 50 samples = self . _get_indexed_samples ( indices ) self . _p [ "max.negative.samples" ] = max_negative_samples self . _p [ 'train.each.separate' ] = each_separate return samples