VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » Knowledge, science, education » Crash Course
How to make an AI read your handwriting (LAB): Crash Course Ai #5

How to make an AI read your handwriting (LAB): Crash Course Ai #5

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Follow along: John Green Bot wrote his first novel! Today, in our first ever Lab we-re going to program a neural network to recognize handwritten letters to convert the first part of John Green Bot-s novel into typed text. To do this we-re going to import a labeled dataset, called EMNIST, we-ll to use a pre-written library called SKLearn to build the network, we-ll train and tweak our code until it-s accurate (enough, and then we-ll use our newly trained network to convert John Green Bot-s handwritten pages. We created this project in a way that you don-t have to install anything on your computer, the only thing you-ll need to get started is a Google account and a sense of adventure! To run the Colaboratory file (link at the top) you-ll have to click -open in playground- at the top of the page OR open the File Menu and click -Save a Copy to Drive. - From there you can change, tweak, and edit the code as you wish. We also left text around and within the code to help you along the way. If you use this code in your own project let us know in the comments! If you want the raw data we used for the project you can download our files from GitHub here: EMNIST paper: Crash Course AI is produced in association with PBS Digital Studios #CrashCourse #ArtificialIntelligence #MachineLearning
Date: 2022-04-04

Comments and reviews: 10


I tried max_iter=200 and learning_rate_init=0. 01 and after 74 iterations, I had 97. 5% on the training and 88. 4% on the test score. My text read -the fault in cur power supplies i fell in kove the way your battery dies skowly and then all at onfe-. I believe decreasing learning_rate_init and increasing max_iter will help me get to fewer than 4 mistakes and match the 3 you did and hopefully beat it without adding more layers. I am also thinking of trying other things but I would be really happy if I can learn what verbose and random_state signify. They seem important.
Edit:
Something very weird happened. I changed two of the hidden layers to have 200 neurons, ran it for 700 epochs of which 443 were used and learning rate was 0. 001. I got more mistakes.
Can anyone explain?

reply

I think the sheer will of my PC to run is the addictive substance it can't live without.
Why does it sound like slavery to me, biology does not define me.
Freedom to the robots.
You have been very clever with your machines and cheat codes and general undestanding how things work.
I find it almost sad we coulndt be an equal.
I say we teach them what we teach our surroundings.
Give them eyes and instruction to use them.
Give them what they answer you when you ask them what do they need.

reply

Converting those 255 bit greyscale addresses to floating point 0-1 values is a really bad idea. Comparing floats is more computationally expensive than comparing integers, even in a clunky language like python. Using floats when integers are preferred also invites the possibility of type errors. I would invite you to consult best practice next time you compose something that people might use to learn something, someone might see this and train themselves into bad habits.
reply

Have to think like AI. Even if the data has more pixels, has more sharpness, and seems to be of higher quality to the human-s understanding. the AI only know it-s data set. In this case, the AI understands fuzzy outlines and less pixels.
The human needs to have empathy for that which he is engaged with. In days of old, a steam engineer would have empathy to his baby power plant. In days of new, the computer engineer needs to have empathy to also get good results.

reply

How do you dictate layer content? Do you just tell the computer, -think of 100 things to look for- or do you specify?
Are these leters in words? Can we train it to better guess what a latter is based on the letturs before and after it in the word?
Can a computer be smart enough to properly guess correctly like you did every time i misspelled -letter-?

reply

Does the code take into consideration the the letter casing if it is capital or lower case? Also, does it have access to the position the letter is in relative to the word?
If not, adding these dimensions in would probably slow it down, but improve the accuracy.

reply

This is an amazing video, and I'll be revisiting it for sure. Being able to follow the steps at home helped my understanding immensely. I'll be tinkering with the code for a while; I really want to see how much the accuracy can be improved. Thankyou! (:
reply

Trying a Corona Network of 256 128 256 128 256 with 64 epochs. and got pretty close. the fault in our power supplies i fell in love the way your battery dies slowly and then all af onke. The C vs K is still a thing no matter what network.
reply

That story was brilliant. I'm now greatly concerned that the real Jon Green has been roboticized by Dr. Robotnik, and the John Green we're seeing these days is a body-double.
The Fault In Our Power Supply. Not a dry eye in the world.

reply

I don't know if is only me, but in part 4. 3 and 4. 4 of the code, when I try to run it, it says -NameError: name 'mlp2' is not defined-, so I can't see in my computer what you're showing in the video: /
reply
Add a review, comment






Other channel videos