การ สอนวิทยาศาสตร์ข้อมูล

วันนี้ Data ครองโลก ส่งผลให้มีความต้องการ Data Scientists เป็นจำนวนมาก

Data Scientist ช่วยบริษัทต่างๆ ในการตัดสินใจโดยใช้ข้อมูลเป็นหลัก เพื่อทำให้ธุรกิจของตนดีขึ้น

เริ่มเรียนรู้ Data Science ตอนนี้ »

การเรียนรู้จากตัวอย่าง

ด้วยตัวแก้ไข "ลองใช้เอง" คุณสามารถแก้ไขโค้ด Python และดูผลลัพธ์ได้

ตัวอย่าง

import pandas as pd
import matplotlib.pyplot as plt
from scipy import stats

full_health_data = pd.read_csv("data.csv", header=0, sep=",")

x = full_health_data["Average_Pulse"]
y = full_health_data["Calorie_Burnage"]

slope, intercept, r, p, std_err = stats.linregress(x, y)

def myfunc(x):
 return slope * x + intercept

mymodel = list(map(myfunc, x))

plt.scatter(x, y)
plt.plot(x, mymodel)
plt.ylim(ymin=0, ymax=2000)
plt.xlim(xmin=0, xmax=200)
plt.xlabel("Average_Pulse")
plt.ylabel ("Calorie_Burnage")
plt.show()

คลิกที่ปุ่ม "ลองด้วยตัวคุณเอง" เพื่อดูว่ามันทำงานอย่างไร


ดาวน์โหลด Python

ดาวน์โหลด Python จากเว็บไซต์ Python อย่างเป็นทางการ: https://python.org