Open in app

Sign in

Write

Sign in

Dboy Liao
Dboy Liao

469 Followers

Home

About

Sep 17, 2022

Python: 愛它沒有如果 (Part 1)

前幾天忘了在哪裡看到,應該是 FB 上的朋友或粉絲頁文章傳來傳去吧,看到了這一篇文章: Better Software Without If-Else 5 Ways to Replace If-Else. Beginner to advanced examplesmedium.com 老實說工作幾年下來,看到很多人在說 design pattern 之類的,但更常碰到的狀況卻是,legacy code 慘不忍睹,在套用 pattern 之前必須清理一堆東西。 所以這邊主要是想聊聊,我自己工作上碰到醜醜 python code ,具體的說就是上面看到 …

Python3

7 min read

Python: 愛它沒有如果 (Part 1)
Python: 愛它沒有如果 (Part 1)
Python3

7 min read


Feb 9, 2022

Spark 開發:VSCode 與 sbt

老實說長久以來因為常常碰到一條龍搞完 machine learning 專案,都是使用 Python 作為主要語言,連寫 Spark 也是以 PySpark 為主。說來慚愧,雖然能做 data engineering 的事,但從來沒認真寫過 Scala。 疫情宅在家想說就來學學用 Scala 來寫 Spark,這樣才血統純正 (?) 但網路上常常看到的教 …

Spark

5 min read

Spark 開發:VSCode 與 sbt
Spark 開發:VSCode 與 sbt
Spark

5 min read


Aug 19, 2021

拜託 C++ 你給我動啊: move semantics

我真的很討厭 C++。 (= 皿 = )凸 by Dboy Liao 以後我要寫 C++ 的東西,都用上面這句話開頭 😈 之前就聽過 C++11 加了所謂的 Rvalue reference (T&&) 這種東西,當初跟朋友寫 open source project 就看到他們用了很多。老實說我不是很懂,但也就這樣西哩呼嚕地做下去了。我深深地相信,凡事都會 …

C Plus Plus Language

7 min read

拜託 C++ 你給我動啊: move semantics
拜託 C++ 你給我動啊: move semantics
C Plus Plus Language

7 min read


Aug 3, 2021

Operator Overloading for Class Template in C++

我真的很討厭 C++。 (= 皿 = )凸 by Dboy Liao 只是想寫一篇紀念我為了 C++ 今晚不斷 google 所花的 2 個小時。 情境是這樣的:我想幫一個 template class MyObject 寫 << 的 operator overloading,中間必須可以 print 出 MyObject 的 private membe …

Cpp

4 min read

Operator Overloading for Class Template in C++
Operator Overloading for Class Template in C++
Cpp

4 min read


May 27, 2021

Neural Decision Forest (ICCV 2015)

最近因為疫情關係,都在家工作,有些設備在公司不方便用,結果慢慢發現能做的事都做得差不多了。既然如此,就來看 paper 寫 code 消遣一下。 最近看比較多的都是 deep learning 結合 decision tree 的模型居多,今天看的這篇 Deep Neural Decision Forests 網路上實作也很多,我自己是參考了 j …

Deep Learning

6 min read

Neural Decision Forest (ICCV 2015)
Neural Decision Forest (ICCV 2015)
Deep Learning

6 min read


Apr 30, 2021

Deep Neural Decision Trees 筆記

上次說到看了 paper 學了 Einstein Notation 怎麼用,說的就是 Deep Neural Decision Trees (DNDT) 這篇 paper,朋友看了說希望我解釋這篇 paper 所以就想說也好,當作讀後感寫一寫也不錯,免得 paper 都是看一篇忘一篇 😂 我們來看看怎麼用 Deep Learning 去實作一個 de …

Deep Learning

6 min read

Deep Neural Decision Trees 筆記
Deep Neural Decision Trees 筆記
Deep Learning

6 min read


Apr 26, 2021

Einstein Summation 學習筆記

朋友偶然 pass 一篇 Deep Neural Decision Trees[2018] 的 paper 過來,裡面用了一個可微分的方式去表示一個 decision tree 所以就可以用 Deep Learning 的手法去訓練一個 decision tree。看 paper 的過程中,看它的實作碰到需要 Kronecker product, …

Python3

5 min read

Einstein Summation 學習筆記
Einstein Summation 學習筆記
Python3

5 min read


Feb 25, 2021

文章導讀: Why machine learning algorithms are hard to tune and how to fix it

原文連結 最近朋友傳來一篇 machine learning 的 blog,因為實在寫得太好,但內容橫跨 ML 跟 non-linear programming (主要跟 Lagrange Multiplier 有關),想說寫一篇導讀,分享學到的東西給大家。 The Basic: Lagrangian Multiplier 雖然唸過一些基本最佳化的人應該對 Lagrangian Multiplier 是很熟悉,但既然是 …

11 min read

文章導讀: Why machine learning algorithms are hard to tune and how to fix it
文章導讀: Why machine learning algorithms are hard to tune and how to fix it

11 min read


Dec 4, 2020

Kalman Filter 學習筆記

從一開始接觸 Machine Learning 的時候就聽過 Kalman filter 這東西。一方面是自己當時對 Bayesian 的東西不是太清楚,一方面對於一些數學工具也不熟悉,所以第一次看到 Kalman filter 的時候,只是覺得怎麼這麼多奇怪的步驟。但時至今日,已經可以從一些其他的角度來看 Kalman filter 的算式,也 …

5 min read

Kalman Filter 學習筆記
Kalman Filter 學習筆記

5 min read


Oct 12, 2020

Python 小技巧: Namespace Package

會注意到這個東西,起因於工作上用到許多 GCP 的 python 套件。像是 bigquery 跟 dataproc。 如果你看它們的安裝過程,會發現它們在 PyPI 上都是分開的 package,像是 google-cloud-bigquery 與google-cloud-dataproc 。可是安裝之後,卻可以像這樣 import 它們: fro …

Python3

5 min read

Python 小技巧: Namespace Package
Python 小技巧: Namespace Package
Python3

5 min read

Dboy Liao

Dboy Liao

469 Followers

Code Writer, Math Enthusiast and Data Scientist, yet.

Following
  • Tommy Huang

    Tommy Huang

  • Ray Lee | 李宗叡

    Ray Lee | 李宗叡

  • YH. CHANG

    YH. CHANG

  • Huli

    Huli

  • 陳先灝 (Hsien Hao Chen)

    陳先灝 (Hsien Hao Chen)

See all (79)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams