[返回] [最新] [最热门] [最高评价]

Some tips about Python, Pandas, and Tensorflow

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 para
...

Robin Dong 2019-02-06 10:47 | 查看: 4223

LinearSVC versus SVC in scikit-learn

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_
...

Robin Dong 2019-01-26 11:32 | 查看: 1046

Using keras.layers.Embedding instead of python dictionary

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].spli
...

Robin Dong 2019-01-17 13:22 | 查看: 1140

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

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
...

Robin Dong 2019-01-11 11:32 | 查看: 1077

Some errors in dataset pipeline of Tensorflow

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
B
...

Robin Dong 2019-01-04 15:13 | 查看: 1087

Books I read in year 2018

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-L
...

Robin Dong 2018-12-20 12:02 | 查看: 1219

Write text to file with disabling buffer in Python3

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 = o
...

Robin Dong 2018-12-13 14:27 | 查看: 1159

A successful rescue for a remote server

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 ru
...

Robin Dong 2018-12-07 11:15 | 查看: 1086

Some tips about python this week

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
...

Robin Dong 2018-11-29 14:26 | 查看: 1080

Compare implementation of tf.AdamOptimizer to its paper

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 form
...

Robin Dong 2018-11-16 16:01 | 查看: 1129

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

When I was using MirroedStrategy in my tf.estimator.Estimator:

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

Robin Dong 2018-11-09 14:25 | 查看: 1313

Some lessons from Kaggle’s competition

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. Augm
...

Robin Dong 2018-11-02 13:23 | 查看: 1052

...更多...