原创 【深度學習】logistic regression 中的反向傳播 (Back Propagation)

logistic regression 中的反向傳播 (back propagation) 梯度下降 在《深度學習中的 logistic regression》 一文中,最後我們得到了 logistic regression 的

原创 【深度學習】Grad-CAM 使用 MNIST + LeNet 基於 tensorflow 生成分類器對於數據的位置權重(熱圖 HeatMap)

grad-CAM 使用 MNIST 基於 tensorflow 前言 在上一篇文章中,我們給出了在 MNIST + LeNet 的 CAM 實現,但是使用 CAM 時,需要對模型的網絡進行更改,使用 GAP 代替 FC layer

原创 【深度學習】GoogLeNet 中 inception v2 (filter: 3*3,1*n) 的 tensorflow 的簡單實現(沒有使用 slim)

GoogLeNet 中 inception v2 (filter: 3*3) 的 tensorflow 的簡單實現(沒有使用 slim) 前言 本篇代碼與上一篇一樣,沒有使用 silm,實現 inception v2 的 3*3

原创 【深度學習】CNN + CIFAR10 學習筆記(數據輸入 mini-batch)(基於 TENSORFLOW)

前言 爲加快梯度下降收斂速度,採用了 MINI-BATCH 的方法進行數據供給,每次給予 BATCH_SIZE 項數據進行運算。 代碼 cifar10_input.py #cifar10_input.py import nump

原创 【機器學習】用 tensorflow 實現隨機森林 RandomForest in tensorflow (mnist 示例)

隨機森林 隨機森林的基本知識,許多博客都已經講的很清晰。 但是用 tensorflow 實現的代碼卻很少。 博主屬於機器學習未入門級別,純屬分享一段可以運行的隨機森林代碼。若有錯誤,麻煩指出。 本代碼實現用 mnist 示例,通過

原创 【代碼規範】競賽 C/C++ 通用代碼規範

前言  此規範爲通用規範,爲參加競賽隊伍統一代碼風格而設定。 整體規範 1. 空行:在長代碼的條件下,若代碼量較大,應給不同作用的代碼塊中間用適當的空行隔開。若代碼量過大,因適當的使用函數。 2. 括號:左括號不換行。 3. 縮進:推薦用

原创 [Problem b HYSBZ - 2301][GCD HDU - 1695] 莫比烏斯反演 + 容斥 + 分塊

Problem b HYSBZ - 2301 對於給出的 nnn 個詢問,每次求有多少個數對 (x,y)(x,y)(x,y) ,滿足 a≤x≤ba ≤ x ≤ ba≤x≤b , c≤y≤dc ≤ y ≤ dc≤y≤d ,且 g

原创 莫比烏斯反演(一):整除分塊

莫比烏斯反演(一) 前言     終於要學莫比烏斯反演啦,封存了半年數論,爲了一個星期後的南昌,不得不擴充更廣的知識面。遺憾的是,打完南昌可能就要退役了。     雖然打完南昌一站可能退役了,但是也不能放棄算法的學習。 (2019

原创 MNIST Handwritten Digit Recognition in PyTorch (Nerual Network)

#!/usr/bin/env python # coding: utf-8 # In[1]: import torch import torchvision import matplotlib.pyplot as plt

原创 【Study Notes】Mathematics for Machine Learning: Linear Algebra (Week 3)

Introduction This is a study note of the course Mathematics for Machine Learning: Linear Algebra on the coursera. I

原创 【Study Notes】Mathematics for Machine Learning: Linear Algebra (Week 2)

Introduction This is a study note of the course Mathematics for Machine Learning: Linear Algebra on the coursera. I

原创 【Linear Algebra】Eigen Vectors and Eigen Values

Introduction In the last post, we require you should have knowledge about Linear algebra, like eigen vectors and ei

原创 【Machine Learning】Understanding Principal Component Analysis (PCA)

Introduction The pupose of this post is my note in PCA learning, but maybe you can learn some details about PCA. If

原创 【Machine Learning】 Understanding K-means Clustering Algorithm

Introduction This is my first English blog. In order to improve my English comprehension, I will try to write more

原创 【SUSTOJ】愚人節場(做做看7)題解

【SUSTOJ】愚人節場(做做看7)題解 2020年東京奧運會 輸出 “2021” 即可,不知道原因請百度。 自然語言處理 只有中文,日語和英語。這三種語言有着明顯的特徵。 黃色字體只不過是個煙霧彈,其實並沒有很難。 中文:由聲母