Python Forum
Recommendation after running regression (approach)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recommendation after running regression (approach)
Hey all,

Im new to python and data science.

Ive generated a regression model using sklearns LinearRegression().

i.e LinearRegression(Train_features, train_label)

Train Features: x1,x2,x3
Train Label: y

My model works accurately with low mse scores.
My problem is that now i have to make a recommendation based on the model, and have to recommend a value for x1 (x1 is the only controllable feature), such that y = a required value.

What approach should i use for this?
I tried setting x1 as the response variable and and y as a predictor variable and then ran the regression but it gave me really high values for mse.

I know i can do it manually using the generated regression equation, but is there any way to do it on python?

Possibly Related Threads…
Thread Author Replies Views Last Post
  CPU recommendation for Python (11900K or 5950X) MangirdTea 2 1,228 Sep-08-2021, 11:00 PM
Last Post: Larz60+
  Sound Approach for Running a Shell Command? matt_the_hall 8 2,361 Dec-14-2020, 02:52 PM
Last Post: matt_the_hall
  Need feedback on my approach for python dashboard for Asana pashtett 0 925 Nov-24-2020, 11:51 AM
Last Post: pashtett
  Approach to creating Audit table pynewbie 4 2,811 Feb-24-2020, 06:12 PM
Last Post: pynewbie
  [ library recommendation ] search & highlight target texts in PDF? smallabc 1 1,685 Nov-27-2019, 10:40 AM
Last Post: Larz60+
  list approach due nested order 3Pinter 6 1,988 Oct-07-2019, 01:49 PM
Last Post: 3Pinter
  Whats a good design/approach? hshivaraj 1 1,240 Sep-16-2019, 01:44 AM
Last Post: snippsat
  intermediate book recommendation please? jameson984 1 1,466 Jul-15-2019, 03:21 AM
Last Post: metulburr
  Need Recommendation for Training - Python for WebDev and Dashboards Cory 3 2,719 Apr-24-2018, 09:20 PM
Last Post: nilamo
  Need Recommendation Please. jarrod0987 1 2,529 Nov-04-2017, 09:50 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020