原创 凸優化筆記(非常零碎)

1. Lipschitz Funcion(李比西斯函數) 對於不光滑(nonsomooth)的凸函數的分析引入了Lipschitz functions: 定義:  2.Nonexpansiveness of Projection(投影的非

原创 Linux程序安裝創建桌面圖標

以FileZilla爲例,從安裝程序到創建快捷方式。 安裝程序 衝官方網站找到相應版本的下載鏈接。 FileZilla Linux 下載完成後,打開終端,輸入安裝指令: sudo apt-get install filezilla

原创 Moreau Decomposition 和 共軛次梯度定理

在學習臨近梯度(proximal gradient)中遇到的問題。證明 Moreau Decompositon。

原创 抽象代數入門(二)

Field(域) Dfn: ”Field“ is a commutative ring , s.t. every non-zero element has inverse. 這個交換環對於乘法和加法都滿足交換性,而且對於所有非零元素都存在

原创 抽象代數入門(三)

一些域上多項式的概念 prime(素) Dfn: Then p is prime.   Unit(單位) Dfn: If  is unit, and , then: .  A given field may have infinite u

原创 抽象代數入門(四)

向量空間(vector space) Definition of vector space: a vector space is a set closed under vector additon and scalar multiplic

原创 抽象代數入門(一)

一、羣論 幺半羣(monoid) 之前看老師講的叫Abelian monoid(阿貝爾幺半羣),但是搜不到。 A monoid is a set closed under an associative binary operation a

原创 python對於文件的讀取和重建

這裏我想把關於對各類型文件的讀取方法以及對其中數據的操作,只要是我遇到的就紀錄下來 一.讀取 通常我會以open函數開頭,以讀取txt文件爲例: data = [] # I will store the data in this lis

原创 Bandit UCB推導

推導Reinforcement Learning Richard S.Sutton and Andrew G. Barto 第二章Bandit算法中的Upper-Confidence-Bound Action Selection. 預備知

原创 pickle模塊

pickle 實現序列化和反序列化。 protocol = 0, 用ASCII,protocol=1, 用 二進制。 >>> import pickle as P # python 3 1.pickle.dump(obj,

原创 PIL Image

from PIL import Image import numpy as np 1. Image.open(fp, mode='r') 根據路徑 fp 讀取圖片,這裏默認是隻讀格式。 >>> p = '/home/hushch

原创 os模塊

1.os.getcwd() Return an unicode string representing the current working directory. >>> os.getcwd() '/home/hushch' 2.os

原创 torch

from PIL import Image import numpy as np import torch import torchvision.transforms as T 1.From Tensor to Numpy: >>>

原创 Softmax Derivation

討論最簡單情況:      以神經網絡爲例:      假設在softmax層,輸入的數據是N維的一維數組,輸出結果是多分類的各個概率,假設爲C類。 --1. input: x --> import data with dimension

原创 Conditional Expectation & Entropy

Conditional Expectation(條件期望) 1.Derivation 假設有兩個離散隨機變量X,Y。他們的概率密度分別用 表示。則條件期望E(Y|X)爲: And:     Remark: 是關於X的函數。有: