發表文章

論人事制度

論人事制度,自古以來,人事制度就是一個非常難解的問題,我們先來看看古時候的皇帝。 古時候的皇帝是採用世襲的制度,但是世襲的制度往往會造成一個問題,就是皇帝他如果是開國君主的話,他有可能殺了很多人,把跟他同地位的人全部都殺死。因此他可以獲得至高無上的地...

作文練習。

圖片
我使用科大訊飛輸入法。來寫部落格,那這是為了要讓紫韻試試看,能夠寫作文。今天媽咪煎的蔥抓餅,第一塊有點焦,第二塊呢剛剛好,然後呢弟弟呢超級愛蔥花餅的。還用手護住蔥抓餅,不讓姐姐吃,可是姐姐說她最愛弟弟了,所以呢都可以讓給弟弟吃,難怪姐姐小不點小不點的...

C class w205安裝隔音條

這一次完成了C-Class的安裝了隔音條,我是在武分舖安裝的,其實他們的隔音條都是自己設計的,原本他們是用現成的,但是他發現不是很好用,如果是通用的話會很多地方不適合,所以他們自己去開模請人代工,我去看他們安裝的時候,覺得也非常的專業雖然說看起來沒什麼跟自己要學...

讀書心得 刻意練習

刻意練習 這本書的研究成果很多人引用,其中最著名的就是要成為一個傑出的專家需要一萬小時的練習。這本書說明了要如何成為傑出專家的研究。其中有一項研究讓我特別印象深刻,就成為一個專家,相對應的腦區會明顯變大,也就是說大腦的練習會物理上的對大腦有改變,並且...

Install Keras

pip install numpy scipy pip install scikit - learn pip install pillow pip install h5py pip install keras https://github.com/fchollet/keras/blob/master/examples/mnist_cnn.py

To improve English writing skills

I am going to practice my wirting skill. Therefore, I will write an article a day to improve my writing skill. First of all, there are two rules need to be followed. Rule number 1: Set a target number of words to be writen down. Rule number 2: Set a time limit to finish the article. By using the two rules, these can help me to  consentrate and focus on practicing.

Multi-GPU Training on TensorFlow with Keras

https://medium.com/@kuza55/transparent-multi-gpu-training-on-tensorflow-with-keras-8b0016fd9012 https://github.com/kuza55/keras-extras/blob/master/utils/multi_gpu.py import numpy as np import keras from keras.models import Sequential from keras.layers import Dense model = Sequential() model.add(Dense(4000, input_dim=8000, activation='tanh')) model.add(Dense(2000, input_dim=8000, activation='relu')) model.add(Dense(500, activation='relu')) model.add(Dense(300, activation='relu')) model.add(Dense(1, activation='sigmoid')) print (model.summary()) model = make_parallel(model, 4) optimizer = keras.optimizers.Adam(lr=0.0001) model.compile(loss='binary_crossentropy', optimizer=optimizer, metrics=['accuracy']) x = np.random.rand(131072, 8000) y = np.random.randint(0, 2, (131072, 1)) model.fit(x, y, batch_size=2048*4 )