I did splitting among trained and testing data using the function train_test_split() and get the following.
print(X_train)
+--------------------+
|     fre   loc      |
+--------------------+
| 1.208531  0.010000 |
| 0.169742  0.010000 |
| 0.119691  0.010000 |
| 0.151515  0.010000 |
| 0.632653  0.010000 |
| 0.104000  1.125000 |
| 3.313433  1.076923 |
| 0.323899  0.010000 |
| 3.513011  1.100000 |
| 0.184971  0.010000 |
| 0.158470  0.010000 |
| 0.175258  0.010000 |
| 0.149038  0.010000 |
| 0.158879  0.010000 |
+--------------------+
print(X_test)
+--------------------+
|     fre   loc      |
+--------------------+
| 1.208531  0.010000 |
| 0.169742  0.010000 |
| 0.119691  0.010000 |
| 0.151515  0.010000 |
| 0.632653  0.010000 |
| 0.104000  1.125000 |
| 3.313433  1.076923 |
+--------------------+
print(y_train)
+----------------+
| Critical Value |
+----------------+
|       1.208531 |
|       0.000000 |
|       0.000000 |
|       0.000000 |
|       0.632653 |
|       1.125000 |
|       4.390356 |
|       0.000000 |
|       4.613011 |
|       0.000000 |
|       0.000000 |
|       0.000000 |
|       0.000000 |
|       0.000000 |
+----------------+
print(y_test)
+----------------+
| Critical Value |
+----------------+
|       1.208531 |
|       0.000000 |
|       0.000000 |
|       0.000000 |
|       0.632653 |
|       1.125000 |
|       4.390356 |
+----------------+
Then I performed Gradient Boosting Regressor in the following manner,
est_knc= GradientBoostingRegressor()
est_knc.fit(X_train, y_train)
pred = est_knc.score(X_test, y_test)
print(pred)
and got the output,
0.8879530974429752
it's ok till here. Now I want to plot this but its quite confusing for me to understand what and how parameters do I have to pass in order to plot a scatter plot using the above data. I'm new in visualisation. :(
 
    