(X, y, title)
Function to plot some data as a scatter plot.
Function to plot some data as a scatter plot.
Function to plot some data as a scatter plot .
def plot_scatter(X, y, title):
    """Function to plot some data as a scatter plot."""
    plt.figure()
    plt.scatter(X[y == 1, 0], X[y == 1, 1], label="Class #1")
    plt.scatter(X[y == 0, 0], X[y == 0, 1], label="Class #0")
    plt.legend()
    plt.title(title)
def plot_scatter ( X , y , title ) : plt . figure ( ) plt . scatter ( X [ y == 1 , 0 ] , X [ y == 1 , 1 ] , label = "Class #1" ) plt . scatter ( X [ y == 0 , 0 ] , X [ y == 0 , 1 ] , label = "Class #0" ) plt . legend ( ) plt . title ( title )