|
95 | 95 | if ds_cnt == 0:
|
96 | 96 | ax.set_title("Input data")
|
97 | 97 | # Plot the training points
|
98 |
| - ax.scatter(X_train[:, 0], X_train[:, 1], c=y_train, cmap=cm_bright) |
| 98 | + ax.scatter(X_train[:, 0], X_train[:, 1], c=y_train, cmap=cm_bright, |
| 99 | + edgecolors='k') |
99 | 100 | # and testing points
|
100 |
| - ax.scatter(X_test[:, 0], X_test[:, 1], c=y_test, cmap=cm_bright, alpha=0.6) |
| 101 | + ax.scatter(X_test[:, 0], X_test[:, 1], c=y_test, cmap=cm_bright, alpha=0.6, |
| 102 | + edgecolors='k') |
101 | 103 | ax.set_xlim(xx.min(), xx.max())
|
102 | 104 | ax.set_ylim(yy.min(), yy.max())
|
103 | 105 | ax.set_xticks(())
|
|
122 | 124 | ax.contourf(xx, yy, Z, cmap=cm, alpha=.8)
|
123 | 125 |
|
124 | 126 | # Plot also the training points
|
125 |
| - ax.scatter(X_train[:, 0], X_train[:, 1], c=y_train, cmap=cm_bright) |
| 127 | + ax.scatter(X_train[:, 0], X_train[:, 1], c=y_train, cmap=cm_bright, |
| 128 | + edgecolors='k') |
126 | 129 | # and testing points
|
127 | 130 | ax.scatter(X_test[:, 0], X_test[:, 1], c=y_test, cmap=cm_bright,
|
128 |
| - alpha=0.6) |
| 131 | + edgecolors='k', alpha=0.6) |
129 | 132 |
|
130 | 133 | ax.set_xlim(xx.min(), xx.max())
|
131 | 134 | ax.set_ylim(yy.min(), yy.max())
|
|
0 commit comments