1 Star 0 Fork 2

xiaxiaxia110/Intrusion-Detection

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Config.py 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
Renovamen 提交于 2019-06-14 15:26 +08:00 . [Feat] Add bayesian network
# 参数配置:分类器、数据集路径
class Config:
DATA_PATH = "Dataset/KDDCUP99.csv"
LABEL = [
"X1",
"X2",
"X3",
"X4",
"X5",
"X6",
"X7",
"X8",
"X9"
]
if_multi = True
# Random Forest parameters
rf_params = {
'n_jobs': -1,
'n_estimators': 500,
'warm_start': True,
'max_depth': 6,
'min_samples_leaf': 2,
'max_features' : 'sqrt',
'verbose': 0
}
# Extra Trees parameters
et_params = {
'n_jobs': -1,
'n_estimators':500,
'max_depth': 8,
'min_samples_leaf': 2,
'verbose': 0
}
# AdaBoost parameters
ada_params = {
'n_estimators': 500,
'learning_rate' : 0.75
}
# Gradient Boosting parameters
gb_params = {
'n_estimators': 500,
'max_depth': 5,
'min_samples_leaf': 2,
'verbose': 0
}
# Support Vector Classifier parameters
svc_params = {
'kernel': 'linear',
'C': 0.025
}
mlp_params = {
'alpha': 1.9,
'max_iter': 700
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/xiaxiaxia110/Intrusion-Detection.git
git@gitee.com:xiaxiaxia110/Intrusion-Detection.git
xiaxiaxia110
Intrusion-Detection
Intrusion-Detection
master

搜索帮助