เอา AI ไปใช้เล่นเกม เคยเห็นกันไหม
อธิบายไม่ค่อยเก่ง แต่อยากแบ่งปันความรู้
ในคลิปแค่เล่าคราวๆ อยากให้เห็นแนวโน้มเทคโนโลยีด้านนี้
.
ใครสนใจศึกษาเพิ่มเติมในอินเตอร์เนตมีเยอะเลยเรื่องนี้
บทความภาษาไทยก็มี
สำหรับคำค้นหาได้แก่ Reinforcement learning กับ Deep Q-network
..
++++
ในทางเทคนิค
ถ้าใครสนใจโค้ดเกมนี้
จะเอามาเล่นดูก็ได้
ดาวน์โหลดได้ที่นี้ครับ (เป็น python นะ)
https://github.com/yanpanlau/Keras-FlappyBird
.
แต่ทว่าโค้ดจากต้นฉบับ
โมเดลยังไม่ถูกเทรนนะครับ
ต้องเสียเวลาสอนมันอีก
ถ้าใครไม่อยากเสียเวลา
.
ก็ไปเอาไปไฟล์ mdel.h5 ที่ถูกเทรนไว้แหละผมเก็บไว้ให้
https://github.com/…/Deep_Q_Lear…/flappy-bird-model/model.h5
.
แล้วนำไฟล์ mdoel.h5 ที่ได้
ไปทับไฟล์เดิมที่ดาวน์โหลดจากต้นฉบับมา (backup ของเก่าก็ดี)
วางไว้ที่โฟลเดอร์ Keras-FlappyBird\\mdoel.h5
.
แล้วให้แก้ไฟล์ qlearn.py
บรรทัดที่ 130 คอมเมนต์นี้ออกไปหน่อย
#x_t = x_t / 255.0
.
จากนั้นรันคำสั่ง
python qlearn.py -m "Run"
:
เขียนโดย โปรแกรมเมอร์ไทย thai programmer
:
++++
อ้างอิง
โค้ด: https://github.com/yanpanlau/Keras-FlappyBird/
paper: https://arxiv.org/pdf/1312.5602.pdf
youtube: https://youtu.be/TmPfTpjtdgg
:
ติดตามคลิปนี้ได้ที่ youtube อีกที
https://youtu.be/1qry87n95KU
.
.
.
+++++ขั่วโมงขายของ++++
😻 ถ้าใครสนใจเล่ม "AI ไม่ยาก เรียนรู้ด้วยเลขม. ปลาย"
ก็สั่งซื้อ ebook ได้ที่นี้ (ขออภัยยังไม่มีเล่มกระดาษขาย)
ไม่ต้องมีความรู้เรื่องโค้ดดิ้ง ขอให้มีพื้นฐานเลข ม. ปลาย ก็อ่านได้
.
👉 https://www.mebmarket.com/web/index.php…
.
ส่วนตัวอย่างหนังสือ ก็ดูได้ที่
👉 https://www.dropbox.com/s/fg8l38hc0k9b…/chapter_example.pdf…
.
ราคาขาย 295 บาท ฿
แต่ถ้าซื้อผ่านระบบของ Apple จะแพงขึ้น ราคา 329 บาท ฿
วิธีอ่าน อ่านผ่านแอพหรือโปรแกรมเท่านั้น
.
✍ เขียนโดย โปรแกรมเมอร์ไทย thai programmer
Use AI to play games. Have you ever seen it?
I don't explain well but I want to share knowledge
In the clip, I want to see this technology trend in this clip.
.
Who is interested in learning more on the internet? There are plenty of them in this story.
There is also a Thai language article.
For search quotes including Reinforcement learning with Deep Q-network
..
++++
Technically, technically.
If anyone is interested in this game code
I can play this to watch.
You can download here. (It's python)
https://github.com/yanpanlau/Keras-FlappyBird
.
But the code from the original
Model hasn't been trended yet.
Gotta waste my time teaching it again
If anyone doesn't want to waste time
.
Go get it. mdel file. h 5 that is trendy. I keep it for you.
https://github.com/adminho/machine-learning/tree/master/Deep_Q_Learning/flappy-bird-model/model.h5
.
Then bring the mdoel file. h 5 to get it
Go over the original file downloaded from the original (backup the old one is good)
Put it on the Keras-FlappyBird folder. mdoel. h 5
.
Then fix the qlearn file. py
Line 130 comment this way out please
#x_t = x_t / 255.0
.
Then run an order.
python qlearn.py -m "Run"
:
Written by Thai programmer thai coder
:
++++
Quote.
Code: https://github.com/yanpanlau/Keras-FlappyBird/
paper: https://arxiv.org/pdf/1312.5602.pdf
youtube: https://youtu.be/TmPfTpjtdgg
:
Follow this clip on YouTube again.
https://youtu.be/1qry87n95KU
.
.
.
+++++ selling stuff ++++
😻 If anyone is interested in the book ′′ AI, it's not difficult to learn with university number The end ′′
You can order an ebook here. (Sorry, paper book for sale)
Don't need to know about codeing. Let's have a base of university numbers. I can read the end.
.
👉 https://www.mebmarket.com/web/index.php?action=BookDetails&data=YToyOntzOjc6InVzZXJfaWQiO3M6NzoiMTcyNTQ4MyI7czo3OiJib29rX2lkIjtzOjY6IjEwODI0NiI7fQ
.
Personal like a book. You can see it.
👉 https://www.dropbox.com/s/fg8l38hc0k9b0md/chapter_example.pdf?dl=0
.
Selling price 295 baht ฿
But if you buy via Apple system, it will be more expensive. Price is 329 Baht. ฿
How to read through app or program only
.
✍ Written by Thai programmer thai coderTranslated
sorry, but not sorry quotes 在 Jolly 晓忆姐姐 Facebook 的最讚貼文
I had been searching n thinking of a meaningful quote to be paired with these pictures. You know, maybe some "new me", or "im determined" kind of quotes that could match with this series of pics? Lol. But after all, i couldnt convince myself to pick any as i noticed that I'm not so motivational(?) Or maybe just because I do not have the intention to create random positive vibes to people, to make myself feel like im ready to overcome all obstacles in life. In fact, im not.. Im still the old me, maybe transformed a lil, but will never be a different person because nobody could do that. Who we are today, are truly sculpted by what we experienced in our lives. So why abandon the original you? Instead, learn from it, live with it, and embrace it. Am i ready to overcome all obstacles? No.. the fact is, i dont even have an idea of what kind of obstacles i will encounter in 2020. I dont have a vision, i dont have a plan, i dont have a preferred destination, i dont even know if im strong enough yet to go through anything. But what i know is that, i have to.. I might be slow, but steady? Weak, but at least its still pounding? Directionless, but just keep moving? Many may be worried for me, many may said "Do this, its gonna be good!" "Try that, many has succeeded and you can too!" "Nonono, thats not the way, you gotta dream big!" But to the very true me. Lol. Im sorry. Im not so ambitious. And all i want in life, is stated on my name. Yes, i just want to be Jolly. Isit cliche? Lol hopefully its not, cuz i dont like to be majority. But yea.. ever since many many years ago when i gave myself this name, i knew thats what i truly want in my life. No matter what i do, what i experience or what i have to go through. BE JOLLY, thats all i want. I cant promise you that i can always be like this, or maybe next year, i will be posting things like "nobody should underestimate me!!" Lol or u might be checking on me and gossip with friends "Ahhaa, be jolly la? Now live like nobody. Daisei!" Hahah i donno, u know there are possibilities right. But after all, what i wanna say is.. Everyone is different, and its totally fine to be urself, even the weakest you. ❤
Remember, you love you.
sorry, but not sorry quotes 在 Monna Lam 林韋瑩 Facebook 的精選貼文
My single Valentine’s Day ! I wish this is my last time to be single ... lol...
If you are single, then Valentine's Day may not be the best time of the year for you. In fact, some are calling it, "Singles Awareness Day." Seeing other people celebrating their love can make you a little envious. Even if you have a great life and aren't actively seeking a partner, it's easy to start hating on the holiday and perhaps feeling sorry for yourself.
However, don't be let down. Lift your sagging spirits by reading these Valentine's quotes and by dreaming of your own happily-ever-after. It doesn't have to include a knight in shining armor or a princess to be rescued.
Mike Primavera
"You are never alone on Valentine's Day if you're near a lake and have bread."
KushandWizdom.tumblr
"I am constantly torn between 'I don't need anyone' and 'Hey you, please fall in love with me.'"
Emily Heller
"I've been single for a while and I have to say, it's going very well. Like... It's working out. I think I'm the one."
Robert Burton
"No cord or cable can so forcibly draw, or hold so fast, as love can do with a twined thread."
Alexandra Penney
"The ultimate test of a relationship is to disagree but to hold hands."
Mignon McLaughlin
"No one can understand love who has not experienced infatuation. And no one can understand infatuation, no matter how many times he has experienced it."
Anonymous
"A kiss is something you cannot give without taking and cannot take without giving. "
Happy single valentine’s day buddy.