Machine Learning (Udemy Kurs)
Module
Numpy
import numpy as np
Ein Array mit Numpy erstellen
x = np.array([-2, 1, 3, -10, 22])
Matplotlib
import matplotlib.pyplot as plt
Einen Plott erstellen
x = np.array([1,2,3,4,5])
y = np.array([2,-3,5,10,12])
# Scatter Plot
plt.scatter(x, y, color="red")
plt.legend(['f(x)'])
plt.title('This is a title')
plt.xlabel('x')
plt.ylabel('f(x)')
plt.show()