原创 c++ split string

vector<string> split(const string& in, const string& delim) { stringstream tran(in.c_str()); string tmp; vector<stri

原创 boost compressed_matrix retrieve style is not random

typedef boost::numeric::ublas::compressed_matrix<float>::iterator1 it1_t; typedef boost::numeric::ublas::compressed_mat

原创 vi, getting multiple “Sorry, the command is not available in this version…” after reinstall

ry from within vim ... :version and if your get ... Small version without

原创 Armadillo sparse matrix get the index of an element

#include <iostream> #include <armadillo> using namespace std; using namespace arma; typedef sp_fmat::row_iterator it1_

原创 boost thread pool the parameters of the function boost::bind()

The function of boost::bind() can support max parameters number is 9, if t

原创 關於C++中模板中的typename和class的區別比較

C++箴言:理解typename的兩個含義 問題:在下面的 template declarations(模板聲明)中 class 和 typename 有什麼不同? template<class T> class Widget; //

原创 nethogs

自己的臺式機使用的是無線網卡,使用nethogs時候出現一下錯誤: ioctl failed while establishing local IP for selected device eth0. You may specify th

原创 latex 關於表格label位置引起的問題

今天在使用latex 的過程中, 遇到了一個很麻煩的問題 找了     找了好久,才發現原因是自己將label的命令寫在了表格之後,導致出現了上述情況。將label命令移到表格內容之後,上面的問題就解決了。。。。。

原创 深度學習概述:從感知機到深度網絡

(注:本文譯自一篇博客,作者行文較隨意,我儘量按原意翻譯,但作者所介紹的知識還是非常好的,包括例子的選擇、理論的介紹都很到位,由淺入深,源文地址)   近些年來,人工智能領域又活躍起來,除了傳統了學術圈外,Google、Microso

原创 c++ 容器的iterator的時間複雜度問題

經過測試,c++中的iterator的複雜度是O(n),與內涵類型的++時間消耗一樣

原创 Word 插入 橫線 粗細兩種 (類似 下劃線)

果如下圖   粗線插入方法:  另起一行,在英文輸入狀態下,按住Shift鍵不放,同時按“-”號(減號要連續輸入3下),而後按回車鍵,這樣,一條粗橫線就自動生成了。 細線插入方法: 另起一行,先把輸入法狀態由英文切換成中文,連

原创 boost::bind with functions that have parameters that are references

22down votefavorite 4 I noticed that when passing reference parameters to boost bind, those parameters won't

原创 vi setup

" This line should not be removed as it ensures that various options are " properly set to work with the Vim-related pa

原创 訓練深度神經網絡的時候需要注意的一些小技巧

翻譯網上的哈,我覺得有很大一部分從沒看到過,所以就翻譯了下,如有不對的地方,歡迎指正: 1、準備數據:務必保證有大量、高質量並且帶有乾淨標籤的數據,沒有如此的數據,學習是不可能的 2、預處理:這個不多說,就是0均值和1方差化 3、

原创 深度學習簡明介紹

本文翻譯自 A Brief Overview of Deep Learning。如果對神經網絡感興趣,閱讀 如何簡單形象又有趣地講解神經網絡是什麼? 這個問題下面的答案會很有幫助,強烈推薦。 (這是來自 Ilya Sutskever