เอา 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
同時也有10000部Youtube影片,追蹤數超過2,910的網紅コバにゃんチャンネル,也在其Youtube影片中提到,...
「python read file line」的推薦目錄:
- 關於python read file line 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的精選貼文
- 關於python read file line 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳解答
- 關於python read file line 在 コバにゃんチャンネル Youtube 的最佳貼文
- 關於python read file line 在 大象中醫 Youtube 的最佳貼文
- 關於python read file line 在 大象中醫 Youtube 的最佳貼文
- 關於python read file line 在 Read A Specific Line From A File | Python Example - YouTube 的評價
python read file line 在 โปรแกรมเมอร์ไทย Thai programmer Facebook 的最佳解答
ในวิชา "วิทยาการคำนวณ" ระดับชั้น ม. 5
ได้ดึงวิชา data science (วิทยาศาสตร์ข้อมูล)
มาปูพื้นฐานให้เด็กๆ ได้เรียนกันแล้ว นับว่าเป็นโชคดี
เพราะวิชาพวกนี้เป็นของสูง กว่าจะสัมผัสก็คงตอนป.ตรี โท เอก
...Continue ReadingIn the subject of ′′ Calculation Theology ′′ class. 5
Pulled data science (data science)
Let's master the foundation for kids to learn. It's considered lucky.
Because these subjects are high to touch. It's probably in the middle of the year. Tri To Aek
Which I will review the content to read roughly. The content is divided into 4 chapters.
.
👉 ++++ Chapter 1-Information is valuable +++++
.
Data science in the textbook. Used by Thai name as ′′ Information Science ′′
This chapter will mention Big Data or big data with lots of valuable information.
And so much role in this 4.0 s both public and private sector.
.
If you can't imagine when you played Google search network, you'll find a lot of information that you can use in our business. This is why data science plays a very important role.
.
It's not surprising that it makes the Data Scientist s' career (British name data scientist) play the most important role and charming and interesting profession of the 21th century.
.
Data science, if in the book, he defines it
′′ Study of the process, method or technique to process enormous amounts of data to process to obtain knowledge, understand phenomena, or interpret prediction or prediction, find out patterns or trends from information.
and can be analysed to advise the right choice or take decision for maximum benefit
.
For Data science work, he will have the following steps.
- Questioning my own interest.
- Collect information.
- Data Survey
- Data Analysis (analyze the data)
- Communication and Results Visualization (Communicate and visualize the results)
.
🤔 Also he talks about design thinking... but what is it?
Must say the job of a data scientist
It doesn't end just taking the data we analyzed.
Let's show people how to understand.
.
The application design process is still required.
To use data from our analytics
The word design thinking is the idea. The more good designer it is.
Which Data Scientists Should Have To Design Final Applications
Will meet user demand
.
👉 ++++ Chapter 2 Collection and Exploration +++++
.
This chapter is just going to base.
2.1 Collection of data
In this chapter, I will talk about information that is a virtual thing.
We need to use this internet.
2.2 Data preparation (data preparation)
Content will be available.
- Data Cleaning (data cleansing)
- Data Transformation (data transformation)
In the university. 5 is not much but if in college level, you will find advanced technique like PCA.
- Info Link (combining data)
2.3 Data Exploration (data exploration)
Speaking of using graphs, let's explore the information e
Histogram graph. Box plot diagram (box plot). Distributed diagram (scatter plot)
With an example of programming, pulls out the plot to graph from csv (or xls) file.
2.4 Personal Information
For this topic, if a data scientist is implementing personal data, it must be kept secret.
.
Where the issues of personal information are now available. Personal Data Protection is Done
.
.
👉 ++++ Chapter 3 Data Analysis ++++
.
Divided into 2 parts:
.
3.1 descriptive analysis (descriptive analytics)
Analyzing using the numbers we've studied since
- Proportion or percentage
- Medium measurement of data, average, popular base.
Correlation (Correlation) relationship with programming is easy.
.
.
3.2 predictive analysis (predictive analytics)
.
- numeric prediction is discussed. (numeric prediction)
- Speaking of technique linear regression, a straight line equation that will predict future information.
Including sum of squared errors
Let's see if the straight line graph is fit with the information. (with programming samples)
- Finally mentioned K-NN (K-Nearest Neighbors: K-NN) is the closest way to finding K-N-Neighborhood for classification (Category)
*** Note *****
linear regression กับ K-NN
This is also an algorithm. One of the machine learning (machine learning, one branch of AI)
Kids in the middle of the day, I get to study.
.
.
👉 +++ Chapter 4 Making information pictured and communicating with information +++
.
This chapter doesn't matter much. Think about the scientist after analyzing what data is done. The end is showing it to other people by doing data visualization. (Better summoning)
.
In contents, it's for example using a stick chart, line chart, circular chart, distribution plan.
.
The last thing I can't do is tell a story from information (data story telling) with a message. Be careful when you present information.
.
.
.
*** this note ***
😗 Program language which textbooks mentioned and for example.
It's also python and R language
.
For R language, many people may not be familiar.
The IT graduate may be more familiar with Python.
But anyone from the record line will surely be familiar.
Because R language is very popular in statistical line
And it can be used in data science. Easy and popular. Python
.
But if people from data science move to another line of AI
It's deep learning (deep learning)
Python will be popular with eating.
.
.
#########
😓 Ending. Even I wrote a review myself, I still feel that.
- The university. 5 is it going to be hard? Can a child imagine? What did she do?
- Or was it right that I packed this course into Big Data era?
You can comment.
.
But for sure, both parents and teachers are tired.
Because it's a new content. It's real.
Keep fighting. Thai kids 4.0
.
Note in the review section of the university's textbook. 4 There will be 3 chapters. Read at.
https://www.facebook.com/programmerthai/photos/a.1406027003020480/2403432436613260/?type=3&theater
.
++++++++++++++++++++
Before leaving, let's ask for publicity.
++++++++++++++++++++
Recommend the book ′′ Artificial Intelligence (AI) is not difficult ′′
It can be understood by the number. End of book 1 (Thai language content)
Best seller ranked
In the MEB computer book category.
.
The contents will describe Artificial Intelligence (A) in view of the number. The end.
Without a code of dizzy
With colorful illustrations to see, easy to read.
.
If you are interested, you can order.
👉 https://www.mebmarket.com/web/index.php?action=BookDetails&data=YToyOntzOjc6InVzZXJfaWQiO3M6NzoiMTcyNTQ4MyI7czo3OiJib29rX2lkIjtzOjY6IjEwODI0NiI7fQ&fbclid=IwAR11zxJea0OnJy5tbfIlSxo4UQmsemh_8TuBF0ddjJQzzliMFFoFz1AtTo4
.
Personal like the book. You can see this link.
👉 https://www.dropbox.com/s/fg8l38hc0k9b0md/chapter_example.pdf?dl=0
.
Sorry, paper book. I don't have it yet. Sorry.
.
✍ Written by Thai programmer thai progammerTranslated
python read file line 在 Read A Specific Line From A File | Python Example - YouTube 的必吃
How to read a specific line from a file using Python. Source code: https://github.com/portfoliocourses/ python -example-code/blob/main/ ... ... <看更多>