摘要:
X = [ones(m, 1) X];temp = X * Theta1';t = size(temp, 1);temp = [ones(t, 1) temp];h = temp * Theta2';[max_num, p] = max(h, [], 2);Without Sigmoid funct... 阅读全文
摘要:
require 'torch'require 'gnuplot'local nData = 10local kWidth = 1local xTrain = torch.linspace(-1, 1, nData)local yTrain = torch.pow(xTrain, 2)print(xT... 阅读全文
摘要:
Vertification of an assignment from Stochastic Processing. Using Brute Force and "itertools" library.import itertoolsdim = 100m = list(range(1, dim+1)... 阅读全文
摘要:
php中的mail()函数默认调用的是sendmail,这次我将其换成了轻量级的msmtp。在次过程中涉及到:修改配置文件php.ini,创建配置文件msmtprc或(.msmtprc)并修改其权限。创建msmtp的配置文件/etc/msmtprc或~/.msmtprc:1 account defa... 阅读全文
摘要:
最近玩Arduino发现,在编写函数库的时候要用到C++。正好手头有一本教材,于是时隔2年,开始重学。又看到重载、构造、拷贝这些词竟然还有些小兴奋。开个系列日志记录一下学习过程中的问题和体会。看到输入输出的时候想到了C++对C的兼容性,于是试了一下printf函数。 1 # include 2 # ... 阅读全文