Memory


  • 首页

  • 分类

  • 归档

  • 标签

周志华《机器学习》部分习题

发表于 2017-08-18   |   分类于 计算机

第2章

习题\(2.5\),证明 \[{\rm AUC} = 1-\ell_{rank}\] 其中, \[{\rm AUC} = \frac{1}{2}\sum_{i=1}^{m-1} (x_{i+1}-x_i)\cdot({y_i+y_{i+1}})\] \[\ell_{rank}=\frac{1}{m^+ m^-}\sum_{ {\boldsymbol x}^+\in D^+}\sum_{ {\boldsymbol x}^-\in D^-}\left( {\mathbb I}(f({\boldsymbol x}^+) < f({\boldsymbol x}^-)) + \frac{1}{2}{\mathbb I}(f({\boldsymbol x}^+) = f({\boldsymbol x}^-))\right)\] \(m^+,m^-\)分别为正例与反例个数,\(D^+,D^-\)为正、反例集合。

阅读全文 »

Libnids中TCP相关实现

发表于 2017-03-03   |   分类于 计算机

变量

nids_tcp_timeouts

双向链表nids_tcp_timeouts按结点的timeout从小到大排列,

tcp_latest, tcp_oldest

static struct tcp_stream *tcp_latest = 0, *tcp_oldest = 0;

tcp_latest指向最新的TCP连接,tcp_oldest指向最老的连接,所有TCP连接组成一个双向链表,前驱是更新的连接,后继是更旧的连接。

阅读全文 »

Libnids-1.24 API

发表于 2017-03-02   |   分类于 计算机

参考/翻译自官方的doc/API.html

简介

各种结构体与函数的声明定义在nids.h,要使用libnids的程序必须包含该头文件并链接libnids.a(或者libnids.so.xx)。 main函数通常是这样子:

1
2
3
4
5
6
7
8
9
main()
{
application private processing, not related to libnids
optional modification of libnids parameters
if (!nids_init() ) something's wrong, terminate;
registration of callback functions
nids_run();
// not reached in normal situation
}
阅读全文 »

Libnids安装

发表于 2017-02-27   |   分类于 计算机

安装

下好源码包,输入

1
2
3
./configure
make
make install

阅读全文 »

主机与虚拟机网络通信

发表于 2017-01-15   |   分类于 计算机

虚拟机CentOS上写了一个server程序,在主机Windows的client程序上,先sendto一个消息,然后等待server发送消息过来,但是程序一直阻塞在recvfrom。 刚开始以为是两者没有连接的原因,但是ping显示是连通的,上网查询后发现可能是虚拟机防火墙的问题,于是调用

systemctl stop firewalld

关闭防火墙,再次运行client程序,问题解决。

PE文件初步

发表于 2016-09-13   |   分类于 计算机

PE是Portable Executable简写,PE文件是32/64位Windows上的主流可执行文件,主要有EXE和DLL文件。 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include\WinNT.h定义了PE文件的数据结构,

阅读全文 »
12
漂浮

漂浮

We must know, we will know.

16 日志
2 分类
13 标签
Creative Commons
© 2016 - 2022 漂浮
由 Hexo 强力驱动
主题 - NexT.Mist
访客数 访问量