Giter Site home page Giter Site logo

multiaspect-matrixfactorization-cnn-analysis's Introduction

Project1CodeDSAA2022

Paper Data and Paper Results

Link to Data Files

The above link contains 3 Items:-

  1. CIFAR100Dataset : Contains zip file for CIFAR100 datasets
  2. ExperimentResultsResNet18: Contains the results of an analysis of a ResNet-18 on CIFAR-100
  3. A Pretrained ResNet-18 on CIFAR-100

Requirements

  1. Python 3.7.6 and above
  2. Numpy 1.18.1 and above
  3. Pytorch 1.4.0 and above
  4. Scipy 1.4.1 and above
  5. install gradcam from https://github.com/jacobgil/pytorch-grad-cam

Command Template to Run the experiment

Prototype Command:

python3 dissectKNNResNet18.py FullPathToCifar100SuperClass/train/ FullPathToCifar100SuperClass/valKDD/ PathToPretrainedResnet18/Resnet18Cifar100 OutputFolderDirectory ResNet18Cifar100 20 20 50 1 1 1 1 1 0.001 0.00001 100 sgd NNDSVD False False False

Prototype Command 2 :

python3 dissectKNNResNet18.py /data/CifarLocal/train /data/CifarLocal/val/ None /outputs/DSAA2022Results/Cifar10/ ResNet18Cifar10 10 20 50 1 1 1 1 1 0.001 0.00001 100 sgd NNDSVD False False False

The parameter values shown were used for experimentation.

Use the following command to get help:

python3 dissectKNNResNet18.py -h

usage: dissectKNNResNet18.py [-h] rootDir rootDirTest networkFile outputFolderName NetworkName Rank1 numGroups maxIters lmbdaF lmbdaTV lmbdaOrtho samplingFactor samplingFactorTest lr wd numEpochs {sgd,adam,rmsprop} {random,ID,NNDSVD} {True,False} {True,False} {True,False}

positional arguments:

  • rootDir Enter the name of root folder which containts the data subfolders :
  • rootDirTest Enter the name of root folder which containts the test data subfolders :
  • networkFile Enter the name of root folder which containts the Network :
  • outputFolderName Enter the name(Path) of the Output Folder :
  • NetworkName Enter the name(Path) of the network file :
  • Rank1 Enter Rank 1 :
  • numGroups Enter the number of groups:
  • maxIters Enter Max no. of iterations:
  • lmbdaF Enter lambda F:
  • lmbdaTV Enter lambda TV:
  • lmbdaOrtho Enter orthogonality penalty:
  • samplingFactor Enter the ratio of dataset to be used:
  • samplingFactorTest Enter the ratio of dataset to be used:
  • lr learning rate for SGD to be used:
  • wd Enter the weight decay:
  • numEpochs Enter the number of epochs:
  • {sgd,adam,rmsprop} Enter the optimization algorithm
  • {random,ID,NNDSVD} Enter the initialization for P
  • {True,False} Enter if class based training is required
  • {True,False} Enter true if Data matrices have to be ignored
  • {True,False} Enter true if F matrix is to have group sparsity

multiaspect-matrixfactorization-cnn-analysis's People

Contributors

23uday 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.