INNER CODE UNIT · Python

v2

rasbt/machine-learning-book · ch02/ch02.py:164

v2 = 0.5 * v1
np.arccos(v1.dot(v2) / (np.linalg.norm(v1) * np.linalg.norm(v2)))



# ## Training a perceptron model on the Iris dataset

# ...

# ### Reading-in the Iris data




try:
    s = 'https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data'
    print('From URL:', s)
    df = pd.read_csv(s,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…