Giter Club home page Giter Club logo

internship-at-the-basirtech's Introduction

Internship at the Basirtech

Codes, Source, Results and Report of Internship at the Basirtech company.


In this part I'm trying to summerize my report. So please check my report for more detail.

Project contains:

  1. PCA
  2. SVM
  3. Tuning
  4. Neural Network
  5. Shape Context Descriptor
  6. Report

PCA

I use sklearn digit dataset. My aim was to reduce dimention of these images to get at least 99% variance. Sklearn digit is 8*8 images. With only 39 digits I get 99% variance.

Variance PCA

SVM

Fitting Svm with RBF kernel to the reduced dimention dataset by PCA and plotting recall and precission.

  • Precission score for train dataset: 1
  • Precission score for test dataset: 0.9902
  • Recall score for train dataset: 1
  • Recall score for test dataset: 0.9907

Tuning

In this part I use Mnist digit dataset. I used ⅼibsvⅿ library to implement SVM. Then I evaluate my best classifier with evaluation dataset to accurate the precission. After I finalized my classifier, I predict test dataset.

  • Accuracy for train dataset: 99.37%
  • Accuracy for test dataset: 98.34%

I extract the images with wrong labeled by My final SVM. Most of them was low quality and hard to label by human being. I also create a text file containing name of wrong labeled images and the probability of labeling in these images. I also plot a histogram of these probabilities for train and test dataset.

Tuning

Neural Network

Designing two Neural Network model with tensorfⅼow.

  • One layer fully connected
  • One layer localy connected + one layer fully connected

For each model I first train my model and then find its precision and loss.

  • Model 1 had 0.933 precision and 0.24 loss.
  • Model 2 had 0.9984 precision and 0.013 loss.

Shape Context Descriptor

I tried to create a log-polar histogram for each image and then I use this histogram as feature vector. For each image, I found the bigest contour on each image and set the points lying on the the contour as my points needed for Shape Context Descriptor. Then I tune a SVM model on the feature vector created from log-polar histogram and I found accuracy for train and test dataset.

  • Accuracy for train dataset: 92.19%
  • Accuracy for test dataset: 66.68%

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.