2

I have 25GB .pcap files and want to send the packet bytes to CNN but converting the .pcaps file to CSV makes a large file. I know how to read packets from .pcap files and make a Dataframe or list, is there any way to convert this to PyTorch format? and make train and Test data?

1

1 Answer 1

1

Use the tensor constructor on the dataframe values :

torch.tensor(dataframe.values)

This will create a tensor then do required pre-processing which is required by your model

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.