def gen_preds(clf, arr):
if(hasattr(clf, "<STR_LIT>")):<EOL><INDENT>ret = clf.predict(arr)<EOL><DEDENT>else:<EOL><INDENT>ret = clf.predict(arr)<EOL><DEDENT>return ret<EOL>
Generates predictions on a novel data array using a fit classifier
clf is a classifier that has already been fit
arr is a data array identical in dimension to the array clf was trained on
Returns the array of predictions.