Sunday 28 December 2014

Handwritten number recognition with Python (Machine Learning)

Here I am again with Machine Learning! This time I’ve achieved a great result though (for me at least!). By using another great dataset from UCI I was able to write a decent ML script which scored 95% in the testing part! I am really satisfied with the result.

Here is a sample of what the script should be able to read (in the example the number 9):

figure_1

Some numbers, as the one above, were clear, others not so clear, since they were handwritten and then somehow (I do not know how) converted into digital images.

I had a hard time figuring out how the attributes in the dataset were coded but in the end I managed to figure it out! SorrisoI guess making up such a dataset was a really long and boring work.

Anyway here is my script and below you can find the result of the test on the last 50 numbers or so.


This time I got 89% success rate! Pretty good I guess! I wonder whether I could train Python to recognize other things, maybe faces or other! Well first of all I have to figure out how to convert a picture into readable numpy arrays. Readable for Python of course!! If you have any suggestion please do leave a comment! Sorriso


Here below is the citation of the source where I found the dataset “Semeion Handwritten Digits Data Set”:


Bache, K. & Lichman, M. (2013). UCI Machine Learning Repository [http://archive.ics.uci.edu/ml]. Irvine, CA: University of California, School of Information and Computer Science.


and


Semeion Research Center of Sciences of Communication, via Sersale 117, 00128 Rome, Italy
Tattile Via Gaetano Donizetti, 1-3-5,25030 Mairano (Brescia), Italy.


 


Hope this was interesting!

21 comments:

  1. Thanks for the best topic. Very useful information.
    oracle training in chennai

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read.
    Click here:
    Microsoft azure training in chennai

    ReplyDelete
  4. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
    Blueprism training in Chennai

    Blueprism training in Bangalore

    Blueprism training in Pune

    Blueprism training in tambaram

    Blueprism training in annanagar

    Blueprism training in velachery

    Blueprism training in marathahalli

    ReplyDelete
  5. All the points you described so beautiful. Every time i read your i blog and i am so surprised that how you can write so well.

    click here

    Selenium Training in Chennai

    Selenium Training in Bangalore

    ReplyDelete
  6. I’ve desired to post about something similar to this on one of my blogs and this has given me an idea. Cool Mat.
    http://sayyolo.com/about.html

    ReplyDelete

  7. myTectra the Market Leader in Machine Learning Training in Bangalore
    myTectra offers Machine Learning Training in Bangalore using Class Room. myTectra offers Live Online Machine Learning Training Globally. Read More

    ReplyDelete
  8. Hiiii....Thank you so much for sharing Great information..Nice post...Keep move on...
    Best Python Training in Hyderabad

    ReplyDelete
  9. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and usefulthank u so much.
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete
  10. Python Course in Chennai | Infycle Technologies

    In this summer don’t miss this double-up gain Surprise offer in Infycle. This means top to bottom a complete syllabus about Python with a good job in top MNC’s Company. Python is an interpreted high-level general-purpose programming language. Python is powerful and fast, runs everywhere, is friendly & easy to learn. So for queries and carrier beginnings 7502633633.
    Best python course in Chennai

    ReplyDelete
  11. Thank you for sharing this valuable knowledge; it will be of great benefit to myself and many others. This is something I can share with my friends. Keep up to date...

    digital marketing course in hyderabad

    ReplyDelete
  12. Description:
    Want to do Data Science Course in Chennai with a Certification Exam? Catch the best features of Data Science training courses with Infycle Technologies, the best Data Science Training & Placement institutes in and around Chennai. Infycle offers the best hands-on training to the students with the revised curriculum to enhance their knowledge. In addition to the Certification & Training, Infycle offers placement classes for personality tests, interview preparation, and mock interviews for clearing the interviews with the best records. To have all it in your hands, dial 7504633633 for a free demo from the experts.
    Best software training in chennai

    ReplyDelete
  13. AI Patasala provides you with the ideal platform to take Machine Learning Training within Hyderabad and learn about the subject with experts from the industry.
    Machine Learning Course Hyderabad

    ReplyDelete

  14. Here is the best Software training institute to study AWS training in Chennai, Infycle Technologies and we also provide courses like Power BI, Cyber Security, Graphic Design and Animation, Block Security, Oracle, Java, Data Science, Big data, AWS, Python, etc., After the completion, of course, students will be able to crack their jobs in top MNC's. For more queries dial 7504633633.

    ReplyDelete
  15. Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.
    full stack developer course with placement

    ReplyDelete