با یک مجموعه داده شروع کنید(Start With a Data Set)
با مجموعه داده ای که می خواهید آزمایش کنید شروع کنید.
مجموعه دادههای ما 100 مشتری در یک فروشگاه و عادات خرید آنها را نشان میدهد.
مثال
import numpy
import matplotlib.pyplot as plt
numpy.random.seed(2)
x = numpy.random.normal(3, 1, 100)
y = numpy.random.normal(150, 40,
100) / x
plt.scatter(x, y)
plt.show()
Result:
The x axis represents the number of minutes before making a purchase.
The y axis represents the amount of money spent on the purchase.
