摘要: #include <stdio.h>#include <stdlib.h>#include <arpa/inet.h>#include <sys/types.h>#include <sys/socket.h>#include <sys/time.h>#include <netinet/in.h>#i 阅读全文
posted @ 2018-03-31 14:36 东宫得臣 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 我们在一个短整数变量中存放2字节的值0x0102,然后查看它的 两个连续字节c[0]和c[1],以此确定字节序。 #include <unistd.h>#include <stdio.h> int main() { union { short s; char c[sizeof(short)]; } 阅读全文
posted @ 2018-03-30 13:59 东宫得臣 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include <unistd.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/wait.h> #include <s 阅读全文
posted @ 2018-01-15 07:58 东宫得臣 阅读(189) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*- import paramiko import os, stat import sys import operator as op from string import Template def ssh_co 阅读全文
posted @ 2018-01-04 22:51 东宫得臣 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <vector>#include <cmath>#include <numeric> template <class T>double VectorCosine(const std::vector<T> &In1, const std::vec 阅读全文
posted @ 2017-11-01 21:52 东宫得臣 阅读(180) 评论(0) 推荐(0) 编辑
摘要: We can estimate the weight values for our training data using stochastic gradient descent. Stochastic gradient descent requires two parameters: Learni 阅读全文
posted @ 2017-11-01 21:47 东宫得臣 阅读(345) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string>#include <fstream>#include <sstream>#include <vector>#include <cmath>template <typename DataType>double sigmoid(Da 阅读全文
posted @ 2017-10-07 13:51 东宫得臣 阅读(433) 评论(0) 推荐(0) 编辑
摘要: At each step the weight vector is moved in the direction of the greatest rate of decrease of the error function, and so this approach is known as grad 阅读全文
posted @ 2017-08-20 11:22 东宫得臣 阅读(589) 评论(0) 推荐(0) 编辑
摘要: We turn next to the task of finding a weight vector w which minimizes the chosen function E(w). Because there is clearly no hope of finding an anlytic 阅读全文
posted @ 2017-08-17 21:48 东宫得臣 阅读(543) 评论(0) 推荐(0) 编辑
摘要: ##########mianmi.sh############ #!/usr/bin/expect set ip [lindex $argv 0] set password [lindex $argv 1] spawn ssh -o ConnectTimeout=5 -l root ${ip} ex 阅读全文
posted @ 2017-06-23 16:50 东宫得臣 阅读(317) 评论(0) 推荐(0) 编辑