다음 그림들은 전자책 파이썬과 함께하는 미분적분 의 8장에 수록된 그래프들과 코드들입니다. import numpy as np import pandas as pd from sympy import * import matplotlib.pyplot as plt import seaborn as sns sns.set_style("darkgrid") #그림 8.4.1 x=np.array([1.,2.,3.,4.]) y0=np.array([5.2, 8.9, 11.7, 16.8]) y=3.76*x+1.25 y1=3.96*x+1 y2=3.36*x+1.2 plt.figure(figsize=(8, 3)) plt.subplot(121) col=['g', 'b', 'r'] for i,j in enumerate([y, y1, y2]): if i>0: l="--" else: l="-" plt.plot(x, j, color=col[i], ls=l, label=f"fit{i+1}") plt.scatter(x, y0, s=50, c="brown", label="observed") plt.xlabel("x", fontsize=11) plt.ylabel("f(x)", rotation="horizontal",labelpad=10, fontsize=11) plt.legend(loc=(0.1, 0.6), labelcolor="linecolor", frameon=False) plt.subplot(122) plt.plot(x, y, color="g", label="reg. line") plt.scatter(x, y, s=50, c="b", label="predicted...
python 언어를 적용하여 통계(statistics)와 미적분(Calculus), 선형대수학(Linear Algebra)을 소개합니다. 이 과정에서 빅데이터를 다루기 위해 pytorch를 적용합니다.