1. 背景:在写DoS论文时,需要计算基于BIRCH算法聚类实验生成的数据子集的香农熵。根据香农熵的差异来表示不同的数据子集和原始数据之间是存在差异的,同时原始数据集的较大的香农熵也说明该数据集具有相对复杂的数据分布规律,间接证明使用BIRCH算法对数据进行预分类的操作是有意义的。 同时需要将数据子集的数据可视化以展现聚类算法的有效性。 2. 计算香农熵:代码中的数据集是10%的KDDCUP99数据集,该数据集经过归一化和独热编码的处理,其中仅包括Normal数据和DoS数据。香农熵的计算 公式如下: 根...
不知道有没有人发过,偶然逛知乎搜到的,链接 https://zhuanlan.zhihu.com/p/127958191
npm config set registry https://registry.npm.taobao.org 更换了淘宝的镜像,快多了,毕竟淘宝不会因网速耽误剁手的 参考资料: https://www.cnblogs.com/sddai/p/9388261.html
This work is written in English, because theree are no input tools on my raspberry pi devices. So i install it by typing the following commands: sudo apt-get install scim-pinpin But it doesnt work. Maybe it needs updating software source. sudo apt-get upda...
最近,升级Python部分库版本后启动flask出现 如下错误很是诡异: $ python manage.py runserver Traceback (most recent call last): File "manage.py", line 15, in <module> File "\Python\lib\site-packages\flask_migrate\__init__.py", line 12, in <module> from alembic.config import Config a...