Coder Social home page Coder Social logo

research_methods's Introduction

research_methods_mini_project

CS4040: Research Methods - mini project

Project Setup Instructions

To run the files you need:

  • Python 3.11.4
  • pip

Creating a Virtual Environment

To create a virtual environment, run the following command:

For Windows:

python -m venv vir_env

For Unix/MacOS:

python3 -m venv vir_env

Activating the Virtual Environment

For Windows:

vir_env\Scripts\activate

For Unix/MacOS:

source vir_env/bin/activate

Once the virtual environment is activated, install the required packages using pip:

pip install -r requirements.txt

Run the files using:

python "name_of_the_file.py"

To get the results of the models (NH1) run both model_1.py and model_2.py -> this will give u the first confusion matrix metrics, and all results for all attack types per each intensity level.

Then inspect the Excel file to obtain the graphs (attack types and intensities graphs)

For the ROC and PR curves run the roc_curves.py file.

For the chi-square test (NH2), contingency table and mosaic plot, run the chi_square_test.py

CARLA SIMULATION FRAMEWORK

To inspect how the simulation environment works and how it collects the data, check carla_simulation_framework.py file. If you wanna run the simulation, you would need to have installed the CARLA simulator which can take a significant amount of time to download. Make sure to install the version corresponding to the file.

Attacks are implemented in the attacks directory.

All datasets + results of the datasets can be found in the data directory.

I could not submit the datasets due to the limited zip file size allowed.

If you would like to replicate my results, please visit my GitHub repository and clone it, or if you just want to inspect the datasets. Apologies for the inconvenience but it was not possible to upload the files due the limited amount of size allowed.

GitHub repository link: https://github.com/athenacon/research_methods

research_methods's People

Contributors

athenacon avatar

Watchers

 avatar

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.