原创 golang 線段樹實現

給出的代碼可以解決leetcode 307 區域和檢索 - 數組可修改 題目地址:https://leetcode-cn.com/problems/range-sum-query-mutable/ 題解地址:https://leetcod

原创 leaf protobuf demo例子

服務端的代碼可以參考:https://github.com/name5566/leaf/wiki/%E5%9C%A8-Leaf-%E4%B8%AD%E4%BD%BF%E7%94%A8-Protobuf 這裏面只貼客戶端的代碼: pack

原创 ubuntu (linux) 字體優化方法

其實很簡單,ubuntu下面字體模糊很多時候是因爲軟件找不到合適的字體隨便匹配字體導致的模糊,難看 使用 sudo apt install ttf* 把字體安裝全,那麼字體就會清晰很多,因爲軟件找到了匹配的字體

原创 如何修改gnome evince 文檔查看器的設置

比如說我們如果想關閉側邊欄的話,就在選項-》勾除側邊欄,這樣本文檔的側邊欄就隱藏了, 但是如果我們想要所有新打開的文檔都關閉側邊欄的話就要點擊一下 選項-》將當前設置設爲默認值,這樣所有新打開的文件就不會有側邊欄了

原创 交叉編譯 dhcp-4.2.5-P1

wget ftp://ftp.isc.org/isc/dhcp/4.2.5-P1/dhcp-4.2.5-P1.tar.gz tar -zxvf dhcp-4.2.5-P1.tar.gz cd dhcp-4.2.5-P1 1) 配置hos

原创 sgi stl linux下編譯運行

https://github.com/widon1104/sgistl_linux test目錄下面的例子可以直接編譯運行

原创 Programming assignment 3: Optimization and generalization 解答

轉載於:http://phvu.net/2012/11/19/neural-network-backprop-softmax-cross-entropy/

原创 linux下使用indent整理代碼

有時候在網上下載的代碼代碼風格是不很習慣,可以使用index來格式化 widon@widon-F3JR:~$ cat ~/.bin/indent_c.sh  #!/bin/sh ## C PARAM="-npro -kr -i8 -ts8

原创 交叉熵代價函數 求導過程

derivative of cost function for Logistic Regression

原创 交叉熵代價函數

本文是《Neural networks and deep learning》概覽 中第三章的一部分,講machine learning算法中用得很多的交叉熵代價函數。 1.從方差代價函數說起 代價函數經常用方差代價函數(即採用均方誤差M

原创 demangle函數實現

#include <cxxabi.h> #include <cstdio> void Exception::fillStackTrace() { const int len = 200; void* buffer[len];

原创 c++ 使用引用防止類的拷貝構造

舉一個例子,例子中類的成員函數返回了類的引用,從而避免了類的拷貝構造,提高了效率 #include <iostream> #include <vector> #include <cstdio> using namespace std;

原创 概率導論 MITx: 6.041x Introduction to Probability 視頻網盤下載

edx課程鏈接地址:https://www.edx.org/course/introduction-probability-science-mitx-6-041x-0edx上面課程在大陸要翻牆才能看,所以只能把視頻下下來看視頻網盤地址:h

原创 Kaggle | Digit Recognizer

Digit Recognizer題目地址 使用的就是mnist data, train set 42000, test set 28000 1) 使用random forest決策樹來實現,準確率0.966左右 library(ran

原创 7 Steps for Learning Data Mining and Data Science

How to learn data mining and data science? I outline seven steps and point you to resources for becoming a data scienti