Python Packages
• Pandas: Data manipulation and analysis.
• Makes working with structured data easy.
• Numpy: Numeric Python.
• Used for mathematical and logical operations on arrays.
• scikit-learn: Machine Learning in Python.
• Provides simple and efficient tools for data analysis and modeling.
• Matplotlib: Visualization library.
• Allows creation of static, animated, and interactive plots in Python.
• PyTorch: Deep Learning framework.
• Preferred for its dynamic computation graph, which makes it especially useful for research
pwd는 "print working directory"의 약자로, 현재 작업 중인 디렉토리의 절대 경로를 표시해주는 명령어입니다.
!pwd
ls는 "list"의 약자로, 현재 디렉토리에 있는 파일과 서브 디렉토리를 보여주는 명령어입니다.
!ls
pip freeze는 Python 패키지 관리 도구인 pip의 하나의 명령어입니다. 이 명령어는 설치된 Python 패키지의 목록을 출력하며 이 때 출력되는 목록은 패키지이름==버전의 형식으로 나타납니다.
!pip freeze
Python Codes
x = 1
y = 4
# z = y/(1-x)
import numpy as np
from matplotlib import pyplot as plt
ys = 200 + np.random.randn(100)
x = [x for x in range(len(ys))]
plt.plot(x, ys, '-')
plt.fill_between(x, ys, 195, where=(ys > 195), facecolor='g', alpha=0.6)
plt.title("Fills and Alpha Example")
plt.show()
dir = !pwd
dir
코랩 구글 연동
from google.colab import drive
drive.mount("/content/gdrive")
import os
root_dir = "/content/gdrive/MyDrive"
os.path.exists(root_dir)
Colab 강아지, 고양이 모드 추가
- 도구 > 설정 > 기타
'Machine Learning' 카테고리의 다른 글
5wk_Regularization (0) | 2024.04.06 |
---|---|
4wk_예측값과 실제값 비교 : MSE · RMSE · MAE · R2 (0) | 2024.03.31 |
사이킷런 의사결정나무 알고리즘 및 당뇨병 데이터셋 (0) | 2024.01.16 |
사이킷런과 머신러닝이란? (2) | 2024.01.11 |
Machine Learning_Numpy (0) | 2023.09.16 |