Creation of a Simple Machine Learning Model:

Here we will create a linear regression model using a randomly created data set in Python for Data Science.

Generation of the training set:

Creation of a Simple Machine Learning Modell in Python for Data Science

Machine learning model- Linear regression:

We can create this model in two steps:

  1. Training the model using the training data.
  2. Testing the model using the test data.

Training the model:

The data created by using the above code is there for training the model.

Creation of a Simple Machine Learning Modell in Python for Data Science

Testing the data:

Here the testing is done manually. We can do testing using random data and testing if the model gives the correct result for the input provided.

So, to learn more about it in python for data science, you can check this and this as well.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.