GithubHelp home page GithubHelp logo

Comments (10)

liangkai0088 avatar liangkai0088 commented on June 22, 2024 1

Hello, I just opened my email and saw this problem. I solved this problem in three steps:
The first step is to install all third-party dependencies in accordance with the requirements in readme.md. This is important.
The second step, that problem occurred at that time, it seems that it is a problem of multi-threading and files are not found. I added the code to determine the exception to the tool file util.py file. As shown in the photo.
The third step is to configure the path where the vpn-nonvpn file is stored and the path where the pickle file is to be generated.
Just fine

Yes, but I think that if you want to calculate the entropy for the data, I think it is best to use numpy to convert pickle to a calculation matrix before performing the calculation. The above is my suggestion

I'm sorry to reply to you so late, I'm writing a dissertation recently
TIM图片20191223185841

from deeppacket.

liangkai0088 avatar liangkai0088 commented on June 22, 2024 1

Thanks a lot, you were right, the problem was that there was no folder for the pickle files to be generated, so I added a folder named "data", and it worked.

Yes, but I think that if you want to calculate the entropy for the data, I think it is best to use numpy to convert pickle to a calculation matrix before performing the calculation. The above is my suggestion

I didn't get exactly what you mean by "calculation matrix"?
So I ran this code with one of the pcap files and I got two pickle files:
"email1b.pcap.pickle" , "email1b.pcap_class.pickle"
Do you have any ideas how I should deal with these files?

The file has a pickle file converted to a Packet Bytes Matrix by numpy,E.g. X_train or X_test .You can take a look after the output. It may be better to find the sequence of X_train to calculate the entropy. The above is only my opinion. If there is something wrong, please point out that I am a Chinese and English is not my native language, so my expression may Not very accurate, you can use Google Translate to translate into Chinese or English to see. Thank you

from deeppacket.

KimythAnly avatar KimythAnly commented on June 22, 2024

from deeppacket.

KimythAnly avatar KimythAnly commented on June 22, 2024

您好

錯誤內容是說沒有找到data/icq_chat_3a.pcap.pickle檔,請問您的資料夾相對位置有沒有設置正確呢?可能是沒有找到data這個資料夾,請您先新增這個資料夾再試試看!

from deeppacket.

liangkai0088 avatar liangkai0088 commented on June 22, 2024

你好
我已经按照代码更改了文件相对位置路径,但是官网中的数据集中并没有.pickle文件,只有.pcap和.pcapng文件

from deeppacket.

KimythAnly avatar KimythAnly commented on June 22, 2024

照理來說那段代碼是在生成 .pickle 文件的,所以你並不需要有 .pickle 文件,他是在生成的時候出錯
請問你有 "precious deeppacket/data" 這個資料夾嗎?

from deeppacket.

spacelover1 avatar spacelover1 commented on June 22, 2024

Hello there,
I have got the same error and I have checked the relative path, it is correct. I do not know what is the problem.
git

I also have another question, I am working with the same dataset and I need to convert these pcap files to binary sequence, in order to use these sequences to compute entropy, can I use the pickle files for this purpose?

from deeppacket.

liangkai0088 avatar liangkai0088 commented on June 22, 2024

Hello there,
I have got the same error and I have checked the relative path, it is correct. I do not know what is the problem.
git

I also have another question, I am working with the same dataset and I need to convert these pcap files to binary sequence, in order to use these sequences to compute entropy, can I use the pickle files for this purpose?

Hello, I just opened my email and saw this problem. I solved this problem in three steps:
The first step is to install all third-party dependencies in accordance with the requirements in readme.md. This is important.
The second step, that problem occurred at that time, it seems that it is a problem of multi-threading and files are not found. I added the code to determine the exception to the tool file util.py file. As shown in the photo.
The third step is to configure the path where the vpn-nonvpn file is stored and the path where the pickle file is to be generated.
Just fine

Yes, but I think that if you want to calculate the entropy for the data, I think it is best to use numpy to convert pickle to a calculation matrix before performing the calculation. The above is my suggestion

I'm sorry to reply to you so late, I'm writing a dissertation recently
TIM图片20191223185841

from deeppacket.

spacelover1 avatar spacelover1 commented on June 22, 2024

Thanks a lot, you were right, the problem was that there was no folder for the pickle files to be generated, so I added a folder named "data", and it worked.

Yes, but I think that if you want to calculate the entropy for the data, I think it is best to use numpy to convert pickle to a calculation matrix before performing the calculation. The above is my suggestion

I didn't get exactly what you mean by "calculation matrix"?
So I ran this code with one of the pcap files and I got two pickle files:
"email1b.pcap.pickle" , "email1b.pcap_class.pickle"
Do you have any ideas how I should deal with these files?

from deeppacket.

liangkai0088 avatar liangkai0088 commented on June 22, 2024

The file has a pickle file converted to a Packet Bytes Matrix by numpy,E.g. X_train or X_test .You can take a look after the output. It may be better to find the sequence of X_train to calculate the entropy. The above is only my opinion. If there is something wrong, please point out that I am a Chinese and English is not my native language, so my expression may Not very accurate, you can use Google Translate to translate into Chinese or English to see. Thank you

from deeppacket.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.