Apache License 2.0

项目介绍

google-deepmind/disco_rl 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 Apache License 2.0 许可证,目前获得 750 个 Star、63 次 Fork。

仓库全名
google-deepmind/disco_rl
开源许可证
Apache License 2.0
Star 数
750
Fork 数
63
未关闭 Issue
6

README 摘要

DiscoRL: Discovering State-of-the-art Reinforcement Learning Algorithms This repository contains accompanying code for the "Discovering State-of-the-art Reinforcement Learning Algorithms" Nature publication. It provides a minimal JAX harness for the DiscoRL setup together with the original meta-learned weights for the Disco103 discovered update rule. The harness supports both: Meta-evaluation: training an agent…

完整内容见 GitHub 原始 README 或本页 。

常见问题

disco_rl 用什么语言开发?

主要使用 Python 编写,采用 Apache License 2.0 许可证,目前有 750 个 Star。

disco_rl 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 disco_rl 的源码?

可以直接克隆仓库:git clone https://github.com/google-deepmind/disco_rl.git,默认分支为 main;安装与运行步骤见仓库 README。

disco_rl 最近还在维护吗?

仓库最近一次更新为 2025年12月3日,当前有 6 个未关闭 Issue;Star 数为 750,可作为社区活跃度的参考。

关于

Accompanying code for "Discovering State-of-the-art Reinforcement Algorithms" Nature publication

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
883
价值分
469
活跃状态
活跃

语言占比

Jupyter Notebook
Python

贡献者

README

DiscoRL: Discovering State-of-the-art Reinforcement Learning Algorithms

This repository contains accompanying code for the “Discovering State-of-the-art Reinforcement Learning Algorithms” Nature publication.

It provides a minimal JAX harness for the DiscoRL setup together with the original meta-learned weights for the Disco103 discovered update rule.

The harness supports both:

  • Meta-evaluation: training an agent using the Disco103 discovered RL update rule, using the colabs/eval.ipynb notebook Open In and

  • Meta-training: meta-learning a RL update rule from scratch or from a pre-existing checkpoint, using the colabs/meta_train.ipynb notebook Open In

Note that it will not be actively maintained moving forward.

Installation

Set up a Python virtual environment and install the package:

python3 -m venv disco_rl_venv
source disco_rl_venv/bin/activate
pip install git+https://github.com/google-deepmind/disco_rl.git

The package can also be installed from colab:

!pip install git+https://github.com/google-deepmind/disco_rl.git

Usage

The code is structured as follows:

  • environments/ contains the general interface for the environments that can be used with the provided harness, and two implementations of Catch: a CPU-based one and jittable;

  • networks/ includes a simple MLP network and LSTM-based components of the DiscoRL models, all implemented in Haiku;

  • update_rules/ has implementations of the discovered rules, actor-critic, and policy gradient;

  • value_fns/ contains value-function related utilities;

  • types.py, utils.py, optimizers.py implement a basic functionality for the harness;

  • agent.py is a generic implementation of an RL agent which uses the update rule’s API for training, hence it is compatible with all the rules from update_rules/.

Detailed examples of usage can be found in the colabs above.

Citation

Please cite the original Nature paper:

@Article{DiscoRL2025,
  author  = {Oh, Junhyuk and Farquhar, Greg and Kemaev, Iurii and Calian, Dan A. and Hessel, Matteo and Zintgraf, Luisa and Singh, Satinder and van Hasselt, Hado and Silver, David},
  journal = {Nature},
  title   = {Discovering State-of-the-art Reinforcement Learning Algorithms},
  year    = {2025},
  doi     = {10.1038/s41586-025-09761-x}
}

License and disclaimer

Copyright 2025 Google LLC

All software is licensed under the Apache License, Version 2.0 (Apache 2.0); you may not use this file except in compliance with the Apache 2.0 license. You may obtain a copy of the Apache 2.0 license at: https://www.apache.org/licenses/LICENSE-2.0

All other materials are licensed under the Creative Commons Attribution 4.0 International License (CC-BY). You may obtain a copy of the CC-BY license at: https://creativecommons.org/licenses/by/4.0/legalcode

Unless required by applicable law or agreed to in writing, all software and materials distributed here under the Apache 2.0 or CC-BY licenses are distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the licenses for the specific language governing permissions and limitations under those licenses.

This is not an official Google product.

评论

暂无评论