Short answer: If you're sure you really want to strip a numeric outcome to a binary simplification, then I suggest that you establish a cutoff to determine what is a "positive" versus "negative" case on the regression data and then use AUCROC (area under the ROC curve) to compare the regression and classification models.
Longer answer
First of all, it is highly questionable if you should strip the rich information of a numeric outcome variable into a simplistic binary outcome. You did not give any application context, so it is difficult to know why you would want to do this. In most real-life situations, such simplification would lead to poor decisions. Retaining the data in its more detailed (numeric) state gives the opportunity to make more nuanced and informed decisions.
That said, if you are sure that you want to go ahead, then I do not recommend that you ever use accuracy to evaluate classification models. While it is certainly the most intuitive classification measure, it has many shortcomings and just about every other classification measure that exists improves on some of accuracy's shortcomings. It is helpful as a first step to learn about how to evaluate classification models, but it should never be used beyond that in practice.
The primary reason why accuracy is an inadequate measure is that it forces you to pick a threshold cutoff that determines what is a "positive" and what is a "negative" case. This is a serious problem because we cannot know the optimal threshold in advance since it varies with every dataset, every model applied to each dataset, and every real-life application of a model based on a dataset. Force-fitting a default cutoff (usually 0.5) is almost always an inappropriate choice. (Exactly the same problem exists with precision, recall, specificity, F1, etc. These measures are often useful for making decisions after we have selected a model but they do not provide good guidance on how to select a model in the first place.)
The AUCROC (area under the ROC curve), or just AUC for short, resolves this issue by essentially evaluating the average ability to discriminate between positive and negative cases across all possible thresholds. So, it gives a very robust measure of the all-round quality of a classification model. (It is not perfect without some occasional refinements, but that is beyond the scope of this answer.)
Although AUC is typically calculated based on probabilities (ranging from 0 to 1), that is not its essence. At its core, AUC is a ranking algorithm. It evaluates how frequently a model scores or ranks positive cases higher than negative cases. These scores or ranks do not need to be probabilities. They can also be regular numeric values, such as the predictions of a regression algorithm.
Here is the procedure that I propose:
You must determine what you consider to be "TRUE" or "positive" based on your numeric data. You did not give any application context, but if your analysis is to have any practical usefulness, you must carefully select a threshold value across which a critical decision is to be made. Outcome values above one cutoff will lead to one decision and values below the cutoff will lead to the second decision.
Despite my caveat above of making a threshold decision, this is an unavoidable first step if you want to reduce numeric data to a binary simplification. However, this is not being used to evaluate the quality of models--it is needed if you want to determine what is "true" or "false" for your specific application.
Code your outcome data as TRUE or FALSE based on your practical decision threshold.
Train your classification models on the TRUE/FALSE version of the outcome data and train the regression models on the original numeric version of the outcome data.
Calculate AUCROC for all models:
- The actual or truth values will be the TRUE/FALSE version of the outcome data.
- For the classification models, the predictions will be the predicted probabilities of these classification models.
- For the regression models, if your AUC software allows any numeric data, then enter the numeric predictions as they are as the prediction input for the AUC calculation. If not, then simply scale the values from 0 to 1 so that they look like probabilities. The scaling algorithm does not matter as long as it maintains the rank order of predicted values--that's all the AUCROC algorithm cares about. (For example, subtracting the minimum and dividing by the maximum should work just fine.)
The AUC values across models will then be directly comparable with a very specific interpretation: they show how well each model (whether classification or regression) discriminates cases that are true or false according to the specific threshold you set. If you change your mind and decide to adjust the threshold, then you would need to retrain all your models and compare them again. When the data changes, then the models are no longer valid. Otherwise similar models might perform differently with different criteria of true or false.