pub fn iter_minibatch_partitioned(
        &self,
        minibatch_size: usize,
        num_partitions: usize,
    ) -> Vec<TripletMinibatchIterator> {
        let iterator = self.iter_minibatch(minibatch_size);
        let chunk_size = self.len() / num_partitions;

        (0..num_partitions)
            .map(|x| iterator.slice(x * chunk_size, (x + 1) * chunk_size))
            .collect()
    }
/// Return a collection of iterators over a partitions of the data.
Return a collection of iterators over a partitions of the data.
Return a collection of iterators over a partitions of the data .
pub fn iter_minibatch_partitioned(
        &self,
        minibatch_size: usize,
        num_partitions: usize,
    ) -> Vec<TripletMinibatchIterator> {
        let iterator = self.iter_minibatch(minibatch_size);
        let chunk_size = self.len() / num_partitions;
        (0..num_partitions)
            .map(|x| iterator.slice(x * chunk_size, (x + 1) * chunk_size))
            .collect()
    }
pub fn iter_minibatch_partitioned ( & self , minibatch_size : usize , num_partitions : usize , ) -> Vec < TripletMinibatchIterator > { let iterator = self . iter_minibatch ( minibatch_size ) ; let chunk_size = self . len ( ) / num_partitions ; ( 0 .. num_partitions ) . map ( | x | iterator . slice ( x * chunk_size , ( x + 1 ) * chunk_size ) ) . collect ( ) }
Return a collection of iterators over a partitions of the data.
Return a collection of iterators over a partitions of the data .
&self
minibatch_size
usize
num_partitions
usize