Regression versus classification

Hello,
I was thinking about the distinction of classification versus regression.

  1. What type of algorithm, amongst these two, would translation from one language to another be?
    It seems to me that it fits better a regression, since there is an unlimited choice of translation options. That is in the case of an advanced translator, whereas a naive translator which translates word-for-word (without taking much context into consideration) can use classification, imho.

  2. It seems to be that the output of a regression model, can be any real number. Suppose that only a positive input actually makes sense in the context of our model (eg prediction weight from height). Would we gain anything as researchers by restricting, in some way, the regression model to output only positive numbers ?

Neither. Normally, you won’t use classification or regression for translation tasks.

There are other models for that (covered later in MLS or DLS).

Yes, you should do this. The AI model may give you a pretty good prediction for regressions, but you should apply any known limitations and bounds to the output as necessary.

1 Like

I vote No on imposing artificial limits on the model.

You want to know how well the model is working. Artificially modifying the output will make it difficult to understand and improve your model.

Is there a way of doing it in linear regression (eg predicting weight from height)?