Java Code Examples for org.nd4j.linalg.util.MathUtils#shuffleArray()

The following examples show how to use org.nd4j.linalg.util.MathUtils#shuffleArray() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FileSplit.java    From DataVec with Apache License 2.0 5 votes vote down vote up
@Override
public void reset() {
    if (randomize) {
        //Shuffle the iteration order
        MathUtils.shuffleArray(iterationOrder, random);
    }
}
 
Example 2
Source File: MapFileSequenceRecordReader.java    From DataVec with Apache License 2.0 5 votes vote down vote up
@Override
public void reset() {
    position = 0;
    if (order != null) {
        MathUtils.shuffleArray(order, rng);
    }
}
 
Example 3
Source File: MapFileRecordReader.java    From DataVec with Apache License 2.0 5 votes vote down vote up
@Override
public void reset() {
    position = 0;
    if (order != null) {
        MathUtils.shuffleArray(order, rng);
    }
}