Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
286 views
in Technique[技术] by (71.8m points)

Python package to perform logistic regression with continuous target between 0 and 1?

my inputs are feature vectors, and my outputs/targets are floats between 0 and 1 for training.

I am familiar that XGBRFRegressor and XGBRegressor are capable of this, but I am seeking logistic regression equivalent rather than using gradient boosting. I guess I could manually do the log transformations turning it into a standard linear regression problem, but seeking to see if there is already a solution for this.

Thanks, Will


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I solved this by transforming to linear scale then training using any regression method, and then transforming back with a log transformation.

see an example at how to use sklearn when target variable is a proportion


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...