Repository navigation
[doc][tune] Style pass on the Ray Tune overview pages - #67019
Conversation
c601605 to
dfa50ca
Compare
Apply Ray's writing-style guide and the Tune terms to tune/index.md, getting-started.md, key-concepts.md, and faq.md, and fix a few claims that the pages' own code or the Tune source contradicts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Alt text for the two FAQ diagrams, numbers spelled out, duplicate links in a section dropped, standalone bold pseudo-headings turned into H3s, descriptive link text, and per-trial wording where the stop criterion is per trial. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
… pass The style pass corrected nine technical claims on these pages. Put the original claims back, keeping the style rewording, so this PR changes prose only. The corrections land in a follow-up PR with their source citations. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
cdff6eb to
5ed755d
Compare
There was a problem hiding this comment.
Code Review
This pull request performs a comprehensive copyediting pass on the Ray Tune documentation to improve readability and flow. The reviewer's feedback identifies several minor issues to address, including factual inaccuracies regarding hyperparameter sampling and parameter definitions, a broken Sphinx reference syntax, and phrasing improvements to eliminate repetitive language and fragile list references.
| 1. The `cpu` and `gpu` options set how many CPUs and GPUs are available for each trial, respectively. **Trials cannot request more resources** than these (exception: see 3). | ||
| 2. It is possible to request **fractional GPUs**. A value of 0.5 means that half of the memory of the GPU is made available to the trial. You will have to make sure yourself that your model still fits on the fractional memory. | ||
| 3. You can request custom resources you supplied to Ray when starting the cluster. Trials will only be scheduled on single nodes that can provide all resources you requested. | ||
| 1. The `cpu` and `gpu` options set how many CPUs and GPUs are available for each trial. Trials can't request more resources than these, except as described in item 3. |
There was a problem hiding this comment.
The list items are all numbered 1. in the markdown source. Referring to 'item 3' can be confusing and is fragile if the list is reordered. It is better to refer to the item descriptively.
| 1. The `cpu` and `gpu` options set how many CPUs and GPUs are available for each trial. Trials can't request more resources than these, except as described in item 3. | |
| 1. The `cpu` and `gpu` options set how many CPUs and GPUs are available for each trial. Trials can't request more resources than these, except when requesting custom resources (see the third item below). |
| ``` | ||
|
|
||
| Here, you're requesting 2 additional CPUs for remote tasks. These two additional actors do not necessarily have to live on the same node as your main trainable. In fact, you can control this via the `strategy` parameter. In this example, `PACK` will try to schedule the actors on the same node, but allows them to be scheduled on other nodes as well. Please refer to the {ref}`placement groups documentation <ray-placement-group-doc-ref>` to learn more about these placement strategies. | ||
| Here, you're requesting 2 additional CPUs for remote tasks. These two additional actors don't have to live on the same node as your main trainable. You can control this through the `strategy` parameter. In this example, `PACK` tries to schedule the actors on the same node but can also schedule them on other nodes. See the {ref}`placement groups documentation <ray-placement-group-doc-ref>` to learn more about these placement strategies. |
There was a problem hiding this comment.
The terminology switches between 'remote tasks' and 'These two additional actors' in consecutive sentences, and assumes there are exactly 'two' actors when the configuration bundle just requests 2 CPUs. Using consistent and general terms is clearer.
| Here, you're requesting 2 additional CPUs for remote tasks. These two additional actors don't have to live on the same node as your main trainable. You can control this through the `strategy` parameter. In this example, `PACK` tries to schedule the actors on the same node but can also schedule them on other nodes. See the {ref}`placement groups documentation <ray-placement-group-doc-ref>` to learn more about these placement strategies. | |
| Here, you're requesting 2 additional CPUs for remote actors or tasks. These additional resources don't have to live on the same node as your main trainable. You can control this through the `strategy` parameter. In this example, `PACK` tries to schedule them on the same node but can also schedule them on other nodes. See the {ref}`placement groups documentation <ray-placement-group-doc-ref>` to learn more about these placement strategies. |
There was a problem hiding this comment.
This PR keeps pre-existing claims as written. #67338 fixes the tasks/actors switch. "Two" stays: the snippet requests two additional {"CPU": 1} bundles.
| # Get started with Ray Tune | ||
|
|
||
| This tutorial will walk you through the process of setting up a Tune experiment. To get started, we take a PyTorch model and show you how to leverage Ray Tune to optimize the hyperparameters of this model. Specifically, we'll leverage early stopping and Bayesian Optimization via HyperOpt to do so. | ||
| This tutorial walks you through setting up a Ray Tune experiment. Starting from a PyTorch model, you use Tune to optimize the model's hyperparameters with early stopping and with Bayesian optimization through Hyperopt. |
There was a problem hiding this comment.
The phrase 'with early stopping and with Bayesian optimization' is slightly repetitive. Removing the second 'with' improves readability and flow.
| This tutorial walks you through setting up a Ray Tune experiment. Starting from a PyTorch model, you use Tune to optimize the model's hyperparameters with early stopping and with Bayesian optimization through Hyperopt. | |
| This tutorial walks you through setting up a Ray Tune experiment. Starting from a PyTorch model, you use Tune to optimize the model's hyperparameters with early stopping and Bayesian optimization through Hyperopt. |
| ``` | ||
|
|
||
| Let's run one trial by calling {ref}`Tuner.fit <tune-run-ref>` and {ref}`randomly sample <tune-search-space>` from a uniform distribution for learning rate and momentum. | ||
| Run one trial by calling {ref}`Tuner.fit <tune-run-ref>`, and {ref}`randomly sample <tune-search-space>` the learning rate and momentum from a uniform distribution. |
There was a problem hiding this comment.
The text states that both learning rate and momentum are sampled from a uniform distribution. However, the learning rate is sampled from a log-uniform distribution (10 ** (-10 * np.random.rand())). It is more accurate to state that they are randomly sampled without specifying 'uniform distribution' for both.
| Run one trial by calling {ref}`Tuner.fit <tune-run-ref>`, and {ref}`randomly sample <tune-search-space>` the learning rate and momentum from a uniform distribution. | |
| Run one trial by calling {ref}`Tuner.fit <tune-run-ref>`, and {ref}`randomly sample <tune-search-space>` the learning rate and momentum. |
There was a problem hiding this comment.
This PR keeps pre-existing claims as written. #67339 fixes this one, saying the learning rate comes from a log-uniform distribution and the momentum from a uniform one.
| Next, add early stopping to the optimization process with {ref}`ASHA <tune-scheduler-hyperband>`, a scalable algorithm for [principled early stopping](https://blog.ml.cmu.edu/2018/12/12/massively-parallel-hyperparameter-optimization/). | ||
|
|
||
| Let's integrate early stopping into our optimization process. Let's use {ref}`ASHA <tune-scheduler-hyperband>`, a scalable algorithm for [principled early stopping](https://blog.ml.cmu.edu/2018/12/12/massively-parallel-hyperparameter-optimization/). | ||
| At a high level, ASHA stops less promising trials and allocates more time and resources to more promising ones. Because the optimization process becomes more efficient, you can afford to increase the search space by 5x by adjusting the `num_samples` parameter. |
There was a problem hiding this comment.
The num_samples parameter controls the number of trials/samples taken from the search space, not the size of the search space itself. The text should be corrected to reflect this.
| At a high level, ASHA stops less promising trials and allocates more time and resources to more promising ones. Because the optimization process becomes more efficient, you can afford to increase the search space by 5x by adjusting the `num_samples` parameter. | |
| At a high level, ASHA stops less promising trials and allocates more time and resources to more promising ones. Because the optimization process becomes more efficient, you can afford to sample 5x more configurations by adjusting the `num_samples` parameter. |
There was a problem hiding this comment.
This PR keeps pre-existing claims as written. #67339 fixes this one ("run 5x more trials"), citing the TuneConfig docstring.
| ## Use search algorithms in Tune | ||
|
|
||
| ## Using Search Algorithms in Tune | ||
| In addition to trial schedulers, you can further optimize your hyperparameters with an intelligent search technique such as Bayesian optimization. To do this, you can use a Tune {ref}`search algorithm <tune-search-alg>`. Search algorithms use optimization algorithms to navigate the given hyperparameter space intelligently. |
There was a problem hiding this comment.
The phrase 'Search algorithms use optimization algorithms' is repetitive. Replacing the second sentence with 'These algorithms navigate...' improves conciseness.
| In addition to trial schedulers, you can further optimize your hyperparameters with an intelligent search technique such as Bayesian optimization. To do this, you can use a Tune {ref}`search algorithm <tune-search-alg>`. Search algorithms use optimization algorithms to navigate the given hyperparameter space intelligently. | |
| In addition to trial schedulers, you can further optimize your hyperparameters with an intelligent search technique such as Bayesian optimization. To do this, you can use a Tune {ref}`search algorithm <tune-search-alg>`. These algorithms navigate the given hyperparameter space intelligently. |
There was a problem hiding this comment.
Leaving as is. "These algorithms" would have an unclear referent after the preceding sentence.
| To run this example, install Ray Tune with `pip install "ray[tune]"`. | ||
|
|
||
| In this quick-start example you `minimize` a simple function of the form `f(x) = a**2 + b`, our `objective` function. The closer `a` is to zero and the smaller `b` is, the smaller the total value of `f(x)`. We will define a so-called `search space` for `a` and `b` and let Ray Tune explore the space for good values. | ||
| This quickstart example minimizes a function of the form `f(x) = a**2 + b`, the `objective` function. The closer `a` is to zero and the smaller `b` is, the smaller the value of `f(x)`. You define a *search space* for `a` and `b`, and Ray Tune explores the space for good values. |
There was a problem hiding this comment.
The text describes the objective function as f(x) = a**2 + b. However, x is not a parameter of this function (the parameters are a and b). It is mathematically more accurate to describe it as an objective function of the form a**2 + b.
| This quickstart example minimizes a function of the form `f(x) = a**2 + b`, the `objective` function. The closer `a` is to zero and the smaller `b` is, the smaller the value of `f(x)`. You define a *search space* for `a` and `b`, and Ray Tune explores the space for good values. | |
| This quickstart example minimizes an objective function of the form `a**2 + b`. The closer `a` is to zero and the smaller `b` is, the smaller the value of the function. You define a *search space* for `a` and `b`, and Ray Tune explores the space for good values. |
There was a problem hiding this comment.
This PR keeps pre-existing claims as written. #67338 fixes this one.
| :animate: fade-in-slide-down | ||
|
|
||
| You might be already using an existing hyperparameter tuning tool such as HyperOpt or Bayesian Optimization. | ||
| You might already use a hyperparameter tuning tool such as Hyperopt or Bayesian Optimization. |
There was a problem hiding this comment.
Bayesian optimization is a general mathematical technique, not a specific tool or library (unlike Hyperopt). It should not be capitalized or grouped as a 'tool' in this context.
| You might already use a hyperparameter tuning tool such as Hyperopt or Bayesian Optimization. | |
| You might already use a hyperparameter tuning tool or technique such as Hyperopt or Bayesian optimization. |
There was a problem hiding this comment.
Leaving this for a Ray Tune reviewer. The same page lists the BayesOpt library, so "Bayesian Optimization" might mean the library, not the technique. Lowercasing it would settle that question in this style-only PR.
| ::: | ||
|
|
||
| When using schedulers, you may face compatibility issues, as shown in the below compatibility matrix. Certain schedulers cannot be used with search algorithms, and certain schedulers require that you implement {ref}`checkpointing <tune-trial-checkpoint>`. | ||
| Schedulers can dynamically change trial resource requirements during tuning. {ref}`ResourceChangingScheduler<tune-resource-changing-scheduler>` implements this behavior and can wrap around any other scheduler. |
There was a problem hiding this comment.
There is a missing space in the Sphinx reference syntax: {ref}ResourceChangingScheduler. It should be `{ref}`ResourceChangingScheduler <tune-resource-changing-scheduler> to render correctly.
| Schedulers can dynamically change trial resource requirements during tuning. {ref}`ResourceChangingScheduler<tune-resource-changing-scheduler>` implements this behavior and can wrap around any other scheduler. | |
| Schedulers can dynamically change trial resource requirements during tuning. {ref}`ResourceChangingScheduler <tune-resource-changing-scheduler>` implements this behavior and can wrap around any other scheduler. |
There was a problem hiding this comment.
Applied in b926fd3. The ref rendered correctly without the space, but the space matches the rest of the page.
Refer to the custom-resources list item descriptively, since every item in the source is numbered `1.`. Drop a repeated "with" in the getting-started intro, and add the space before the target in the ResourceChangingScheduler ref to match the rest of the page. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
## Why are these changes needed? This PR runs a style pass over the 14 Ray Tune user guides under `doc/source/tune/tutorials/`. It applies Ray's writing-style guide and the Tune terms that #67017 adds to it. **Stacked on #67019**, the style pass on the Tune overview pages. That one is stacked on #67017, the Tune Vale term library. The Tune slug renames (#67015) have merged. The file sets don't overlap. Retarget this PR to `master` once the stack below merges. ## What changed Most of the diff is prose: - Second person, active voice, and present tense, with no "we", "our", or "let's". - Filler cut. - Contractions, and "such as" in place of "like". - Complete lead-in sentences before code blocks. - Descriptive link text in place of "here". - Spelled-out abbreviations: "configuration dictionary", "trial directory", "for example". Tune terms follow the new guide section. The concepts are lowercase: "trainable", "search algorithm", "trial scheduler", "function API", and "class API". Class names stay in code style. Where a page uses "trial" and "experiment" loosely, the pass changed one to the other only where the page itself makes clear which it means. Structure: - Headings are in sentence case. Task headings are imperative, such as "Use GPUs in Tune" and "Checkpoint periodically". Concept headings are questions, such as "How does Tune handle failures?". - Ordered lists number every item `1.`. - Bold asides such as `**Troubleshooting**:` and `**Main insight**:` become `tip` admonitions. - Lists are made consistent, and duplicate blank lines are collapsed outside code blocks. - In `tune-distributed.md`, the spot-instance procedure's code blocks are now indented under their list items, so the ordered list no longer splits in two. - The `tutorials/index.md` toctree title overrides are now in sentence case. The garbled "To specifies the max number of trials" in `tune-resources.md` becomes "To limit the number of trials that run concurrently". This PR changes prose only. Every technical claim reads as it did before, including claims that look wrong. An earlier revision corrected several of them here. Those corrections now live in #67338, for the ones the page itself settles, and #67339, for the ones the Tune source settles, so this PR can merge on a docs review alone. Every heading that other pages reference keeps its `(label)=` anchor, and no reworded heading had an inbound slug link in `doc/source`. In `tune-distributed.md`, the link text that quoted the old fault-tolerance heading now matches the new one. One link outside these files still quotes an old H1, in `examples/batch-tuning.ipynb`. It still resolves, and the examples pass will update it. No code block, literalinclude, label, or URL changed. ## Pre-existing claims, tracked separately The pass kept these claims as written, and they don't block this PR. #67338 fixes the code-sample and link problems that the page settles. #67339 corrects the claims that the source settles, such as `ERRORED`, `max_retries`, `checkpoint_freq`, `TrialRunner`, `experiment_tag`, and `_train()`, and lists the rest for a Tune engineer: 1. **`tune-scalability.md`:** the trial executor, SSH-based syncing, and "syncing to the driver" look like they predate the `storage_path` model, and the benchmark numbers carry no Ray version. 1. **`tune-distributed.md`:** "Tune automatically pushes the previous checkpoint file to that node" may also predate `storage_path`. 1. **`tune-run.md`:** "Tune can automatically retry failed trials as well as entire experiments" links to the stopping guide. The fault-tolerance guide looks like the intended target. ## Duplicate check No open PR edits these pages, apart from the renames in #67015, which have merged. I searched open `ray-project/ray` PRs for `tune` in the title and for the tutorial paths. ## Testing ```bash vale --output=line doc/source/tune/tutorials/ pre-commit run --files <changed files> ``` - **Vale 3.12.0 with the Tune config from #67017:** alerts under `tune/tutorials/` go from 686 to 64. What's left is deliberate: - Passives where the actor is external or unnamed, such as a preempted node. - Column names in a rendered DataFrame table. - Product names such as `awless` and `HParams`. - `Google.LyHyphens` false positives on "early-stopping". - `Tune.Capitalization` on two "Function API" and "Class API" tab titles, which are correct as written. - **Structure check:** a script compared each page before and after. Code fences, `(label)=` anchors, and URLs are unchanged. The only role-target change is one duplicate `actor-guide` link removed from `tune-lifecycle.md`. - **Inbound links:** I grepped `doc/source` for every reworded heading's old slug and for link text that quotes an old title. - **Meaning review:** every changed block was checked for drift, meaning an edit that changes what the text asserts rather than how it reads. Of 420 changed blocks, 43 were provably cosmetic. A per-file reviewer checked the other 377 against the pre-PR text and the Tune source. Two had drifted, and a follow-up commit restores both: - `tune-resources.md` had narrowed the placement-group advice from any trainable to function trainables only. `api/trainable.rst` gives it for both. - `tune-scalability.md` had turned "some insights on results" into "the results that showed high overhead", which implied a complete list. Two high-overhead rows in the overview table get no section. A second, independent review on 2026-10-23 found no other drift. It found the deliberate claim corrections that the first revision made, plus two cross-reference role targets in `tune-trial-checkpoints.md` and a link-text change in `tune-resources.md`. It also found a dropped "can" hedge in `tune-fault-tolerance.md` and a dropped deprecation marker on a `tune-storage.md` heading. A follow-up commit restores all of these as written. The corrections now land in #67338 and #67339. - **Style review:** a fresh review of the final text against Ray's writing-style guide. Commit 832b9c2 applies the confirmed findings: alt text, numbers spelled out, duplicate links dropped within a section, descriptive link text, non-sequential lists as bullets, and role targets and symbols checked against source. Findings that touch code samples, or that need a maintainer decision, are left for a follow-up. - **pre-commit:** passed. - **Not run locally:** the Sphinx build. The RtD preview covers it. Prepared with AI assistance (Claude Code). Draft until the submitter has reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…67338) ## Why are these changes needed? The Ray Tune style-pass PRs, #67019 and #67020, flagged pre-existing problems in the pages they edited and left them as written, because a style pass shouldn't change claims. This PR fixes the ones that don't change a technical claim. Each fix is settled by the page itself, its own code sample, or the target of a link, so a docs reviewer can approve it. **Stacked on #67020**, which is stacked on #67019 and #67017. Until those merge, the diff here includes their changes. Review only the last two commits, `f603f90` and `0f2ffcb`. Once the stack lands, I'll rebase onto `master` and retarget there. #67020's source-settled corrections follow in a separate PR stacked on this one. ### Overview pages - `key-concepts.md`: the example objective in prose was `a (x ** 2) + b`. The page's first statement of it, and `doc_code/key_concepts.py`, both have `a * (x ** 2) + b`. - `key-concepts.md`: "the scheduler API documentation" linked to the page's own section (`schedulers-ref`). It now links to the scheduler API reference (`tune-schedulers`), which the same page already uses three times. - `getting-started.md`: the search-space sentence now names what the included snippet uses, Hyperopt's `hp` functions with `HyperOptSearch`. - `index.md`: the quickstart described its objective as `f(x) = a**2 + b`. The included snippet (`python/ray/tune/tests/example.py`) takes a `config` dict and computes `a**2 + b`, with no `x`. - `faq.md`: the placement-group paragraph called the extra bundles "remote tasks", then "actors". The paragraph above it introduces them as remote actors, so it now says "actors" throughout. The snippet requests two `{"CPU": 1}` bundles, so "two additional actors" stays. - `faq.md`, `getting-started.md`: an untagged code fence gets `text`, and bash blocks lose their `$` prompts. ### User guides - `tune-storage.md`: the results path in prose now includes the `/mnt` prefix that the code block above it sets. The examples intro says "the example", since the section has one. Two code comments drop "We recommend" and "We'll keep". - `tune-trial-checkpoints.md`: the `{class}` roles pointed at `ray.tune.callback.Callback` and `ray.tune.Trial`. The API reference documents them as `ray.tune.Callback` (`tune/api/callbacks.rst`) and `ray.tune.experiment.trial.Trial` (`tune/api/internals.rst`). `ray.tune` doesn't export `Trial`. - `tune-resources.md`: the link text "Ray Train Hyperparameter Optimization" now matches its target's title, "Hyperparameter tuning with Ray Tune". - `tune-distributed.md`: the argparse example defined `--address`, but the commands under it pass `--ray-address`. The example now defines `--ray-address`. Bash blocks lose their `$` prompts. - `tune-output.md`: the first snippet passed `num_samples` to `RunConfig`, which has no such field. It now passes it through `tune.TuneConfig`, as the page's second snippet does. Bash blocks lose their `$` prompts. - `tune-search-spaces.md`: the snippet called `tune.randn([0, 1, 2])`, which doesn't match `randn(mean=0.0, sd=1.0)` in `python/ray/tune/search/sample.py`. It now calls `tune.randn(0, 1)`. - `tune-run.md`: two untagged output fences get `text`. ## Testing - `pre-commit run --files <changed files>`: passed. - No label, heading, or include changed. - Not run locally: the Sphinx build. The RtD preview covers it. Prepared with AI assistance (Claude Code). Draft until the submitter has reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…67339) ## Why are these changes needed? The Ray Tune style-pass PRs, #67019 and #67020, flagged pre-existing claims that looked inconsistent with the source and kept them as written. This PR corrects the ones that current source settles. Every claim was already in the docs before the style pass, so none is drift that the style pass introduced. **Stacked on #67338**, the mechanical fixes for the same pages, which builds on the style PRs. The diff against #67338's branch is two commits, `d3a979b` and `3e8e2b4`. **For Ray Tune reviewers:** these corrections change what the docs say, so please confirm them. Each item cites the source it rests on. Paths are under `python/ray/` unless they start with `doc/`. ### Overview pages - `getting-started.md`: the heading and link expanded ASHA as "Adaptive Successive Halving". The `AsyncHyperBandScheduler` docstring says "Async Successive Halving" (`tune/schedulers/async_hyperband.py:20`), as does `doc/source/tune/examples/includes/async-hyperband-example.md`. - `getting-started.md`: "retrieve the best model with the ExperimentAnalysis object" now names `ResultGrid`, which `Tuner.fit()` returns in the included snippet (`tune/tests/tutorial.py`) and which the link target documents. - `getting-started.md`: "increase the search space by 5x by adjusting `num_samples`" now says "run 5x more trials". The `TuneConfig` docstring defines `num_samples` as the "Number of times to sample from the hyperparameter space" (`tune/tune_config.py:31`). - `getting-started.md`: the learning rate and momentum were both said to come from a uniform distribution. The snippet samples `lr` as `10 ** (-10 * np.random.rand())`, which is log-uniform, and only `momentum` with `tune.uniform`. - `index.md`: both framework tabs said to pass the search algorithm "to `run`". The included snippets pass it to `tune.Tuner` through `tune.TuneConfig(search_alg=...)` (`doc/source/tune/doc_code/keras_hyperopt.py`, `pytorch_optuna.py`). The Optuna tab's "we stop tuning this training run after 5 iterations" now says each trial stops, since a `stop` dictionary applies per trial. - `faq.md`: trainable functions "accept at most two parameters, `config` and `checkpoint_dir`". `wrap_function` requires "a single 'config' positional parameter" (`tune/trainable/function_trainable.py:207-214`). `checkpoint_dir` survives only as an internal `save_checkpoint` argument. - `faq.md`: "add `num_samples: N` to the experiment configuration". `num_samples` is a `TuneConfig` field (`tune/tune_config.py`). ### User guides - `tune-stopping.md`: a dictionary criterion stops a trial when the metric "reaches or exceeds" the threshold, not only when it exceeds it. `Trial.should_stop` compares with `>=` (`tune/experiment/trial.py:870`). The page's own example already says "0.8 or more". - `tune-stopping.md`: early-stopping schedulers stop trials, not experiments. `TrialScheduler.STOP` is a per-trial decision (`tune/schedulers/trial_scheduler.py:22`). The intro list's first item likewise now ends each trial, not the experiment. - `tune-search-spaces.md`: "specify `tune.RunConfig(num_samples=N`" now says to set `num_samples` in `tune.TuneConfig`, where it's defined (`tune/tune_config.py`) and where every snippet on the page sets it. - `tune-output.md`: "specify the `storage_path` and `trainable_name`" now says the experiment `name`. `RunConfig` has a `name` field and no `trainable_name` (`air/config.py:603`), and the snippet passes `name=`. - `tune-get-data-in-and-out.md`: "the `callback` argument" is `callbacks` (`air/config.py:611`), as every `RunConfig` on the page uses. "Use the `session` and `Checkpoint` APIs" now names `tune.get_checkpoint()`, which the example calls (`tune/trainable/trainable_fn_utils.py:53`). - `tune-get-data-in-and-out.md`: "Ray Train provides a `Checkpoint` API" now credits Ray Tune. The link targets `ray.tune.Checkpoint`, which is Tune's own subclass of the Train checkpoint, kept separate so Tune can detect the correct import (`tune/trainable/trainable_fn_utils.py:13-17`). The Tune API reference documents it (`doc/source/tune/api/trainable.rst`). - `tune-get-data-in-and-out.md`: `Checkpoint` objects come from "local directories and cloud storage", not "dictionaries". The class takes a local path or remote URI, and `from_directory` is its only constructor (`train/_checkpoint.py:117-126`, `:179`). - `tune-trial-checkpoints.md`: the checkpoint frequency might not coincide with the end of a *trial*, not of an experiment. `Trial.should_checkpoint` counts each trial's own iterations (`tune/experiment/trial.py:874-882`). The next sentence on the page already says "end of a trial". - `tune-resources.md`: `tune.with_resources(trainable, resources_per_trial)` now matches the signature, `with_resources(trainable, resources)` (`tune/trainable/util.py:151-153`). - `tune-lifecycle.md`: the trial status is `ERROR`, not `ERRORED` (`Trial.ERROR = "ERROR"`, `tune/experiment/trial.py:258`). The page fixes it in the status list and in the state description. - `tune-lifecycle.md`: a failed trial retries if you set `max_failures`, not `max_retries`. Tune has no `max_retries` option, and the same page uses `max_failures` (`tune/experiment/trial.py`). - `tune-lifecycle.md`: checkpointing runs if you set `checkpoint_frequency` in `CheckpointConfig`. The `checkpoint_freq` argument has been deprecated since 2.7 (`tune/tune.py:304`, `:681`). - `tune-lifecycle.md`: "TrialRunner" is now `TuneController`, the name the rest of the page uses. - `tune-metrics.md`: `experiment_tag` is a per-trial tag. `tune/result.py:28` calls it "the auto-assigned id of the trial". `time_this_iter_s` covers one call to `step()` in the class API, not `_train()`, which doesn't exist (`tune/trainable/trainable.py:816`). ## Pre-existing claims, tracked separately These need a Tune engineer's call rather than a source lookup, so this PR leaves them as written. They don't block it. - `index.md`: "scale up … by 100x while reducing costs by up to 10x" has no source on the page. "Hyperopt or Bayesian Optimization" names a technique beside a tool. The same page lists the library as "BayesOpt". - `key-concepts.md`: the `OptunaSearch` row reads "Optuna search algorithms", and the median stopping rule's "Example" cell links to its API reference. `doc_code/key_concepts.py` comments "minimize the score" but passes `mode="max"`. - `tune-scalability.md`: the trial executor, SSH-based syncing, and "syncing to the driver" look like they predate the `storage_path` model, and the benchmarks carry no Ray version. The durable trainable row lists 10/60 results per second, but `test_durable_trainable.py` now uses 5/60. The observed runtime might come from the older setting. - `tune-distributed.md`: "Tune automatically pushes the previous checkpoint file to that node" may also predate `storage_path`. - `tune-lifecycle.md`: "when the trainable stops, the actor terminates", but `TuneController` can reuse actors. - `tune-run.md`: "Tune can automatically retry failed trials as well as entire experiments" links to the stopping guide. The fault-tolerance guide looks like the intended target. - `tune-trial-checkpoints.md`: the prose says to return `should_checkpoint` from `step`, but the example method in `doc/source/tune/doc_code/trial_checkpoint.py` is named `train_func`. - `tune-output.md`: the TensorFlow 2.x condition for HParams output wasn't checked. ## Testing - `pre-commit run --files <changed files>`: passed. - Every citation above was checked against the source at this branch's base. - No label, include, or code block changed. One heading changed, the ASHA heading in `getting-started.md`, and nothing in `doc/source` links to its slug. - Not run locally: the Sphinx build. The RtD preview covers it. Prepared with AI assistance (Claude Code). Draft until a Tune reviewer confirms the corrections. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
## Why are these changes needed? This PR runs a style pass over the 14 Ray Tune user guides under `doc/source/tune/tutorials/`. It applies Ray's writing-style guide and the Tune terms that ray-project#67017 adds to it. **Stacked on ray-project#67019**, the style pass on the Tune overview pages. That one is stacked on ray-project#67017, the Tune Vale term library. The Tune slug renames (ray-project#67015) have merged. The file sets don't overlap. Retarget this PR to `master` once the stack below merges. ## What changed Most of the diff is prose: - Second person, active voice, and present tense, with no "we", "our", or "let's". - Filler cut. - Contractions, and "such as" in place of "like". - Complete lead-in sentences before code blocks. - Descriptive link text in place of "here". - Spelled-out abbreviations: "configuration dictionary", "trial directory", "for example". Tune terms follow the new guide section. The concepts are lowercase: "trainable", "search algorithm", "trial scheduler", "function API", and "class API". Class names stay in code style. Where a page uses "trial" and "experiment" loosely, the pass changed one to the other only where the page itself makes clear which it means. Structure: - Headings are in sentence case. Task headings are imperative, such as "Use GPUs in Tune" and "Checkpoint periodically". Concept headings are questions, such as "How does Tune handle failures?". - Ordered lists number every item `1.`. - Bold asides such as `**Troubleshooting**:` and `**Main insight**:` become `tip` admonitions. - Lists are made consistent, and duplicate blank lines are collapsed outside code blocks. - In `tune-distributed.md`, the spot-instance procedure's code blocks are now indented under their list items, so the ordered list no longer splits in two. - The `tutorials/index.md` toctree title overrides are now in sentence case. The garbled "To specifies the max number of trials" in `tune-resources.md` becomes "To limit the number of trials that run concurrently". This PR changes prose only. Every technical claim reads as it did before, including claims that look wrong. An earlier revision corrected several of them here. Those corrections now live in ray-project#67338, for the ones the page itself settles, and ray-project#67339, for the ones the Tune source settles, so this PR can merge on a docs review alone. Every heading that other pages reference keeps its `(label)=` anchor, and no reworded heading had an inbound slug link in `doc/source`. In `tune-distributed.md`, the link text that quoted the old fault-tolerance heading now matches the new one. One link outside these files still quotes an old H1, in `examples/batch-tuning.ipynb`. It still resolves, and the examples pass will update it. No code block, literalinclude, label, or URL changed. ## Pre-existing claims, tracked separately The pass kept these claims as written, and they don't block this PR. ray-project#67338 fixes the code-sample and link problems that the page settles. ray-project#67339 corrects the claims that the source settles, such as `ERRORED`, `max_retries`, `checkpoint_freq`, `TrialRunner`, `experiment_tag`, and `_train()`, and lists the rest for a Tune engineer: 1. **`tune-scalability.md`:** the trial executor, SSH-based syncing, and "syncing to the driver" look like they predate the `storage_path` model, and the benchmark numbers carry no Ray version. 1. **`tune-distributed.md`:** "Tune automatically pushes the previous checkpoint file to that node" may also predate `storage_path`. 1. **`tune-run.md`:** "Tune can automatically retry failed trials as well as entire experiments" links to the stopping guide. The fault-tolerance guide looks like the intended target. ## Duplicate check No open PR edits these pages, apart from the renames in ray-project#67015, which have merged. I searched open `ray-project/ray` PRs for `tune` in the title and for the tutorial paths. ## Testing ```bash vale --output=line doc/source/tune/tutorials/ pre-commit run --files <changed files> ``` - **Vale 3.12.0 with the Tune config from ray-project#67017:** alerts under `tune/tutorials/` go from 686 to 64. What's left is deliberate: - Passives where the actor is external or unnamed, such as a preempted node. - Column names in a rendered DataFrame table. - Product names such as `awless` and `HParams`. - `Google.LyHyphens` false positives on "early-stopping". - `Tune.Capitalization` on two "Function API" and "Class API" tab titles, which are correct as written. - **Structure check:** a script compared each page before and after. Code fences, `(label)=` anchors, and URLs are unchanged. The only role-target change is one duplicate `actor-guide` link removed from `tune-lifecycle.md`. - **Inbound links:** I grepped `doc/source` for every reworded heading's old slug and for link text that quotes an old title. - **Meaning review:** every changed block was checked for drift, meaning an edit that changes what the text asserts rather than how it reads. Of 420 changed blocks, 43 were provably cosmetic. A per-file reviewer checked the other 377 against the pre-PR text and the Tune source. Two had drifted, and a follow-up commit restores both: - `tune-resources.md` had narrowed the placement-group advice from any trainable to function trainables only. `api/trainable.rst` gives it for both. - `tune-scalability.md` had turned "some insights on results" into "the results that showed high overhead", which implied a complete list. Two high-overhead rows in the overview table get no section. A second, independent review on 2026-10-23 found no other drift. It found the deliberate claim corrections that the first revision made, plus two cross-reference role targets in `tune-trial-checkpoints.md` and a link-text change in `tune-resources.md`. It also found a dropped "can" hedge in `tune-fault-tolerance.md` and a dropped deprecation marker on a `tune-storage.md` heading. A follow-up commit restores all of these as written. The corrections now land in ray-project#67338 and ray-project#67339. - **Style review:** a fresh review of the final text against Ray's writing-style guide. Commit 832b9c2 applies the confirmed findings: alt text, numbers spelled out, duplicate links dropped within a section, descriptive link text, non-sequential lists as bullets, and role targets and symbols checked against source. Findings that touch code samples, or that need a maintainer decision, are left for a follow-up. - **pre-commit:** passed. - **Not run locally:** the Sphinx build. The RtD preview covers it. Prepared with AI assistance (Claude Code). Draft until the submitter has reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…ay-project#67338) ## Why are these changes needed? The Ray Tune style-pass PRs, ray-project#67019 and ray-project#67020, flagged pre-existing problems in the pages they edited and left them as written, because a style pass shouldn't change claims. This PR fixes the ones that don't change a technical claim. Each fix is settled by the page itself, its own code sample, or the target of a link, so a docs reviewer can approve it. **Stacked on ray-project#67020**, which is stacked on ray-project#67019 and ray-project#67017. Until those merge, the diff here includes their changes. Review only the last two commits, `f603f90` and `0f2ffcb`. Once the stack lands, I'll rebase onto `master` and retarget there. ray-project#67020's source-settled corrections follow in a separate PR stacked on this one. ### Overview pages - `key-concepts.md`: the example objective in prose was `a (x ** 2) + b`. The page's first statement of it, and `doc_code/key_concepts.py`, both have `a * (x ** 2) + b`. - `key-concepts.md`: "the scheduler API documentation" linked to the page's own section (`schedulers-ref`). It now links to the scheduler API reference (`tune-schedulers`), which the same page already uses three times. - `getting-started.md`: the search-space sentence now names what the included snippet uses, Hyperopt's `hp` functions with `HyperOptSearch`. - `index.md`: the quickstart described its objective as `f(x) = a**2 + b`. The included snippet (`python/ray/tune/tests/example.py`) takes a `config` dict and computes `a**2 + b`, with no `x`. - `faq.md`: the placement-group paragraph called the extra bundles "remote tasks", then "actors". The paragraph above it introduces them as remote actors, so it now says "actors" throughout. The snippet requests two `{"CPU": 1}` bundles, so "two additional actors" stays. - `faq.md`, `getting-started.md`: an untagged code fence gets `text`, and bash blocks lose their `$` prompts. ### User guides - `tune-storage.md`: the results path in prose now includes the `/mnt` prefix that the code block above it sets. The examples intro says "the example", since the section has one. Two code comments drop "We recommend" and "We'll keep". - `tune-trial-checkpoints.md`: the `{class}` roles pointed at `ray.tune.callback.Callback` and `ray.tune.Trial`. The API reference documents them as `ray.tune.Callback` (`tune/api/callbacks.rst`) and `ray.tune.experiment.trial.Trial` (`tune/api/internals.rst`). `ray.tune` doesn't export `Trial`. - `tune-resources.md`: the link text "Ray Train Hyperparameter Optimization" now matches its target's title, "Hyperparameter tuning with Ray Tune". - `tune-distributed.md`: the argparse example defined `--address`, but the commands under it pass `--ray-address`. The example now defines `--ray-address`. Bash blocks lose their `$` prompts. - `tune-output.md`: the first snippet passed `num_samples` to `RunConfig`, which has no such field. It now passes it through `tune.TuneConfig`, as the page's second snippet does. Bash blocks lose their `$` prompts. - `tune-search-spaces.md`: the snippet called `tune.randn([0, 1, 2])`, which doesn't match `randn(mean=0.0, sd=1.0)` in `python/ray/tune/search/sample.py`. It now calls `tune.randn(0, 1)`. - `tune-run.md`: two untagged output fences get `text`. ## Testing - `pre-commit run --files <changed files>`: passed. - No label, heading, or include changed. - Not run locally: the Sphinx build. The RtD preview covers it. Prepared with AI assistance (Claude Code). Draft until the submitter has reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…ay-project#67339) ## Why are these changes needed? The Ray Tune style-pass PRs, ray-project#67019 and ray-project#67020, flagged pre-existing claims that looked inconsistent with the source and kept them as written. This PR corrects the ones that current source settles. Every claim was already in the docs before the style pass, so none is drift that the style pass introduced. **Stacked on ray-project#67338**, the mechanical fixes for the same pages, which builds on the style PRs. The diff against ray-project#67338's branch is two commits, `d3a979b` and `3e8e2b4`. **For Ray Tune reviewers:** these corrections change what the docs say, so please confirm them. Each item cites the source it rests on. Paths are under `python/ray/` unless they start with `doc/`. ### Overview pages - `getting-started.md`: the heading and link expanded ASHA as "Adaptive Successive Halving". The `AsyncHyperBandScheduler` docstring says "Async Successive Halving" (`tune/schedulers/async_hyperband.py:20`), as does `doc/source/tune/examples/includes/async-hyperband-example.md`. - `getting-started.md`: "retrieve the best model with the ExperimentAnalysis object" now names `ResultGrid`, which `Tuner.fit()` returns in the included snippet (`tune/tests/tutorial.py`) and which the link target documents. - `getting-started.md`: "increase the search space by 5x by adjusting `num_samples`" now says "run 5x more trials". The `TuneConfig` docstring defines `num_samples` as the "Number of times to sample from the hyperparameter space" (`tune/tune_config.py:31`). - `getting-started.md`: the learning rate and momentum were both said to come from a uniform distribution. The snippet samples `lr` as `10 ** (-10 * np.random.rand())`, which is log-uniform, and only `momentum` with `tune.uniform`. - `index.md`: both framework tabs said to pass the search algorithm "to `run`". The included snippets pass it to `tune.Tuner` through `tune.TuneConfig(search_alg=...)` (`doc/source/tune/doc_code/keras_hyperopt.py`, `pytorch_optuna.py`). The Optuna tab's "we stop tuning this training run after 5 iterations" now says each trial stops, since a `stop` dictionary applies per trial. - `faq.md`: trainable functions "accept at most two parameters, `config` and `checkpoint_dir`". `wrap_function` requires "a single 'config' positional parameter" (`tune/trainable/function_trainable.py:207-214`). `checkpoint_dir` survives only as an internal `save_checkpoint` argument. - `faq.md`: "add `num_samples: N` to the experiment configuration". `num_samples` is a `TuneConfig` field (`tune/tune_config.py`). ### User guides - `tune-stopping.md`: a dictionary criterion stops a trial when the metric "reaches or exceeds" the threshold, not only when it exceeds it. `Trial.should_stop` compares with `>=` (`tune/experiment/trial.py:870`). The page's own example already says "0.8 or more". - `tune-stopping.md`: early-stopping schedulers stop trials, not experiments. `TrialScheduler.STOP` is a per-trial decision (`tune/schedulers/trial_scheduler.py:22`). The intro list's first item likewise now ends each trial, not the experiment. - `tune-search-spaces.md`: "specify `tune.RunConfig(num_samples=N`" now says to set `num_samples` in `tune.TuneConfig`, where it's defined (`tune/tune_config.py`) and where every snippet on the page sets it. - `tune-output.md`: "specify the `storage_path` and `trainable_name`" now says the experiment `name`. `RunConfig` has a `name` field and no `trainable_name` (`air/config.py:603`), and the snippet passes `name=`. - `tune-get-data-in-and-out.md`: "the `callback` argument" is `callbacks` (`air/config.py:611`), as every `RunConfig` on the page uses. "Use the `session` and `Checkpoint` APIs" now names `tune.get_checkpoint()`, which the example calls (`tune/trainable/trainable_fn_utils.py:53`). - `tune-get-data-in-and-out.md`: "Ray Train provides a `Checkpoint` API" now credits Ray Tune. The link targets `ray.tune.Checkpoint`, which is Tune's own subclass of the Train checkpoint, kept separate so Tune can detect the correct import (`tune/trainable/trainable_fn_utils.py:13-17`). The Tune API reference documents it (`doc/source/tune/api/trainable.rst`). - `tune-get-data-in-and-out.md`: `Checkpoint` objects come from "local directories and cloud storage", not "dictionaries". The class takes a local path or remote URI, and `from_directory` is its only constructor (`train/_checkpoint.py:117-126`, `:179`). - `tune-trial-checkpoints.md`: the checkpoint frequency might not coincide with the end of a *trial*, not of an experiment. `Trial.should_checkpoint` counts each trial's own iterations (`tune/experiment/trial.py:874-882`). The next sentence on the page already says "end of a trial". - `tune-resources.md`: `tune.with_resources(trainable, resources_per_trial)` now matches the signature, `with_resources(trainable, resources)` (`tune/trainable/util.py:151-153`). - `tune-lifecycle.md`: the trial status is `ERROR`, not `ERRORED` (`Trial.ERROR = "ERROR"`, `tune/experiment/trial.py:258`). The page fixes it in the status list and in the state description. - `tune-lifecycle.md`: a failed trial retries if you set `max_failures`, not `max_retries`. Tune has no `max_retries` option, and the same page uses `max_failures` (`tune/experiment/trial.py`). - `tune-lifecycle.md`: checkpointing runs if you set `checkpoint_frequency` in `CheckpointConfig`. The `checkpoint_freq` argument has been deprecated since 2.7 (`tune/tune.py:304`, `:681`). - `tune-lifecycle.md`: "TrialRunner" is now `TuneController`, the name the rest of the page uses. - `tune-metrics.md`: `experiment_tag` is a per-trial tag. `tune/result.py:28` calls it "the auto-assigned id of the trial". `time_this_iter_s` covers one call to `step()` in the class API, not `_train()`, which doesn't exist (`tune/trainable/trainable.py:816`). ## Pre-existing claims, tracked separately These need a Tune engineer's call rather than a source lookup, so this PR leaves them as written. They don't block it. - `index.md`: "scale up … by 100x while reducing costs by up to 10x" has no source on the page. "Hyperopt or Bayesian Optimization" names a technique beside a tool. The same page lists the library as "BayesOpt". - `key-concepts.md`: the `OptunaSearch` row reads "Optuna search algorithms", and the median stopping rule's "Example" cell links to its API reference. `doc_code/key_concepts.py` comments "minimize the score" but passes `mode="max"`. - `tune-scalability.md`: the trial executor, SSH-based syncing, and "syncing to the driver" look like they predate the `storage_path` model, and the benchmarks carry no Ray version. The durable trainable row lists 10/60 results per second, but `test_durable_trainable.py` now uses 5/60. The observed runtime might come from the older setting. - `tune-distributed.md`: "Tune automatically pushes the previous checkpoint file to that node" may also predate `storage_path`. - `tune-lifecycle.md`: "when the trainable stops, the actor terminates", but `TuneController` can reuse actors. - `tune-run.md`: "Tune can automatically retry failed trials as well as entire experiments" links to the stopping guide. The fault-tolerance guide looks like the intended target. - `tune-trial-checkpoints.md`: the prose says to return `should_checkpoint` from `step`, but the example method in `doc/source/tune/doc_code/trial_checkpoint.py` is named `train_func`. - `tune-output.md`: the TensorFlow 2.x condition for HParams output wasn't checked. ## Testing - `pre-commit run --files <changed files>`: passed. - Every citation above was checked against the source at this branch's base. - No label, include, or code block changed. One heading changed, the ASHA heading in `getting-started.md`, and nothing in `doc/source` links to its slug. - Not run locally: the Sphinx build. The RtD preview covers it. Prepared with AI assistance (Claude Code). Draft until a Tune reviewer confirms the corrections. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Why are these changes needed?
This PR runs a style pass over the four Ray Tune overview pages:
tune/index.md,getting-started.md,key-concepts.md, andfaq.md. It applies Ray's writing-style guide and the Tune terms that #67017 adds to it.Stacked on #67017, which adds the Tune Vale term library and the "Writing Ray Tune docs" section that these edits follow. Retarget this one to
masteronce #67017 merges. The Tune slug renames it builds on (#67015) have merged.What changed
Most of the diff is prose:
Tune terms follow the new guide section:
key-concepts.mdalso stops putting concept names such astrialandschedulerin code style. Those aren't identifiers.This PR changes prose only. Every technical claim reads as it did before, including claims that look wrong. An earlier revision corrected several of them here. Those corrections now live in #67338, for the ones the page itself settles, and #67339, for the ones the Tune source settles, so this PR can merge on a docs review alone.
ray-overview/use-cases.md: its link text quoted the old Getting Started title, so it now matches the new H1.Headings changed by more than case, with no inbound slug links found in
doc/source:getting-started.md: every H2 is now imperative, such as "Set up a PyTorch model to tune".### Next stepsbecomes an H2.index.md: "Citing Tune" becomes "Cite Tune".faq.md: the "(multi-tenancy)" and "(iterative experimentation)" glosses move from the headings into the body text. Both sections keep their labels.Every heading with an inbound
{ref}keeps its(label)=anchor. No code block, literalinclude, label, or URL changed.Pre-existing claims, tracked separately
The pass kept these claims as written. They don't block this PR. #67338 and #67339 fix the ones that the page or the source settles, including
f(x)in theindex.mdquickstart, "remote tasks" infaq.md, and "increase the search space by 5x" ingetting-started.md. #67339 lists the rest for a Tune engineer:index.md: "scale up … by 100x while reducing costs by up to 10x" has no source on the page. "Hyperopt or Bayesian Optimization" names a technique beside a tool.key-concepts.md: theOptunaSearchtable row summarizes it as "Optuna search algorithms", and the median stopping rule's "Example" cell links to its API reference rather than an example.Duplicate check
No open PR edits these pages. I searched open
ray-project/rayPRs fortunein the title and for each file path. The only hits are this stack: #67017, and #67015, which has merged.Testing
vale --output=line doc/source/tune/{index,getting-started,key-concepts,faq}.md pre-commit run --files <changed files>Tune.Capitalizationalerts on the "Function API" and "Class API" tab titles. These are correct as written: the rule can't tell when a phrase starts a title.(label)=anchors, and URLs are unchanged. Role targets are unchanged apart from two duplicate links removed inkey-concepts.md.doc/sourcefor every reworded heading's old slug and for link text that quotes an old title. The only hit wasuse-cases.md, fixed here.1.-numbered source made fragile. The repeated "with" is dropped, and theResourceChangingSchedulerref gets a space before its target.Prepared with AI assistance (Claude Code). Draft until the submitter has reviewed every changed line.
🤖 Generated with Claude Code