原创 [OpenVINO 學習筆記-02] Darknet模型轉IR數據格式
本文旨在記錄如何將YOLO系列模型轉換IR數據格式,所有的YOLO模型最初實現框架是Darkent,而Darknet包含有兩個文件: .cfg 模型配置文件 .weights 模型權重文件 Intel OpenVINO中並沒有直接封裝從d
原创 【darknet源碼解析-28】圖像RGB2YUV與YUV2RGB格式互轉
本系列爲darknet源碼解析,由於在image.c中涉及到圖像的RGB,YUV,HSV格式,在本文我們將image.c中涉及到的rgb_to_yuv()函數以及yuv_to_rgb()函數進行解析. RGB格式轉爲YUV格式 對
原创 [LeetCode 解題報告]127. Word Ladder
Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation seque
原创 [LeetCode 解題報告]131. Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrom
原创 [LeetCode 解題報告]134. Gas Station
There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an
原创 [LeetCode 解題報告]152. Maximum Product Subarray
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has th
原创 [LeetCode 解題報告]150. Evaluate Reverse Polish Notation
Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Each operand
原创 [LeetCode 解題報告]125. Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For
原创 【darknet源碼解析-27】l2norm_layer.h 與 l2norm_layer.c 解析
本系列爲darknet源碼解析,本次解析爲src/l2norm_layer.h 和 src/l2norm_layer.c 兩個,l2norm_layer主要是完成在每個batch對每個通道進行l2標準化操作; 正向傳播: 反向傳播:
原创 [LeetCode 解題報告]144. Binary Tree Preorder Traversal
Given a binary tree, return the preorder traversal of its nodes' values. Example: Input: [1,null,2,3] 1 \
原创 【溫故而知新】高斯判別分析(Gaussian Discriminant Analysis)
給定數據集; 概率判別模型是直接去求,如下: 高斯判別分析是一種概率生成模型,這裏我們需要最大化後驗概率估計,對於二分類,高斯判別分析並不是直接去求和的值,而是去比較與的大小關係,而是對聯合概率進行建模;
原创 【溫故而知新】PCA
給定數據集:, 其中 , 樣本均值和樣本方差的矩陣表達 樣本均值: , 這裏記 樣本方差:
原创 [LeetCode 解題報告]149. Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Example 1: Input:
原创 [LeetCode 解題報告]132. Palindrome Partitioning II
Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts neede
原创 【溫故而知新】線性迴歸(Linear Regression)
本文主要以下幾個角度來講解線性迴歸: 最小二乘法LSE(矩陣表達,幾何意義) 概率角度:最小二乘法LSE——noise爲Gaussian MLE 正則化: L1——Lasso L2——Ridge 正則化的幾何解釋 最小二乘法 定義爲: