試す 金 - 無料
Using Reinforcement Learning to Run a Cleaner Bot
Open Source For You
|February 2026
Reinforcement learning can be used to program a cleaner bot to clean the floor. The example given here uses the Markov Decision Process and code in Python.
Reinforcement learning (RL) interacts with a dynamic environment and learns from the consequences of its actions. This is different from supervised learning, where the model is trained on a labelled dataset, or unsupervised learning, where the model looks at unlabelled data and tries to find hidden patterns or structures on its own.
A cleaner bot is a classic 'toy problem' used to show how an autonomous agent should make decisions under uncertainty. This simplified model of an automated robotic vacuum cleaner balances its functions between two conflicting goals:
- Maximising work done (cleaning floors)
- Minimising risk (running out of battery)
As the actions of the cleaner bot have uncertain outcomes, the Markov Decision Process (MDP) is used to describe the environment. The outcomes of the actions are as follows:
- The reward: It gets points for every square metre cleaned.
- The cost: Every movement consumes battery.
- The risk: If the battery hits zero while it's far from the dock, it dies (a large negative reward).
An example: The office vacuum cleaner
Imagine a robot vacuum cleaner is assigned to clean a wide lobby in an office. It has the following three possible states and three possible actions.
The three states are:
- High battery: The robot is fully charged.
- Low battery: The robot is at 15% battery and the warning light is on.
- Charging: The robot is docked at the charging point.
The three actions are:
- Search: Drive around and clean (high reward, high battery consumption).
- Wait: Stay still and save energy (no reward, no battery use).
- Recharge: Move back to the charging point (no reward, restores battery).
このストーリーは、Open Source For You の February 2026 版からのものです。
Magzter GOLD を購読すると、厳選された何千ものプレミアム記事や、10,000 以上の雑誌や新聞にアクセスできます。
すでに購読者ですか? サインイン
Open Source For You からのその他のストーリー
Open Source For You
Sending IoT Sensor Data to Public or Private Servers
This IoT system shows a simple and effective way to send sensor data using an ESP8266 microchip.
3 mins
March 2026
Open Source For You
Popular FOSS Tools for LLM Observability, Monitoring and Evaluation
This overview of popular tools for monitoring large language models also sheds light on how LLM-as-a-judge enhances their performance.
2 mins
March 2026
Open Source For You
Data Deduplication Done the Right Way
Deduplication helps to save space on Linux-based storage systems. Choose the right platform and check whether it meets your goals.
6 mins
March 2026
Open Source For You
The Relevance of Rubber Duck Debugging in the Age of AI
Discover why rubber duck debugging is a powerful process today. There's also a step-by-step guide on how to use it in the age of artificial intelligence.
4 mins
March 2026
Open Source For You
GitHub weighs turning off pull requests as AĬ slop floods projects
GitHub has formally acknowledged that AI-generated 'slop' is overwhelming open source projects, forcing maintainers to sift through poor pull requests (PRS), abandoned submissions and guideline violations - and is now considering restricting or even disabling pull requests, the core mechanism of open collaboration.
1 min
March 2026
Open Source For You
Global banks are deploying Ethereum's Layer-2 stack
Banks are standardising on Ethereum's open source stack as production financial infrastructure, shifting from experimental pilots and proprietary blockchains to live Layer-2 networks for tokenised deposits, interbank payments, and cross-border settlement.
1 min
March 2026
Open Source For You
OpenClaw's creator joins OpenAl
In a move that reinforces its commitment to open development rather than acquisition, OpenAI has brought Peter Steinberger, founder of OpenClaw, into the company while placing the popular AI agent under a foundation structure to ensure it remains open source.
1 min
March 2026
Open Source For You
LibreOffice 26.2 comes with native Markdown support
LibreOffice 26.2 has been released by The Document Foundation, strengthening its position as a fully free and open source office suite for Windows, macOS, and Linux, with support for more than 120 languages.
1 min
March 2026
Open Source For You
Indian government mandates labelling of Al-generated content and quicker deletion of illegal deepfakes
India has introduced sweeping AI content rules that immediately place pressure on social platforms and open source AI ecosystems to label, trace and rapidly remove AI Open ource synthetic media at scale.
1 min
March 2026
Open Source For You
I2C and I3C: How Modern Devices Communicate
I3C and I2C are both two-wire communication protocols that help exchange data between multiple devices. While I3C preserves the simplicity of I2C, it introduces new features suited for today's sensor-rich devices.
8 mins
March 2026
Listen
Translate
Change font size
