for iy, e in enumerate(X_res_vis):
ax2.scatter(e[y_resampled[iy] == 1, 0], e[y_resampled[iy] == 1, 1],
label="Class /Ǘ", alpha=0.5, edgecolor=almost_black,
facecolor=np.random.rand(3,), linewidth=0.15)
ax2.set_title("Easy ensemble")
plt.show()
After Change
// make nice plotting
for ax in (ax1, ax2):
ax.spines["top"].set_visible(False)
ax.spines["right"].set_visible(False)
ax.get_xaxis().tick_bottom()
ax.get_yaxis().tick_left()