WEBVTT

00:00.040 --> 00:00.760
Welcome back.

00:00.800 --> 00:04.280
Congratulations for getting the learned relationship.

00:04.400 --> 00:07.600
So our model is being well trained.

00:07.800 --> 00:10.440
Now let's plot the results.

00:10.480 --> 00:13.240
Let's display the results in a graph.

00:13.360 --> 00:16.520
Let me start with plt dot figure.

00:16.560 --> 00:22.040
I'm creating a figure with ten inches and height six inches.

00:22.200 --> 00:23.760
Dot scatter.

00:23.880 --> 00:27.600
We need to pass four parameters the x and y.

00:28.080 --> 00:34.000
Alpha is 70% transparency and label actual data and the plot.

00:34.120 --> 00:40.000
Let me start plotting the X which is the predictions in red dots.

00:40.320 --> 00:47.160
So as we learned before in the previous videos about the Matplot library, it's very important library

00:47.200 --> 00:53.760
used to make the plotting and display and and display the results and visualizations.

00:53.960 --> 01:03.520
Okay, then plot X label we have on x axis, we need to display the size of the houses in in square

01:03.520 --> 01:10.000
feet and the y axis price in thousands of thousand dollars.

01:10.120 --> 01:16.720
The title of this graph is House Price Prediction using TensorFlow legend.

01:16.760 --> 01:20.000
Go and display a legend for the graph.

01:20.320 --> 01:24.620
Also display a grid and show the plot run.

01:24.620 --> 01:29.780
And here you will get this, uh, abnormal, uh, data.

01:29.820 --> 01:32.340
Because those are not the real data.

01:32.380 --> 01:33.940
They are scattered.

01:33.980 --> 01:43.420
Okay, so, uh, to solve this, we need to run the program again and run all the cells from the beginning,

01:43.420 --> 01:49.540
because, uh, maybe, maybe Google Colab, disconnect and reconnect.

01:49.540 --> 02:00.140
So this connection will remove the model or maybe scatter that data, maybe diffuse the x and y.

02:00.380 --> 02:06.180
So let's run from the beginning and make sure that everything will work fine.

02:06.180 --> 02:07.660
And here we go.

02:07.900 --> 02:10.380
We get another diagram.

02:10.380 --> 02:17.340
Here we have the actual data displayed in uh in a correct way.

02:17.580 --> 02:22.780
Also we have this red line the predicted a TensorFlow prediction.

02:22.780 --> 02:32.940
So the red dots the red line represent the TensorFlow prediction while the blue ones represent the actual

02:32.940 --> 02:33.580
data.

02:33.580 --> 02:42.660
So congratulations guys for getting this data and displaying the results in this chart.
