'logistic regression; how to find the actual value of predicution (e.g. 3.5, 2.6). Due to model set up, y-pred is iether 1 or 3

I am currently coding a logistic regression. Here is my set up.

X values - X-train/X-test based on count vectoriser.

Y values - either 1/3 (boolean values for now)

when i run the logs regression, the y-pred will give me either 1 or 3. However, i want to obtain the absolute values of the prediction, instead of the nearest value.

any idea how I can work on this please



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source