Identifying different regressions Linear Polynomial from a graph and fit regression model accordingly

0 votes

I am working with different machine learning algorithms for my dataset. I am using python. I am a beginner in machine learning.

This is the visualization of my dataset. It is understandable there linear regression won't perform well for the whole set. enter image description here

I am willing to divide the graph into 3 regions. Like this image. I want to have 3 regions which are a constant part, polynomial part, and a linear part. enter image description here

I want to predict X first, then need to know in which part it lies and then it will fit the model according to the part. Like if X lies on the polynomial part the system will identify as polynomial part and it needs to fit as polynomial regression.

My question is how can I implement it in such a way? 

Mar 15, 2022 in Machine Learning by Nandini
• 5,480 points
625 views

1 answer to this question.

0 votes
The constant part of your equation isn't really constant. For varying x, constant indicates the same y. However, given your data, it's the opposite: different y for the same x.
You can't use a constant function to fit data like this (just fitting an intercept).
answered Mar 17, 2022 by Dev
• 6,000 points

Related Questions In Machine Learning

0 votes
1 answer

How do I create a linear regression model in Weka without training?

Weka is a classification algorithm. This is ...READ MORE

answered Mar 9, 2022 in Machine Learning by Nandini
• 5,480 points
1,387 views
0 votes
1 answer
0 votes
1 answer

How to load a model from an HDF5 file in Keras?

Hi@akhtar, If you stored the complete model, not ...READ MORE

answered Jul 14, 2020 in Machine Learning by MD
• 95,460 points
6,360 views
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,434 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP