Python Forum
Recommendation after running regression (approach)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recommendation after running regression (approach)
#1
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?
Reply


Messages In This Thread
Recommendation after running regression (approach) - by danishzmalik - Jul-17-2018, 09:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Advice needed on how to approach this problem... sawtooth500 1 388 Apr-06-2024, 01:55 PM
Last Post: snippsat
  CPU recommendation for Python (11900K or 5950X) MangirdTea 2 2,031 Sep-08-2021, 11:00 PM
Last Post: Larz60+
  Sound Approach for Running a Shell Command? matt_the_hall 8 3,618 Dec-14-2020, 02:52 PM
Last Post: matt_the_hall
  Need feedback on my approach for python dashboard for Asana pashtett 0 1,405 Nov-24-2020, 11:51 AM
Last Post: pashtett
  Approach to creating Audit table pynewbie 4 4,064 Feb-24-2020, 06:12 PM
Last Post: pynewbie
  [ library recommendation ] search & highlight target texts in PDF? smallabc 1 2,319 Nov-27-2019, 10:40 AM
Last Post: Larz60+
  list approach due nested order 3Pinter 6 3,009 Oct-07-2019, 01:49 PM
Last Post: 3Pinter
  Whats a good design/approach? hshivaraj 1 1,876 Sep-16-2019, 01:44 AM
Last Post: snippsat
  intermediate book recommendation please? jameson984 1 2,142 Jul-15-2019, 03:21 AM
Last Post: metulburr
  Need Recommendation for Training - Python for WebDev and Dashboards Cory 3 3,571 Apr-24-2018, 09:20 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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