Difference between revisions of "Reinforcement Learning (RL)"

From
Jump to: navigation, search
m
m
 
(62 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
|title=PRIMO.ai
 
|title=PRIMO.ai
 
|titlemode=append
 
|titlemode=append
|keywords=artificial, intelligence, machine, learning, models, algorithms, data, singularity, moonshot, Tensorflow, Google, Nvidia, Microsoft, Azure, Amazon, AWS  
+
|keywords=ChatGPT, artificial, intelligence, machine, learning, GPT-4, GPT-5, NLP, NLG, NLC, NLU, models, data, singularity, moonshot, Sentience, AGI, Emergence, Moonshot, Explainable, TensorFlow, Google, Nvidia, Microsoft, Azure, Amazon, AWS, Hugging Face, OpenAI, Tensorflow, OpenAI, Google, Nvidia, Microsoft, Azure, Amazon, AWS, Meta, LLM, metaverse, assistants, agents, digital twin, IoT, Transhumanism, Immersive Reality, Generative AI, Conversational AI, Perplexity, Bing, You, Bard, Ernie, prompt Engineering LangChain, Video/Image, Vision, End-to-End Speech, Synthesize Speech, Speech Recognition, Stanford, MIT |description=Helpful resources for your journey with artificial intelligence; videos, articles, techniques, courses, profiles, and tools
|description=Helpful resources for your journey with artificial intelligence; videos, articles, techniques, courses, profiles, and tools  
+
 
 +
<!-- Google tag (gtag.js) -->
 +
<script async src="https://www.googletagmanager.com/gtag/js?id=G-4GCWLBVJ7T"></script>
 +
<script>
 +
  window.dataLayer = window.dataLayer || [];
 +
  function gtag(){dataLayer.push(arguments);}
 +
  gtag('js', new Date());
 +
 
 +
  gtag('config', 'G-4GCWLBVJ7T');
 +
</script>
 
}}
 
}}
[http://www.youtube.com/results?search_query=Reinforcement+Machine+Learning YouTube search...]
+
[https://www.youtube.com/results?search_query=ai+Reinforcement+Learning YouTube]
[http://www.google.com/search?q=Reinforcement+deep+machine+learning+ML+artificial+intelligence ...Google search]
+
[https://www.quora.com/search?q=ai%20Reinforcement%20Learning ... Quora]
 +
[https://www.google.com/search?q=ai+Reinforcement+Learning ...Google search]
 +
[https://news.google.com/search?q=ai+Reinforcement+Learning ...Google News]
 +
[https://www.bing.com/news/search?q=ai+Reinforcement+Learning&qft=interval%3d%228%22 ...Bing News]
  
* Reinforcement Learning (RL)
+
* [[What is Artificial Intelligence (AI)? | Artificial Intelligence (AI)]] ... [[Generative AI]] ... [[Machine Learning (ML)]] ... [[Deep Learning]] ... [[Neural Network]] ... [[Reinforcement Learning (RL)|Reinforcement]] ... [[Learning Techniques]]
** [[Monte Carlo]] (MC) Method - Model Free Reinforcement Learning
+
* [[Reinforcement Learning - Games, Self-driving Vehicles, Drones, Robotics, Management, Finance]]
** [[Markov Decision Process (MDP)]]
+
* [[Agents]] ... [[Robotic Process Automation (RPA)|Robotic Process Automation]] ... [[Assistants]] ... [[Personal Companions]] ... [[Personal Productivity|Productivity]] ... [[Email]] ... [[Negotiation]] ... [[LangChain]]
** [[State-Action-Reward-State-Action (SARSA)]]
+
* [[Inverse Reinforcement Learning (IRL)]]
** [[Q Learning]]
+
* [[Gaming]] ... [[Game-Based Learning (GBL)]] ... [[Games - Security|Security]] ... [[Game Development with Generative AI|Generative AI]] ... [[Metaverse#Games - Metaverse|Games -Metaverse]] ... [[Games - Quantum Theme|Quantum]] ... [[Game Theory]]
*** [[Deep Q Network (DQN)]]
+
** [[Minecraft]]: [[Minecraft#Voyager|Voyager]] ... an AI agent powered by a [[Large Language Model (LLM)]] that has been introduced to the world of [[Minecraft]]
** [[Deep Reinforcement Learning (DRL)]] DeepRL
+
* [[Policy]]   ... [[Policy vs Plan]] ... [[Constitutional AI]] ... [[Trust Region Policy Optimization (TRPO)]] ... [[Policy Gradient (PG)]] ... [[Proximal Policy Optimization (PPO)]]
** [[Distributed Deep Reinforcement Learning (DDRL)]]
+
* [[Robotics]] ... [[Transportation (Autonomous Vehicles)|Vehicles]] ... [[Autonomous Drones|Drones]] ... [[3D Model]] ... [[3D Simulation Environments]] ... [[Simulated Environment Learning]] ... [[Point Cloud]]
** [[Evolutionary Computation / Genetic Algorithms]]
+
* [[Multi-Task Learning (MTL)]] ... [[SMART - Multi-Task Deep Neural Networks (MT-DNN)]]
** [[Actor Critic]]
 
*** [[Asynchronous Advantage Actor Critic (A3C)]]
 
*** [[Advanced Actor Critic (A2C)]]
 
*** [[Lifelong Latent Actor-Critic (LILAC)]]
 
** [[Hierarchical Reinforcement Learning (HRL)]]
 
* [[Game Theory]]
 
* [[Policy Gradient (PG)]]
 
* [[Trust Region Policy Optimization (TRPO)]]
 
* [[Proximal Policy Optimization (PPO)]]
 
* [[Robotics]]
 
* [http://arxiv.org/abs/1611.01578 Neural Architecture Search (NAS) with Reinforcement Learning | Barret Zoph & Quoc V. Le] ...[http://en.wikipedia.org/wiki/Neural_architecture_search#NAS_with_Reinforcement_Learning  Wikipedia]
 
* [http://towardsdatascience.com/advanced-reinforcement-learning-6d769f529eb3 Beyond DQN/A3C: A Survey in Advanced Reinforcement Learning | Joyce Xu - Towards Data Science]
 
 
* [[AdaNet]]
 
* [[AdaNet]]
 
* [[Loop#Feedback Loop - The AI Economist|Feedback Loop - The AI Economist]]
 
* [[Loop#Feedback Loop - The AI Economist|Feedback Loop - The AI Economist]]
 
___________________________________________________________
 
 
* [[Learning Techniques]]
 
** [[Apprenticeship Learning - Inverse Reinforcement Learning (IRL)]]
 
** [[Lifelong Learning]]
 
 
* [[Dopamine]] Google DeepMind
 
* [[Dopamine]] Google DeepMind
** [[Math for Intelligence]]
+
* [[Math for Intelligence]] ... [[Finding Paul Revere]] ... [[Social Network Analysis (SNA)]] ... [[Dot Product]] ... [[Kernel Trick]]
* [[Inside Out - Curious Optimistic Reasoning]]
+
* [[Artificial General Intelligence (AGI) to Singularity]] ... [[Inside Out - Curious Optimistic Reasoning| Curious Reasoning]] ... [[Emergence]] ... [[Moonshots]] ... [[Explainable / Interpretable AI|Explainable AI]] ...  [[Algorithm Administration#Automated Learning|Automated Learning]]
 
* [[World Models]]
 
* [[World Models]]
 
* [[Google DeepMind AlphaGo Zero]]
 
* [[Google DeepMind AlphaGo Zero]]
* [https://venturebeat.com/2019/06/19/googles-ai-picks-which-machine-learning-models-will-produce-the-best-results/ Google’s AI picks which machine learning models will produce the best results | Kyle Wiggers - VentureBeat] off-policy classification,” or OPC, which evaluates the performance of AI-driven agents by treating evaluation as a classification problem
+
* [http://arxiv.org/abs/1611.01578 Neural Architecture Search (NAS) with Reinforcement Learning | Barret Zoph & Quoc V. Le]  ...[http://en.wikipedia.org/wiki/Neural_architecture_search#NAS_with_Reinforcement_Learning  Wikipedia]
 +
* [http://towardsdatascience.com/advanced-reinforcement-learning-6d769f529eb3 Beyond DQN/A3C: A Survey in Advanced Reinforcement Learning | Joyce Xu - Towards Data Science]
 +
* [https://venturebeat.com/2019/06/19/googles-ai-picks-which-machine-learning-models-will-produce-the-best-results/ Google’s AI picks which machine learning models will produce the best results | Kyle Wiggers - VentureBeat] off-policy classification,” or OPC, which evaluates the performance of AI-driven [[Agents|agents]] by treating evaluation as a classification problem
 
* [http://www.amazon.com/Deep-Reinforcement-Learning-Hands-Q-networks/dp/1788834240 Deep Reinforcement Learning Hands-On: Apply modern RL methods, with deep Q-networks, value iteration, policy gradients, TRPO, AlphaGo Zero and more | Maxim Lapan]
 
* [http://www.amazon.com/Deep-Reinforcement-Learning-Hands-Q-networks/dp/1788834240 Deep Reinforcement Learning Hands-On: Apply modern RL methods, with deep Q-networks, value iteration, policy gradients, TRPO, AlphaGo Zero and more | Maxim Lapan]
 
* [http://github.com/Pulkit-Khandelwal/Reinforcement-Learning-Notebooks Reinforcement-Learning-Notebooks] - A collection of Reinforcement Learning algorithms from Sutton and Barto's book and other research papers implemented in Python  
 
* [http://github.com/Pulkit-Khandelwal/Reinforcement-Learning-Notebooks Reinforcement-Learning-Notebooks] - A collection of Reinforcement Learning algorithms from Sutton and Barto's book and other research papers implemented in Python  
Line 48: Line 44:
 
* [http://en.wikipedia.org/wiki/Reinforcement_learning Reinforcement Learning (RL) | Wikipedia]
 
* [http://en.wikipedia.org/wiki/Reinforcement_learning Reinforcement Learning (RL) | Wikipedia]
 
* [http://pathmind.com/wiki/deep-reinforcement-learning A Beginner's Guide to Deep Reinforcement Learning | Chris Nicholson - A.I. Wiki pathmind]
 
* [http://pathmind.com/wiki/deep-reinforcement-learning A Beginner's Guide to Deep Reinforcement Learning | Chris Nicholson - A.I. Wiki pathmind]
* [[Capabilities]]
+
* [https://learn.microsoft.com/en-us/azure/architecture/solution-ideas/articles/machine-teaching Use subject matter expertise in machine teaching and reinforcement learning | Microsoft]
** [[Reinforcement Learning - Games, Self-driving Vehicles, Drones, Robotics, Management, Finance]]
+
* [https://www.nature.com/articles/s41586-023-06004-9 Faster sorting algorithms discovered using deep reinforcement learning | D. Mankowitz, A. Michi, A. Zhernov, M. Gelmi, M. Selvi, C. Paduraru, E. Leurent, S. Iqbal, J. Lespiau, A. Ahern, T. Köppe, K. Millikin, S. Gaffney, S. Elster, J. Broshear, C. Gamble, K. Milan, R. Tung, M. Hwang, T. Cemgil, M. Barekatain, Y. Li, A. Mandhane, T. Hubert, D. Silver - Nature] ... Deep reinforcement learning has been used to improve computer code by treating the task as a game — with no special knowledge needed on the part of the player. The result has already worked its way into countless programs.
 +
* [https://towardsdatascience.com/develop-your-first-ai-agent-deep-q-learning-375876ee2472 Develop Your First AI Agent: Deep Q-Learning | Heston Vaughan - Towards Data Science]
 +
 
 +
<b>Reinforcement Learning (RL)</b> A technique that teaches an AI model to find the best result through trial and error and receiving rewards or punishments based on its results, often enhanced by human feedback for games and complex tasks.
 +
 
 +
<hr><b><center>
  
<b>DeepMind says reinforcement learning is ‘enough’ to reach general AI</b>  ...
+
DeepMind says reinforcement learning is enough to reach [[Artificial General Intelligence (AGI)]]</b><br>  ...<i>
[http://venturebeat.com/2021/06/09/deepmind-says-reinforcement-learning-is-enough-to-reach-general-ai/ Some scientists believe that assembling multiple narrow AI modules will produce higher intelligent systems.]
+
[http://venturebeat.com/2021/06/09/deepmind-says-reinforcement-learning-is-enough-to-reach-general-ai/ Some scientists believe that assembling multiple narrow AI modules will produce higher intelligent systems.]</i>
  
This is a bit similar to the traditional type of data analysis; the algorithm discovers through trial and error and decides which action results in greater rewards. Three major components can be identified in reinforcement learning functionality: the agent, the environment, and the actions. The agent is the learner or decision-maker, the environment includes everything that the agent interacts with, and the actions are what the agent can do. Reinforcement learning occurs when the agent chooses actions that maximize the expected reward over a given time. This is best achieved when the agent has a good policy to follow. [http://www.simplilearn.com/what-is-machine-learning-and-why-it-matters-article Machine Learning: What it is and Why it Matters | Priyadharshini @ simplilearn]
+
</center><hr>
  
http://slideplayer.com/24/7469154/big_thumb.jpg
+
<center>http://slideplayer.com/24/7469154/big_thumb.jpg</center>
  
http://s3.amazonaws.com/static2.simplilearn.com/ice9/free_resources_article_thumb/Machine_Learning_5.jpg
 
  
Control-based: When running a Reinforcement Learning (RL) policy in the real world, such as controlling a physical robot on visual inputs, it is non-trivial to properly track states, obtain reward signals or determine whether a goal is achieved for real. The visual data has a lot of noise that is irrelevant to the true state and thus the equivalence of states cannot be inferred from pixel-level comparison. Self-supervised representation learning has shown great potential in learning useful state embedding that can be used directly as input to a control policy.
+
= How does it work? =
 +
This is a bit similar to the traditional type of data analysis; the algorithm discovers through trial and error and decides which action results in greater rewards. Three major components can be identified in reinforcement learning functionality: the [[Agents|agent]], the environment, and the actions. The [[Agents|agent]] is the learner or decision-maker, the environment includes everything that the [[Agents|agent]] interacts with, and the actions are what the [[Agents|agent]] can do. Reinforcement learning occurs when the [[Agents|agent]] chooses actions that maximize the expected reward over a given time. This is best achieved when the [[Agents|agent]] has a good policy to follow. [http://www.simplilearn.com/what-is-machine-learning-and-why-it-matters-article Machine Learning: What it is and Why it Matters | Priyadharshini @ simplilearn]
  
 +
Control-based: When running a Reinforcement Learning (RL) policy in the real world, such as controlling a physical robot on visual inputs, it is non-trivial to properly track states, obtain reward signals or determine whether a goal is achieved for real. The visual data has a lot of noise that is irrelevant to the true state and thus the equivalence of states cannot be inferred from pixel-level comparison. Self-supervised representation learning has shown great potential in learning useful state [[embedding]] that can be used directly as input to a control policy.
  
 +
<center><img src="https://adatis.co.uk/wp-content/uploads/Reinforcement-Learning-SMALL.gif" width="800"></center>
  
 
<youtube>e3Jy2vShroE</youtube>
 
<youtube>e3Jy2vShroE</youtube>
Line 76: Line 79:
 
<youtube>313kbpBq8Sg</youtube>
 
<youtube>313kbpBq8Sg</youtube>
  
== [http://pythonprogramming.net/search/?q=q+learning Q Learning Algorithm and Agent - Reinforcement Learning  w/ Python Tutorial | Sentdex - Harrison] ==
+
= Reinforcement Learning (RL) Algorithms =
 +
 
 +
* [[Reinforcement Learning (RL) from Human Feedback (RLHF)]]
 +
** [[ChatGPT]]
 +
* [[In-Context Learning (ICL)#In-context Reinforcement Learning | In-context Reinforcement Learning]]
 +
* [[Monte Carlo]] (MC) Method - Model Free Reinforcement Learning
 +
* [[Markov Decision Process (MDP)]]
 +
* [[State-Action-Reward-State-Action (SARSA)]]
 +
* [[Q Learning]]
 +
** [[Deep Q Network (DQN)]]
 +
* [[Deep Reinforcement Learning (DRL)]] DeepRL
 +
* [[Distributed Deep Reinforcement Learning (DDRL)]]
 +
* [[Evolutionary Computation / Genetic Algorithms]]
 +
* [[Actor Critic]]
 +
** [[Asynchronous Advantage Actor Critic (A3C)]]
 +
** [[Advanced Actor Critic (A2C)]]
 +
** [[Lifelong Latent Actor-Critic (LILAC)]]
 +
* [[Hierarchical Reinforcement Learning (HRL)]]
 +
* [[Apprenticeship Learning - Inverse Reinforcement Learning (IRL)]]
 +
* [[Lifelong Learning]]
 +
 
 +
= [http://pythonprogramming.net/search/?q=q+learning Q Learning Algorithm and] [[Agents|Agent]] - Reinforcement Learning  w/ Python Tutorial | Sentdex - Harrison =
  
 
[http://pythonprogramming.net/q-learning-reinforcement-learning-python-tutorial P.1]
 
[http://pythonprogramming.net/q-learning-reinforcement-learning-python-tutorial P.1]
Line 109: Line 133:
 
⌨️ ([http://www.youtube.com/watch?v=ELE2_Mftqoc&t=3123s 00:52:03]) Deep Q Learning with Pytorch Part 1: The Q Network  
 
⌨️ ([http://www.youtube.com/watch?v=ELE2_Mftqoc&t=3123s 00:52:03]) Deep Q Learning with Pytorch Part 1: The Q Network  
  
⌨️ ([http://www.youtube.com/watch?v=ELE2_Mftqoc&t=3981s 01:06:21]) Deep Q Learning with Pytorch part 2: Coding the Agent  
+
⌨️ ([http://www.youtube.com/watch?v=ELE2_Mftqoc&t=3981s 01:06:21]) Deep Q Learning with Pytorch part 2: Coding the [[Agents|Agent]]
  
 
⌨️ ([http://www.youtube.com/watch?v=ELE2_Mftqoc&t=5334s 01:28:54]) Deep Q Learning with Pytorch part 3
 
⌨️ ([http://www.youtube.com/watch?v=ELE2_Mftqoc&t=5334s 01:28:54]) Deep Q Learning with Pytorch part 3
Line 140: Line 164:
 
=== Jump Start ===
 
=== Jump Start ===
 
<youtube>sOiNMW8k4T0</youtube>
 
<youtube>sOiNMW8k4T0</youtube>
 
=== Lunar Lander: Deep Q learning is Easy in PyTorch ===
 
<youtube>UlJzzLYgYoE</youtube>
 
 
=== Lunar Lander: How to Beat Lunar Lander with Policy Gradients | Tensorflow Tutorial ===
 
<youtube>UT9pQjVhcaU</youtube>
 
 
=== Breakout: How to Code Deep Q Learning in Tensorflow (Tutorial) ===
 
<youtube>3Ggq_zoRGP4</youtube>
 
  
 
=== Gridworld: How To Create Your Own Reinforcement Learning Environments ===
 
=== Gridworld: How To Create Your Own Reinforcement Learning Environments ===
Line 154: Line 169:
 
<youtube>vmrqpHldAQ0</youtube>
 
<youtube>vmrqpHldAQ0</youtube>
 
<youtube>w1jd0Dpbc2o</youtube>
 
<youtube>w1jd0Dpbc2o</youtube>
 +
 +
= [[Reinforcement Learning (RL) from Human Feedback (RLHF)]] =
 +
* [[ChatGPT]]
 +
* [https://huggingface.co/blog/rlhf Illustrating Reinforcement Learning from Human Feedback (RLHF) | N. Lambert, L. Castricato, L. von Werra, and A. Havrilla -] [[Hugging Face]]

Latest revision as of 14:54, 21 April 2024

YouTube ... Quora ...Google search ...Google News ...Bing News

Reinforcement Learning (RL) A technique that teaches an AI model to find the best result through trial and error and receiving rewards or punishments based on its results, often enhanced by human feedback for games and complex tasks.


DeepMind says reinforcement learning is enough to reach Artificial General Intelligence (AGI)
... Some scientists believe that assembling multiple narrow AI modules will produce higher intelligent systems.


big_thumb.jpg


How does it work?

This is a bit similar to the traditional type of data analysis; the algorithm discovers through trial and error and decides which action results in greater rewards. Three major components can be identified in reinforcement learning functionality: the agent, the environment, and the actions. The agent is the learner or decision-maker, the environment includes everything that the agent interacts with, and the actions are what the agent can do. Reinforcement learning occurs when the agent chooses actions that maximize the expected reward over a given time. This is best achieved when the agent has a good policy to follow. Machine Learning: What it is and Why it Matters | Priyadharshini @ simplilearn

Control-based: When running a Reinforcement Learning (RL) policy in the real world, such as controlling a physical robot on visual inputs, it is non-trivial to properly track states, obtain reward signals or determine whether a goal is achieved for real. The visual data has a lot of noise that is irrelevant to the true state and thus the equivalence of states cannot be inferred from pixel-level comparison. Self-supervised representation learning has shown great potential in learning useful state embedding that can be used directly as input to a control policy.

Reinforcement Learning (RL) Algorithms

Q Learning Algorithm and Agent - Reinforcement Learning w/ Python Tutorial | Sentdex - Harrison

P.1

P.2

P.3

P.4

P.5

P.6

Reinforcement Learning | Phil Tabor

Reinforcement learning is an area of machine learning that involves taking right action to maximize reward in a particular situation. In this full tutorial course, you will get a solid foundation in reinforcement learning core topics. The course covers Q learning, State-Action-Reward-State-Action (SARSA), double Q learning, Deep Q Learning (DQN), and Policy Gradient (PG) methods. These algorithms are employed in a number of environments from the open AI gym, including space invaders, breakout, and others. The deep learning portion uses Tensorflow and PyTorch. The course begins with more modern algorithms, such as deep q learning and Policy Gradient (PG) methods, and demonstrates the power of reinforcement learning. Then the course teaches some of the fundamental concepts that power all reinforcement learning algorithms. These are illustrated by coding up some algorithms that predate deep learning, but are still foundational to the cutting edge. These are studied in some of the more traditional environments from the OpenAI Gym, like the cart pole problem.

⌨️ (00:00:00) Introduction

⌨️ (00:01:30) Intro to Deep Q Learning

⌨️ (00:08:56) How to Code Deep Q Learning in Tensorflow

⌨️ (00:52:03) Deep Q Learning with Pytorch Part 1: The Q Network

⌨️ (01:06:21) Deep Q Learning with Pytorch part 2: Coding the Agent

⌨️ (01:28:54) Deep Q Learning with Pytorch part 3

⌨️ (01:46:39) Intro to Policy Gradients 3: Coding the main loop

⌨️ (01:55:01) How to Beat Lunar Lander with Policy Gradients

⌨️ (02:21:32) How to Beat Space Invaders with Policy Gradients

⌨️ (02:34:41) How to Create Your Own Reinforcement Learning Environment Part 1

⌨️ (02:55:39) How to Create Your Own Reinforcement Learning Environment Part 2

⌨️ (03:08:20) Fundamentals of Reinforcement Learning

⌨️ (03:17:09) Markov Decision Processes

⌨️ (03:23:02) The Explore Exploit Dilemma

⌨️ (03:29:19) Reinforcement Learning in the Open AI Gym: SARSA

⌨️ (03:39:56) Reinforcement Learning in the Open AI Gym: Double Q Learning

⌨️ (03:54:07) Conclusion


Jump Start

Gridworld: How To Create Your Own Reinforcement Learning Environments

Reinforcement Learning (RL) from Human Feedback (RLHF)