Giter Club home page Giter Club logo

dnn_project's Introduction

DNN PRoject

Overview

The project aims to compare the performances of two sets of three Convolutional Neural Networks (CNNs) by coding and in the report. The CNNs in each set share the same architecture but differ in their training/initialization schema. The performance comparisons are based on the MNIST 2-D dataset, and the CNNs are built and trained using the PyTorch library.

Technical Requirements

  • Library: PyTorch
  • Dataset: MNIST 2-D dataset
  • Code: Python file or Jupyter Notebook
  • Report: PDF file describing the experiments, including results, analysis, and personal comments

CNN Architectures

Set 1: A1

  • CNN Architecture:
    • One convolutional layer with 4 kernels
    • One fully connected layer
    • One Softmax output layer
    • Cross entropy loss

Set 2: A2

  • CNN Architecture:
    • One convolutional layer with 4 kernels
    • One additional convolutional layer (number of kernels of your choice)
    • Optionally, more convolutional layers can be added
    • One fully connected layer
    • One Softmax output layer
    • Cross entropy loss

Note: Kernel sizes and activation functions for the hidden layers should be decided.

Training/Initialization Schemas

  • HF Schema:
    • The first layer is initialized with the by-hand strategy
    • The remaining layers are initialized with the default strategy
    • All layers except the first one (Frozen layer) are trained
  • HT Schema:
    • The first layer is initialized with the by-hand strategy
    • The remaining layers are initialized with the default strategy
    • All layers, including the first one, are trained
  • DT Schema:
    • All layers, including the first one, are initialized with the default strategy
    • All layers, including the first one, are trained

Experiments and Comparisons

  1. In-Set Comparison:

    • Compare the performances (loss and accuracy at each epoch) of all the CNNs within each set (A1 or A2) to understand the impact of the training/initialization schema while keeping the architecture fixed.
  2. Architecture Comparison:

    • Compare the performances (loss and accuracy at each epoch) of CNNs with different architectures while maintaining the same training/initialization schema.
  3. Recovery Comparison:

    • Compare the performances (loss and accuracy at each epoch) of A2-HF to all the CNNs in Set 1 (A1-*). Compare the following pairs:
      • A2-HF/A1-HF
      • A2-HF/A1-HT
      • A2-HF/A1-DT

How to Use

  1. Clone the repository.

  2. Install the required libraries.

     pip install -r requirements.txt
  3. Run the Jupyter Notebook containing the code for the experiments.

  4. Refer to the report (PDF file) for detailed analysis, results, and personal comments on the conducted experiments.

Author

Vlad Bulhakov

dnn_project's People

Contributors

vplev23 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.