atm 2106 ta class - github pages · 2019-06-05 · 19 practice of homework #3 위의 방법중...
TRANSCRIPT
2019 Spring | Atmosphere-Ocean Interaction
ATM 2106 TA Class
Department of Atmospheric Sciences, Yonsei UniversityAir-Sea Modeling Laboratory
May 22, 2019
2
Review
Last time
• Midterm review
Today
• Ocean circulation• Linear Regression Analysis
1) using np.polyfit2) using sklearn library3) using matrix method
• Practice of Homework #3
3
Linear Regression Analysis
- Simple Example - Latent heat of condensation
4
- Simple Example - Latent heat
• 1) np.polyfit
Linear Regression Analysis
5
• 1) np.polyfitLinear Regression Analysis
6
• 1) np.polyfitLinear Regression Analysis
7
• 1) np.polyfitLinear Regression Analysis
8
• 1) np.polyfitLinear Regression Analysis
9
• 2) Using sklearn libraryLinear Regression Analysis
10
• 2) Using sklearn libraryLinear Regression Analysis
11
• 2) Using sklearn libraryLinear Regression Analysis
12
• 2) Using sklearn libraryLinear Regression Analysis
13
• 3) using matrix methodLinear Regression Analysis
14
• theta를 구할 때 사용한 식 설명Linear Regression Analysis
15
Linear Regression Analysis• theta를 구할 때 사용한 식 설명
16
Linear Regression Analysis• theta를 구할 때 사용한 식 설명
17
• 3) using matrix methodLinear Regression Analysis
18
• 3) using matrix methodLinear Regression Analysis
19
Practice of Homework #3
위의 방법중 하나를 사용해서 HW#3에 접근해보자
• meshgrid1D 변수를 2D 변수로 바꾸어줌[X,Y]=np.meshgrid(lon,lat)
• pcolormesh
그림 그리는 방법 설명 (2D 변수 그리기)plt.plot(X, variable[1D]) plt.pcolormesh(X,Y, variable[2D])
• 2D 배열 유의하기!
20
Practice of Homework #3
Plot 2D graph example) : 예시 파일 HW#3 결과와는 관련없음
21
Practice of Homework #3반복문 for문 example) : 예시 파일 HW#3 결과와는 관련없음
Thank You- End of the Document -