import pandas as pd
import numpy as np
import matplotlib.pylab as plt
import sys
predictions_file = sys.argv[1]
dataset_file = 'logistic_regression.csv'
dataset = pd.read_csv(dataset_file)
predictions = pd.read_csv(predictions_file)
plt.xlabel('x1')
plt.ylabel('x2')
blue = dataset.iloc[np.where(dataset['color'] == 'blue')]
green = dataset.iloc[np.where(dataset['color'] == 'green')]
plt.scatter(blue['x1'], blue['x2'], color='blue')
plt.scatter(green['x1'], green['x2'], color='green')
plt.show()
plt.xlabel('x1')
plt.ylabel('x2')
plt.scatter(dataset['x1'], dataset['x2'], c=predictions['color'], alpha=0.5)
plt.show()

5f1f13754d42a2508ac7a6f941306f78d589424b
<mask token>

<mask token>
plt.xlabel('x1')
plt.ylabel('x2')
<mask token>
plt.scatter(blue['x1'], blue['x2'], color='blue')
plt.scatter(green['x1'], green['x2'], color='green')
plt.show()
plt.xlabel('x1')
plt.ylabel('x2')
plt.scatter(dataset['x1'], dataset['x2'], c=predictions['color'], alpha=0.5)
plt.show()

<mask token>
predictions_file = sys.argv[1]
dataset_file = 'logistic_regression.csv'
dataset = pd.read_csv(dataset_file)
predictions = pd.read_csv(predictions_file)
plt.xlabel('x1')
plt.ylabel('x2')
blue = dataset.iloc[np.where(dataset['color'] == 'blue')]
green = dataset.iloc[np.where(dataset['color'] == 'green')]
plt.scatter(blue['x1'], blue['x2'], color='blue')
plt.scatter(green['x1'], green['x2'], color='green')
plt.show()
plt.xlabel('x1')
plt.ylabel('x2')
plt.scatter(dataset['x1'], dataset['x2'], c=predictions['color'], alpha=0.5)
plt.show()

import pandas as pd
import numpy as np
import matplotlib.pylab as plt
import sys
predictions_file = sys.argv[1]
dataset_file = 'logistic_regression.csv'
dataset = pd.read_csv(dataset_file)
predictions = pd.read_csv(predictions_file)
plt.xlabel('x1')
plt.ylabel('x2')
blue = dataset.iloc[np.where(dataset['color'] == 'blue')]
green = dataset.iloc[np.where(dataset['color'] == 'green')]
plt.scatter(blue['x1'], blue['x2'], color='blue')
plt.scatter(green['x1'], green['x2'], color='green')
plt.show()
plt.xlabel('x1')
plt.ylabel('x2')
plt.scatter(dataset['x1'], dataset['x2'], c=predictions['color'], alpha=0.5)
plt.show()
