-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A problem about the code implementation of ‘An Intrusion Detection System based on Deep Belief Networks’ #3
Comments
Hello @Sandrw, Thank you for your comment. I'm not sure I understand your question, but I'll try to give you some details on the implementation. Indeed the If you have more or fewer classes (for e.g. keeping the Please let me know if this could help. |
|
What is your environment? What are the parameters used? Also, are you using Cuda to run the experiments? If so, could please confirm if you have the same issue when using the CPUs? |
Yes, I used CUDA Version: 11.7. Because of the version correspondence problem, I used torch Version: 1.13.0. I think it will run faster on the GPUs than on the CPUs, so I didn't try it on the CPUs |
Could you please try it on the CPUs just to check if it's still throwing the error? |
OK,I'll try it.Thank you for your reply! |
Hello, I tried to run on CPUs, but the same problem occurred when I ran on GPUs for the first time. The error "IndexError: Target 6 is out of bounds."
|
Hello, I searched the relevant information on the Internet, and the answer is basically two kinds, one is that the label doesn’t start from 0, the other is that n_ class and the number of nodes in the output layers are different. However, neither of them can solve the problem. In addition, I ran on the CPU again, and the result shows that it may not be a problem of the environment. I would be grateful if you could give me some guidance. I will look forward to your reply! |
Hello,@othmbela, I have tried other methods, but I still haven't solved this problem. If you have time, could you give me some guidance? I really sincerely look forward to your reply |
i ran on cpu and encounter the same problem, do you mean when you run again, the result becomes normal? Have you found the solution my friend. |
I remember that finally, I found some small problems with the dataset. After the modification, I put the code on the CPU, and the problem was solved inexplicably. However, I don't think it was caused by the problem with the dataset. I feel that the situation is very mysterious, so I'm sorry I didn't provide you with useful information
刘小志
***@***.***
…------------------ 原始邮件 ------------------
发件人: "othmbela/dbn-based-nids" ***@***.***>;
发送时间: 2022年12月8日(星期四) 晚上9:29
***@***.***>;
***@***.******@***.***>;
主题: Re: [othmbela/dbn-based-nids] A problem about the code implementation of ‘An Intrusion Detection System based on Deep Belief Networks’ (Issue #3)
Hello, I searched the relevant information on the Internet, and the answer is basically two kinds, one is that the label doesn’t start from 0, the other is that n_ class and the number of nodes in the output layers are different. However, neither of them can solve the problem. In addition, I ran on the CPU again, and the result shows that it may not be a problem of the environment.
I would be grateful if you could give me some guidance. I will look forward to your reply!
i ran on cpu and encounter the same problem, do you mean when you run again, the result becomes normal? Have you found the solution my friend.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
i have the same problem, IndexError: Target 6 is out of bounds. can you help me how to fix the problem, thank you before |
Hello, I also encounter this problem while running the code. I think the reason is the unmatched code between data preprocessing and mainning process. Data preprocessing grouped labels into 7 classes inluding infiltration, but main process set a 6 labels list without infiltration class. The code ran successfully when I added infiltration class in main.py. |
can you show me how you add infiltration clss in main.py your code screenshot |
|
This error occurred, "Target 6 is out of bounds.". In general, it may be because the number of labels in the dataset is<=6, while the number of target classes set in the code is>6. Please carefully check the number of target classes in the processed dataset. Due to time constraints, I can't remember exactly where the problem lies, but it's roughly in this direction. Good luck to you
***@***.***
…---- Replied Message ----
From
***@***.***>
Date
2/18/2024 15:18
To
***@***.***>
Cc
Zhihua ***@***.***>
,
***@***.***>
Subject
Re: [othmbela/dbn-based-nids] A problem about the code implementation of ‘An Intrusion Detection System based on Deep Belief Networks’ (Issue #3)
Screenshot.2024-02-18.at.12.48.00.PM.png (view on web)
even i am facing the same issue.please can someone help
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
can you pls send me procedure of this solution at [email protected] |
Hello, I feel deeply after reading your paper 'An Intrusion Detection System based on Deep Belief Networks'. I have to say, your ideas and abilities are great.But I have a question. Your paper mentioned that the "Infiltration" class was deleted when merging classes. According to Table 1: Class distribution of CICIDS2017 dataset, the merged dataset should only have 6 classes, There are also 6 classes in the deepBeliefNetwork.json file, but why do I implement the code when n_ Classes=6 will report an error, n_ Only when classes=7 can I run?I look forward to your reply. Thank you!
The text was updated successfully, but these errors were encountered: