LFD Book Forum  

Go Back   LFD Book Forum > Course Discussions > Online LFD course > Homework 8

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2012, 01:18 AM
carto carto is offline
Junior Member
 
Join Date: Aug 2012
Posts: 3
Default Intensity and Symmetry

May I know precisely how to obtain the features intensity and symmetry from a 16 by 16 binary matrix so that I can apply the classifiers in Homework 8?

I thought intensity is the number of 1's divided by 16^2. However, the entries in the intensity column (from the file features.train) multiplied by 16^2 are not integers. Also, why are the symmetry features negative numbers?

I am asking this question because I want to hand write a digit and see if the program can recognize it right.

Thanks in advance!
Reply With Quote
  #2  
Old 09-06-2012, 11:16 AM
rainbow rainbow is offline
Member
 
Join Date: Jul 2012
Posts: 41
Default Re: Intensity and Symmetry

There is matlab code http://amlbook.com/support.html. I haven't had a look at it myself.
Reply With Quote
  #3  
Old 09-06-2012, 12:05 PM
magdon's Avatar
magdon magdon is offline
RPI
 
Join Date: Aug 2009
Location: Troy, NY, USA.
Posts: 595
Default Re: Intensity and Symmetry

You are correct about the definition of intensity. You can see the support matlab code at

http://www.amlbook.com/support.html

which gives the details of the computation. The images actually contain grayscale values not binary 1,0 which is why the intensity features multiplied by 16^2 are not integers.

Caveat: The images are preprocessed using image processing and normalization algorithms to remove slant and make sure the digits are of comparable size (at least one pixel on the horizontal boundary and one on the vertical boundary are non-white). If you want to apply to your own handwritten digits, you will have to take this into account if you build a classifier from the data on the site.


Quote:
Originally Posted by carto View Post
May I know precisely how to obtain the features intensity and symmetry from a 16 by 16 binary matrix so that I can apply the classifiers in Homework 8?

I thought intensity is the number of 1's divided by 16^2. However, the entries in the intensity column (from the file features.train) multiplied by 16^2 are not integers. Also, why are the symmetry features negative numbers?

I am asking this question because I want to hand write a digit and see if the program can recognize it right.

Thanks in advance!
__________________
Have faith in probability
Reply With Quote
  #4  
Old 09-06-2012, 02:52 PM
carto carto is offline
Junior Member
 
Join Date: Aug 2012
Posts: 3
Default Re: Intensity and Symmetry

Thank you for the useful responses.
Reply With Quote
Reply

Tags
digit recognization, intensity, symmetry

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:22 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.