Making a dataset
We would now have to make a dummy dataset so that the machine learning algorithm can predict based on that data what should be done.
To make a dataset, we need to understand what data is being considered. In this chapter, we will be making a machine learning algorithm based on time and the temperature to predict whether the fan should be on or off. Hence, there are at least two things that should be provided by us to the system one being Temperature
, and the other would be Time
so that the prediction can take place. But one thing to remember is that we are talking about a supervised learning algorithm, so to train the model, we need to also give the outcome of Temperature
and Time
onto the state of the fan. Here, the state of the fan would be either on or off. Hence, we can depict it using 0
or 1
. Now let's go ahead and make a dataset by ourselves.
Now, to make a dataset, you simply have to open Microsoft Excel and start writing the dataset as follows:
It is always better...