原创 稀疏矩陣的存儲方法(DOK、LIL、COO、CSR, CRS)

存儲稀疏矩陣 經常用二維數組來存儲矩陣。 用數組的ai,ja_{i,j}ai,j​可以用索引值iii和jjj訪問。通常,iii是 行索引,從上往下編號,jjj是列索引,從左到右進行編號。對於m×nm × nm×n的矩陣,用這種格式

原创 Run Giraph on Hadoop 2.7.5

1. Download Giraph 1.3 source code. 2. Download Hadoop 2.7.5 3. vim pom.xml, change hadoop veriosn Replace <id>hado

原创 用實例說明PageRank的計算過程

初始值,每個節點的rank值都是1/6. 第一輪 以ripple爲例,它的rank值是josh貢獻的值1/6∗(1/2)∗0.851/6 * (1/2) * 0.851/6∗(1/2)∗0.85, base值0.15/60.15

原创 Pregel:一個大規模圖計算系統

本文不是原文翻譯,但是包含所有重點的內容。查看原論文請點擊此鏈接 1.簡介 1.1 爲什麼開發Pregel 爲每一種圖算法都定製開發一個分佈式程序需要非常大的工作。 現有的分佈式計算平臺不能滿足圖計算的需求。像MapRedu

原创 How to add Oracle JDBC driver in your Maven local repository

Here’s a simple guide to show you how to add an Oracle JDBC driver into your Maven local repository, and also how to re

原创 技術教程和文檔寫作的8要素

1. 從用戶視角考慮問題:他們要什麼, 而不是我們有什麼。 2. 小段授課,理論和實踐結合 3. 講是什麼, 也要講爲什麼 4. 懂10講1,以附加價值帶動產品使用。 5. 用實例講理論,將變量和公式變成實際案例 6. 邏輯(順序合理、思

原创 如何寫好項目文檔

引子 有太多的程序員(包括很多資深的程序員)不會寫文檔 有太多的項目沒有(完整的)文檔 即使有文檔,這些文檔達標了嗎? 你對文檔有正確的認識嗎? 你會寫文檔嗎?? 軟件項目的文檔是可有可無的嗎? 目錄

原创 Introduction to Algorithm - Chapter 13 Red-Black Trees

13.1 Properties of red-black trees A red-black tree is a binary tree that satisfies the following red-black propert

原创 大數據茶館-決策樹系列

1. 聊聊信息熵 2. 決策樹是何許人也 3. 信息增益、增益率、基尼係數 4. 隨機森林 (三個臭皮匠頂個諸葛亮) 5. AdaBoost 竟如此簡單 6. XGBoost, 機器學習的大殺器

原创 Andrew - Deep Learning - C4-Week2-1 Program Assignment - Keras tutorial - the Happy House

Welcome to the first assignment of week 2. In this assignment, you will: Learn to use Keras, a high-level neural n

原创 jni Java_com_sgx_jni_RaISVNative_decryptAndSealingPartData2 memory leak

The following code does not release memory correctly. JNIEXPORT void JNICALL Java_com_baidu_dragonshare_sgx_jni_R

原创 C4-Week1 Program Assignment - Convolutional Neural Networks: Step by Step

Convolutional Neural Networks: Step by Step Welcome to Course 4’s first assignment! In this assignment, you will im

原创 C2-Week2 Program Assignment - Optimization Methods

Optimization Methods Until now, you’ve always used Gradient Descent to update the parameters and minimize the cost.

原创 C2-Week1 Program Assignment(3 of 3) - Gradient Checking

Gradient Checking Welcome to the final assignment for this week! In this assignment you will learn to implement and

原创 C2-Week1 Program Assignment(1 of 3) - Initialization

Initialization Welcome to the first assignment of “Improving Deep Neural Networks”. Training your neural network re