FunctionWiseClassifier and FunctionWiseClassifierTest