原创 A Baseline for Few-shot Image Classification

Motivation 各種few shot方法五花八門, 超參數越來越多, 優化方法越來越複雜, 是否真的有必要? 模型真的學到了few shot嗎? Method 文章提出一個fine-tune類型的baseline, 擊敗了所

原创 Anomaly Detection in Video Sequence with Appearance-Motion Correspondence

Motivation 之前的methods要麼用prediction要麼用Conv-net, balabala很多不好. Method 文章把U-Net和Conv-AE合一塊, 一個找appearance的異常, 一個找motio

原创 Future Frame Prediction for Anomaly Detection – A New Baseline

Motivation 傳統anomaly detection方法以及reconstruction based deep learning methods都不能保證非常好的檢測出anomaly. Method 使用video pre

原创 Binary Cross Entropy

我們從兩種角度來推導. Bernoulli Distribution 對於任意一個樣本(x,y)(x,y)(x,y), 我們希望模型能夠預測 P(y∣x)={p^if y=11−p^if y=0 P(y|x) = \beg

原创 LeetCode--Big Countries

思路:    略select t1.name,t1.population,t1.area from World t1 where t1.area>3000000 or t1.population>25000000 點贊

原创 win10:Anaconda3+tensorflow-gpu+keras

1.安裝Anaconda32.打開prompt: conda install pip; pip install tensorflow-gpu==1.43.安裝cuda8.04.下載cudnn6    覆蓋 點贊

原创 LeetCode--Judge Route Circle

思路:    遍歷字符串,如果'U'和'D'相等且'L'和'R'相等,則爲true。class Solution { public boolean judgeCircle(String moves) { int[]

原创 LeetCode--Jewels and Stones

思路一:遍歷循環S的每一個字符,查看J中是否包含該字符。時間複雜度爲O(n^2)class Solution { public int numJewelsInStones(String J, String S) {

原创 LeetCode--All Paths From Source to Target

思路:    先按照數組順序遍歷索引,直到索引到達最後一個,添加索引,返回結果。以該方式遞歸,不斷將之前的索引加入到每個path的開頭,最後返回最終結果。class Solution { public List<List<Inte

原创 Arduino數據輸出到excel

在用MPU6050的時候想要把加速度和角速度的信息做成圖表,但SerialChart只能實時的顯示圖形但貌似不能一個個導出來,我在網上找了一下發現沒有特別好的輸出到excel的方法,翻出去後看到一篇英文博客在講用一個叫PLX-DAQ的軟件

原创 LeetCode--Swap Salary

思路:    略update salary set sex=case sex when 'm' then 'f' else 'm' end 點贊 收藏 分享

原创 LeetCode--Binary Tree Pruning

思路:    使用後序遍歷,從最底端開始,對於某一個節點,如果它沒有子節點且它的值爲0,就將它設爲null,然後返回給它的父節點。/** * Definition for a binary tree node. * public cl

原创 LeetCode--Self Dividing Numbers

思路    遍歷所有數字,對每個數字遍歷所有位. 點贊 收藏 分享 文章舉報 Lirsoon 發佈了33 篇原創文章 · 獲贊 3 · 訪問量 4937 私信

原创 LeetCode--Array Partition I

思路:    將數組從大到小排列,將偶數位的數字相加.

原创 LeetCode--Reverse String

思路:    從後遍歷字符串,將每個字符加入到字符數組中,最後轉化爲字符串格式.class Solution { public String reverseString(String s) { char[] res