/randomly-intermittent-reward-timing

A tiny python module for randomly intermittent reward training

Primary LanguagePythonMIT LicenseMIT

Randomly Intermittent Reward Timing (RIRT)

Feature Tools
Languages Python
Git Conventional Commits
Formatting Black docformatter numpy Imports: isort

RIRT is a small, pip-installable script built with only base python that can be run to decide probabilistically if you get a reward for doing something.

This concept is discussed in Dr. Andrew Huberman's newsletter:

Use (Randomly) an Intermittent Reward Timing (RIRT) [to manage dopamine peaks]. This is the most powerful schedule for dopamine release and staying motivated. The casinos use it to take people’s money. It works 100% of the time. You can use RIRT to your advantage, to stay motivated in any pursuit. The key is to celebrate your wins, but do not celebrate every win. When you succeed in reaching a milestone, sometimes enjoy that; other times (at random), just keep going. Even better, associate “winning” with the effort process itself. That’s the holy grail of dopamine management for success. It won’t make you dull or unhappy; it will make everything easier and more pleasurable, without the peaks and valleys of dopamine that external-reward-driven people experience, and you’ll obtain all the external rewards anyway.

After installation, you can run rirt in your terminal every time you reach some milestone to see if you should reward yourself. By default, rirt runs with a probability of 0.85, but you can set this probability to anything you want by using -p and passing a float between 0 and 1.