最新 | 最热门 | 最高评价

+0  Some tips about Python, Pandas, and Tensorflow

Tag: develope | pandas | tensorflow
Robin Dong 发于 2019年02月06日 10:47 | 点击: 2597 | 展开摘要
There are some useful tips for using Keras and Tensorflow to build models.

1. Using applications.inception_v3.InceptionV3(include_top = False, weights = ‘Imagenet’) to get pretrained parameters for InceptionV3 model, the consol

查看全文: http://www.udpwork.com/item/17377.html

+0  LinearSVC versus SVC in scikit-learn

Tag: machine learning | scikit-learn
Robin Dong 发于 2019年01月26日 11:32 | 点击: 735 | 展开摘要
In competition ‘Quora Insincere Questions Classification’, I want to use simple TF-IDF statistics as a baseline.

def grid_search(classifier, parameters, X, y, X_train, y_train, X_test, y_test, name = 'SVC'):
begin = time.ti

查看全文: http://www.udpwork.com/item/17299.html

+0  Using keras.layers.Embedding instead of python dictionary

Tag: Uncategorized | Keras | Word Embedding
Robin Dong 发于 2019年01月17日 13:22 | 点击: 826 | 展开摘要
Firstly, I use a function to transform words into word-embedding:

def text_to_array(text, embeddings_index):
empty_embed = np.zeros(EMBEDDING_LENGTH, dtype = np.float32)
text = text[:-1].split()[:MAX_TEXT_LENGTH]
embeds = []

查看全文: http://www.udpwork.com/item/17289.html

+0  A few other lessons from Kaggle’s competition ‘Human Protein Atlas Image Classification’

Tag: Uncategorized | Kaggle | SGD
Robin Dong 发于 2019年01月11日 11:32 | 点击: 793 | 展开摘要
Practice makes progress. Therefore I continued to join Kaggle’s new competition ‘Human Protein Atlas Image Classification’ after the previous one.

I used think I could get a higher rating in image processing competition.

查看全文: http://www.udpwork.com/item/17281.html

+0  Some errors in dataset pipeline of Tensorflow

Tag: machine learning | numpy | tensorflow
Robin Dong 发于 2019年01月04日 15:13 | 点击: 685 | 展开摘要
To extend image datasets by using mixup,I use this snippet to mix two images:

major_image = cv2.imread('1.jpeg')
minor_image = cv2.imread('2.jpeg')
new_image = major_image * 0.9 + minor_image * 0.1
But after generating images by using this

查看全文: http://www.udpwork.com/item/17271.html

+0  Books I read in year 2018

Tag: life | Arduino | sklearn | tensorflow
Robin Dong 发于 2018年12月20日 12:02 | 点击: 894 | 展开摘要
In the 2018 year, I continued to learn more knowledge about machine learning and deep Learning. “Deep Learning” is pretty suitable for me and “Hands-On Machine Learning with Scikit-Learn and TensorFlow” is also a won

查看全文: http://www.udpwork.com/item/17245.html

+0  Write text to file with disabling buffer in Python3

Tag: develope | python
Robin Dong 发于 2018年12月13日 14:27 | 点击: 879 | 展开摘要
In Python2 era, we could use these code to write the file without buffer:

file = open('my.txt', 'w', 0)
file.write('hello')
But in Python3 we can only write binary file by disabling buffer:

file = open('my.txt', 'wb', buffering = 0)
file.

查看全文: http://www.udpwork.com/item/17239.html

+0  A successful rescue for a remote server

Tag: ops | grub2
Robin Dong 发于 2018年12月07日 11:15 | 点击: 918 | 展开摘要
After installed CUDA-9.2 on a remote server, I found that the system can’t load nvidia.ko (kernel module) with dmesg:

Unknown symbol __stack_chk_fail (err 0)
The reason is the current kernel running on my system has turned on the CON

查看全文: http://www.udpwork.com/item/17233.html

+0  Some tips about python this week

Tag: develope | python
Robin Dong 发于 2018年11月29日 14:26 | 点击: 807 | 展开摘要
List of lists in python

Created a list of lists by using multiply symbol:

>>> a = [[]] * 2
>>> a
[[], []]
>>> a[0].append('hello')
>>> a
[['hello'], ['hello']]
It’s weird that adding one item to f

查看全文: http://www.udpwork.com/item/17219.html

+0  Compare implementation of tf.AdamOptimizer to its paper

Tag: machine learning | Adam | tensorflow
Robin Dong 发于 2018年11月16日 16:01 | 点击: 840 | 展开摘要
When I reviewed the implementation of Adam optimizer in tensorflow yesterday, I noticed that it’s code is different from the formulas that I saw in Adam’s paper. In tensorflow’s formulas for Adam are:

But the algorithm in

查看全文: http://www.udpwork.com/item/17201.html

+0  The bug about using hooks and MirroredStrategy in tf.estimator.Estimator

Tag: machine learning | tensorflow
Robin Dong 发于 2018年11月09日 14:25 | 点击: 966 | 展开摘要
When I was using MirroedStrategy in my tf.estimator.Estimator:

distribution = tf.contrib.distribute.MirroredStrategy(
["/device:GPU:0", "/device:GPU:1"])
config = tf.estimator.RunConfig(train_distribute=distributi

查看全文: http://www.udpwork.com/item/17194.html

+0  Some lessons from Kaggle’s competition

Tag: machine learning | Kaggle | Object Detection
Robin Dong 发于 2018年11月02日 13:23 | 点击: 844 | 展开摘要
About two months ago, I joined the competition of ‘RSNA Pneumonia Detection’ in Kaggle. It’s ended yesterday, but I still have many experiences and lessons to be rethinking.

1. Augmentation is extremely crucial. After usi

查看全文: http://www.udpwork.com/item/17180.html
|<<<1234567>>>| 一共16页, 189条记录