please code in python, I really need to know this works.. kindly help me out... please use can use any sample dataset for demo You may use PyTorch or Keras libraries for building deep learning models. A) Implement a single-layer neural network model that is used to classify the "CAN intrusion data samples"  into normal and anomalous classes (0: normal, 1: attack). Use the standarized training set from Q1E) to train the network. The details of the model are as follows: Use a Sigmoid as the output layer acitivation function to enable non-linearity. Use the binary cross-entropy loss as a training criterion. Use Stochastic gradient descent optimizer with a learning rate of 0.1. Run the model for 10 iterations/epochs. Record the loss for each iteration, and make a plot of iterations/epochs vs loss(Binary Cross Entropy). Print out the precision, recall, and F1-score of the test set. Print out the model execution time (including both training and testing time) in milliseconds. Please keep two decimal places.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

please code in python, I really need to know this works.. kindly help me out... please

use can use any sample dataset for demo

You may use PyTorch or Keras libraries for building deep learning models.

A) Implement a single-layer neural network model that is used to classify the "CAN intrusion data samples"<you can you can sample data>  into normal and anomalous classes (0: normal, 1: attack). Use the standarized training set from Q1E) to train the network.

The details of the model are as follows:

  • Use a Sigmoid as the output layer acitivation function to enable non-linearity.
  • Use the binary cross-entropy loss as a training criterion.
  • Use Stochastic gradient descent optimizer with a learning rate of 0.1.
  • Run the model for 10 iterations/epochs.

Record the loss for each iteration, and make a plot of iterations/epochs vs loss(Binary Cross Entropy). Print out the precision, recall, and F1-score of the test set. Print out the model execution time (including both training and testing time) in milliseconds. Please keep two decimal places.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education