最新 | 最热门 | 最高评价

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

Tag: Uncategorized | Keras | Word Embedding
Robin Dong 发于 2019年01月17日 13:22 | 点击: 122 | 展开摘要
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 | 点击: 266 | 展开摘要
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 | 点击: 188 | 展开摘要
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 | 点击: 359 | 展开摘要
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 | 点击: 410 | 展开摘要
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 | 点击: 617 | 展开摘要
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 | 点击: 348 | 展开摘要
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 | 点击: 386 | 展开摘要
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 | 点击: 409 | 展开摘要
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 | 点击: 476 | 展开摘要
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

+0  How could it possible to assign an integer to string?

Tag: develope | c++
Robin Dong 发于 2018年10月22日 11:12 | 点击: 458 | 展开摘要
The snippet below could be compiled and run:

#include <map>
#include <string>
#include <iostream>

using namespace std;

int main(void) {
std::map<std::string, std::string> hmap;
hmap["a"] = "appl

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

+0  Move semantics in C++11

Tag: develope | c++11
Robin Dong 发于 2018年10月19日 15:18 | 点击: 720 | 展开摘要
After studying an example for Move Semantics of C++11, I write a more complete code snippet:

#include <iostream>

using namespace std;

class Intvec {
public:
explicit Intvec(size_t num = 0)
: m_size(num), m_data(new int[

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