William Lee
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    [toc] # Homework ## HW1: Dimension Analysis *The magnitude of pi groups are of $\mathcal{O}(1)$.* ::: info ### Example: Drag force For $$ F=F(\mu,v,r,\rho) , $$ we can formulate 2 $\pi$ groups, namely * Reynolds number $\pi_1=Re:=\rho vr/\mu$ * $\pi_2=F/\rho v^2r^2\sim \begin{cases}1/Re & Re<Re_0 \\ constant & Re_c>Re\geq Re_0 \\ turbulence & Re\geq Re_c \end{cases}$ . For the first case, we see $F\sim\mu vr$, and for the latter case, $F\sim \rho v^2r^2$. Furthermore, $P\sim Fv$. Another way to view the question is by its scale. Macroscopically, viscosity is negligible, and $F\approx F(\rho,v,r)$; microscopically, *inertia is negligible*, $F\approx F(\mu,v,r)$. For a spherical object, we have eaxctly $F=6\pi\mu vr$ (Stokes' drift law). Yet another way to view Reynolds number is as the ratio of time scale between two processes: $$ Re := \frac{\rho vr}{\mu} = \frac{r^2/(\mu/\rho)}{r/v} = \frac{t_{diff}}{t_{inel}} $$ ::: ::: info ### Wave speed We have $$ c = c(g,\lambda,H) , $$ and can formulate $\pi$ groups * $\pi_1=c/\sqrt{g\lambda}$ * $\pi_2=H/\lambda$ $\pi_2$ can be considerred as the "deepness" of a wave. Physically speaking, when $\lambda/H\to\infty$ ("shallow"), we sepect $c$ to be independent from $\lambda$; for $H/\lambda\to\infty$ ("deep"), $c$ should be independent from $H$. ::: # Neural networks ## Regression and Classification ### Regression * Linear regression: \begin{align} \mathbf{y} &= \mathbf{w}^T\mathbf{x} + b\mathbf{1} + \mathbf{e} , \\ F(x_i) &= w_ix_i + b \end{align} where $\mathbf{x}$ is th input, $\mathbf{y}$ output, $b$ the intercept, $\mathbf{w}$ the weight, and $\mathbf{e}$ the error. We wish to optimise $\mathbf{w}$ such that a loss function is minimised, e.g. $L:=||\mathbf{e}||^2$. * Logistic regression: The linearly regressed $F(x)$ is put through an activation function $\sigma$: \begin{align} F(x_i) &= \sigma(w_ix_i+b). \end{align} This process introduces nonlinearity, enabling more complex regression, but also making the process irreversible. Common activation functions includes * Sigmoid: $\sigma(x)=1/(1+\mathrm{e}^{-x})$ * Hyperbolic tangent: $\sigma(x)=\tanh(x)$ * ReLU: $\sigma(x)=\max(0,x)$ * LeakyReLU: $\sigma(x)=\begin{cases}x & x>0 \\ ax & x\leq0\end{cases}$, where $0<a<1$ The performance of a regression can be determined by a designed loss function, e.g. $L^n$-norms. ### Classification 分兩(n)個族群,目標讓直線對兩個族群的距離為最大(線分開兩個族群) ## Neural Networks ### Basic premises of neural networks Kernel trick 座標轉換(扭曲),以區分出兩群點 Ex.2D->3D 可以找到一個面把想要的東西區分開來 接越來越多層(扭曲越多次,越非線性) Sigma as activate function wσ(┤)+b *補 Neural Classification, 找到最符合的扭曲線(並非一對一的線性函數關係) 為何神經網路可以學習 * Loss fuction 根據效果調整權重 * Activation function 用錯Activation function, 會揉出垃圾(分不開兩類資料) Machine vs Deep * Machine learning 經人工feature extraction在classification * Deep learning Replacing artificial feature extraction with deeper neural networks 如何突破神經元數的限制 當input data為圖片時,有可能會有上百萬個變數,會花太多運算資源與時間。 透過Convolution降低變數數量。 GPU使用卡上IO,可以快速做簡單運算,會被板子上memory 限制住(max: 80G) CPU上IO可以做,跟RAM切開,做較複雜運算 ### Convolutional neural network Input to feature map (as an array) 經過多次convolution線性疊加 變成參數數量較小的output Kernal (filter) number越多,能看到的feature越多,一次掃越多格子 filter掃一次會產生一個值 經ReLU處理後最後得到Output值 ![https://indoml.com/2018/03/07/student-notes-convolutional-neural-networks-cnn-introduction/](https://indoml.files.wordpress.com/2018/03/one-convolution-layer1.png) ### Generative adversarial network 生成對抗網路 Input CNN後,反算出output 問題是後半段低自由度到高自由度的過程,會不知道要怎麼變 ### Recurrent neural network 處理時間維度資料(RNN循環神經網路) * RNN * LSTM * GRU # Group meeting ## Jul 6: Precipitation Nowcasting Based on an Optimised Deep Learning model Trained with Heterogeneous Weather Data <!-- 4 main types of precipitation in Taiwan --> Constrains of NWP: * Accuracy of IC Potentially solved by deep learning? ### Model design * CPN: encoder (convolution+GRU) -> forecaster (deconvolution(?)) * CPN_PONI: predictions of earlier times are used for later predictions * CPN_PONI_AII: Input of heterogeneous weather data; *Locally-connected layer* (LCL): convolution filter changes with position, cons: more parameters is expensive and can be too local; pros: ? Model performance defined by the *CSI score* ### Result * Success rates generally decrease with intensity and time * Hetero data helps prediction of low-precipitation. * LCL doesn't make a significant sifference * Model can overstimate low-intensity events, LCL may be able to help prevent this (but 2 layers can give odd results) ## Jul 13: Seasonal pogress report ### Data assimilation integrating observations into models * Using DL models to produce additional input # Literature Review ## Dynamical Adjustment of the Trade Wind Inversion Layer (Wayne Schubert, 1995) ### Problem formulation Consider an invicid, adiabatic, and zonally symmetric atmosphere. The primitive equations in the horizontal directions are \begin{align} \frac{\mathrm{D}u}{\mathrm{D}t} - fv - \frac{uv}{R_\oplus}\tan\phi &= 0 \\ \frac{\mathrm{D}v}{\mathrm{D}t} + fu + \frac{u^2}{R_\oplus}\tan\phi &= -\alpha\frac{\partial p}{\partial y} , \end{align} where \begin{align} f &= 2\Omega\sin\phi \\ \frac{\mathrm{D}}{\mathrm{D}t} &= \frac{\partial}{\partial t} + v\frac{\partial}{\partial y} \end{align} With the definitions \begin{align} \Pi &= c_p\left(\frac{p}{p_0}\right)^\kappa = c_p\frac{T}{\theta} \\ M &= \theta\Pi + gz = c_pT+\Phi \\ \sigma &= -\frac{\partial p}{\partial\theta} , \end{align} the primitive equations in the spherical coordinate become \begin{align} \frac{\mathrm{D}u}{\mathrm{D}t} - fv - \frac{uv}{R_\oplus}\tan\phi &= 0 \tag{1} \\ \frac{\mathrm{D}v}{\mathrm{D}t} + fu + \frac{u^2}{R_\oplus}\tan\phi &= -\frac{\partial M}{R_\oplus \partial \phi} . \tag{2} \end{align} We also see \begin{align} \frac{\partial M}{\partial \theta} = \Pi . \tag{3} \end{align} # Communal Lectures ## Jul 26: 王慕道 ### Coordinate systems $(x,y)$ and $(u,v)$, both centred at O, then ${x_0}^2+{y_0}^2={u_0}^2+{v_0}^2$. ***Special relativity** is the new Pythogorean theorem:* In the $(x,t)$ and $(u,\tau)$ coordinates, we have with $c\equiv1$, ${x_0}^2-{t_0}^2={u_0}^2-{\tau_0}^2$ (*the invariance of the Lorenz norm*). We see when $x_0=t_0$, $u_0=\tau_0$. (the 45deg lines form a *light cone* in $(x,y,t)$). In **general relativity**, binary black hole mergers loss mass to gravitational waves. As for the angular momentum, *supertranslation ambiguity* arises (as oppose to the supertranslation invariant of mass flux), i.e. the angular momentum flux varies by observers. An approach is to define an ambiguity-free angular momentum. The null geodesics (45deg light rays) ![](https://hackmd.io/_uploads/SkYw9b0q3.png) Idealised distant observers are at the end of these geodesics. We can use a conformal compactification to situate observers back. At future null infinity has an infinite dimensional *Bondi-Metzner-Sachs (BMS) group* Importance of angular momentum in general relativity: * GNSS correction due to the gravity of Earth, but current correction does not include the flatness and rotation of the Earth

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully