談及『反向傳播算法』之前, Michael Nielsen 先生首起『記號法』之用︰
……
Let’s begin with a notation which lets us refer to weights in the network in an unambiguous way. We’ll use to denote the weight for the connection from the neuron in the layer to the neuron in the layer. So, for example, the diagram below shows the weight on a connection from the fourth neuron in the second layer to the second neuron in the third layer of a network:
We use a similar notation for the network’s biases and activations. Explicitly, we use for the bias of the neuron in the layer. And we use for the activation of the neuron in the layer. The following diagram shows examples of these notations in use:
where the sum is over all neurons in the layer. To rewrite this expression in a matrix form we define a weight matrix for each layer, . The entries of the weight matrix are just the weights connecting to the layer of neurons, that is, the entry in the row and column is . Similarly, for each layer l we define a bias vector, . You can probably guess how this works – the components of the bias vector are just the values , one component for each neuron in the layer. And finally, we define an activation vector whose components are the activations .
───
果有深意哉??如果設想使用『羅馬數字』作算術
,雖是大學者,恐怕一樣頭疼。假使記作
,縱使小朋友,也能駕馭自如!!
恰似中國古代的『天元術』之所以難學難傳的乎!!??
如果考之以歷史,或許最早的『語詞算術』,可能源於中國古代的『天元術』︰
在中國數學史上最早創立天元概念的是北宋平陽蔣周所著的《益古集》,隨後有博陸李文一撰《照膽》,鹿泉石信道撰《鈐經》,平水劉汝諧撰《如積釋鎖》,處州李思聰《洞淵九容》後人才知道有天元。
李冶在東平獲得劉汝諧撰《如積釋鎖》,書中用十九個單字表示未知數的各個至的冪:
- 仙、明、霄、漢、壘、層、高、上、天、人、地、下、低、減、落、逝、泉、暗、鬼;其中立天元在上。
後來有太原彭澤彥出,反其道而行,以天元在下[2]。
《益古集》,《照膽》,《鈐經》,《如積釋鎖》,《洞淵九容》等早期天元術著作今已失傳。李冶在《測圓海鏡》中使用天元在上的天元術。後來李冶又著《益古演段》,採用天元在下的次序。朱世傑《四元玉鑒》和《算學啟蒙》卷下也採用天元在下的次序。
在天元術中,一次項係數旁記一「元」字(或在常數項旁記一「太」字)。
- 歷史上有兩種次序:
- 《測圓海鏡》式
「元」以上的係數表示各正次冪,「元」以下的係數表示常數項和各負次冪)。
例:李冶《測圓海鏡》第二卷第十四問方程:
- 《益古演段》式
「元」以下的係數表示各正次冪,「元」以上的係數表示常數和各負次冪
例一:
其中「太」是常數項,算籌 打斜線表示該項常數為負數。 「元」相當於未知數x
對於東方早期古典『高階方程式論』有興趣之讀者,也許可以讀讀金代數學家李冶所著『測圓海鏡』,體會一下不同的『思路』。或將可以感受『符號學』的發展對於『數理邏輯』的貢獻,了解有時理解的難易就藏在『記號法』之中,畢竟『符號』也能有『美學』的吧!!
─ 摘自《勇闖新世界︰ 《 pyDatalog 》【專題】之約束編程‧一》
故而對此『記號法』務先嫻熟善用的耶!!