public void reduceTestSetSize(long max, TaskMonitor monitor) throws CancelledException {
		if (testPositive.getNumAddresses() > max) {
			testPositive = RandomSubsetUtils.randomSubset(testPositive, max, monitor);
		}
		if (testNegative.getNumAddresses() > max) {
			testNegative = RandomSubsetUtils.randomSubset(testNegative, max, monitor);
		}
	}
Checks the sizes of the sets {@code testPositive} and {@code testNegative}.  Any set
that is larger than {@code max} is replaced with a random subset of size {@code max}.

@param max max size of each set
@param monitor task monitor
@throws CancelledException if the monitor is canceled
Ghidra/Extensions/MachineLearning/src/main/java/ghidra/machinelearning/functionfinding/TrainingAndTestData.java