통계1 & 선형대수

류소리·2022년 12월 21일
0

통계

목록 보기
1/2

22/12/21

https://colab.research.google.com/drive/1C0wiUh8O17FxTDiDHxxmg_dmsEmk2rvb

# -*- coding: utf-8 -*-

import 
import warnings
warnings.simplefilter('ignore')

import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pylab as plt
from mpl_toolkits.mplot3d import Axes3D

import seaborn as sns
sns.set()
sns.set_style("whitegrid")
sns.set_color_codes()

import numpy as np
import scipy as sp
import pandas as pd
import statsmodels.api as sm
import sklearn as sk

# Do not remove this line!
plt, Axes3D, sns, np, sp, pd, sm, sk
# 한글 깨짐 해결방법 : 실행 후 Restart runtime 
!sudo apt-get install -y fonts-nanum
!sudo fc-cache -fv
!rm ~/.cache/matplotlib -rf
import matplotlib.pyplot as plt
plt.rc('font', family='NanumBarunGothic')
from sklearn.datasets import load_digits
import matplotlib.pyplot as plt
digits = load_digits()
print(digits.images[0].shape)
print(type(digits.images[0]))
print(digits.images[0])
plt.figure(figsize=(1,1))
plt.imshow(digits.images[0])
plt.grid(False);plt.xticks([]);plt.yticks([])
plt.show

https://rfriend.tistory.com/380

from PIL import Image
from IPython.display import Image
image1= Image(filename="/content/drive/MyDrive/book/내적.jpg")
display(image1)

profile
새싹 빅테이터 개발자

0개의 댓글