7576777879808182838485
allInstances.addAll(negSet); for (Pair<Resource> pair : posSet) { if (rand.nextDouble() <= fraction) { instances.add(pair); labels.add(dataset.createLiteral("true")); } } for (Pair<Resource> pair : negSet) { if (rand.nextDouble() <= fraction) {
8283848586878889909192
} for (Pair<Resource> pair : negSet) { if (rand.nextDouble() <= fraction) { instances.add(pair); labels.add(dataset.createLiteral("false")); } } // Shuffle, since we had a perfectly ordered set Collections.shuffle(instances, new Random(seed));