void updateConfusionMatrix(Collection<QResult<Address, Boolean>> results, int[] confusion,
			Label target, AddressSet errors) throws Exception {
		int trueIndex = target.equals(RandomForestFunctionFinderPlugin.FUNC_START) ? TP : TN;
		int falseIndex = target.equals(RandomForestFunctionFinderPlugin.FUNC_START) ? FN : FP;
		for (QResult<Address, Boolean> result : results) {
			Boolean ans = result.getResult();
			if (ans == null) {
				continue;
			}
			if (ans) {
				confusion[trueIndex] += 1;
			}
			else {
				confusion[falseIndex] += 1;
				errors.add(result.getItem());
			}
		}
	}
Updates the confusion matrix

@param results results of classifier
@param confusion confusion matrix
@param target correct answer
@param errors set to place addresses with classifier errors
@throws Exception if exception encountered during processing
Ghidra/Extensions/MachineLearning/src/main/java/ghidra/machinelearning/functionfinding/RandomForestTrainingTask.java