
| Category | Value (count units) |
|---|---|
| Within-bed holdout | 1.2 |
| Whole-site holdout | 3.8 |
Illustrative only, not taken from a source dataset. Invented errors; the two evaluations answer different questions.
A greenhouse team wants to predict flowering counts in gardens it has not visited. In its first evaluation it sets aside several rows from each bed, trains a model on the rest, and scores the withheld rows. The predictions seem quite close. Then the team holds out an entire garden before fitting the model again. The score gets worse. The second result is uncomfortable, but it does not necessarily invalidate the first. The team has changed the question: from estimating missing observations in familiar beds to making predictions in a site that supplied no training observations.
Records can be left out of a fit and still share much of what makes neighboring records predictable. The plots may have the same soil, irrigation, landscape setting, survey crew or history. Even if those influences are not entered as explicit predictors, they can create patterns the model effectively learns from the training rows nearby. A close test plot can be a legitimate test for a nearby prediction. It is not automatically an independent test for a claim about transfer to a new garden. Design the evaluation to resemble what will actually be available when the model is used.
The crucial decision is not whether to use the most difficult split imaginable. It is to define which kind of novelty the real prediction has to face. Will the model fill holes inside familiar beds? Work in a new bed within a known garden? Predict at a garden with no local observations? Operate next season in a different region? Those goals call for different evaluation designs. Calling a test independent without naming its unit leaves readers to guess which of those claims the score actually supports.
What the two illustrative bars show
The graph shows illustrative errors of 1.2 count units for a within-bed holdout and 3.8 count units for a whole-site holdout. They are invented outcomes, not scores computed from real garden data, government reports or a trained model. In this teaching example, interpret the scores as hypothetical mean absolute prediction errors on comparable count outcomes: an individual absolute error is the size of predicted minus observed after ignoring its sign, and the mean is taken over the eligible evaluation records under the stipulated summary. The graph's unit is count units, not percent.
| Illustrative evaluation | Error in count units |
|---|---|
| Within-bed holdout | 1.2 |
| Whole-site holdout | 3.8 |
The absolute difference between the displayed values is 2.6 count units. Because the two evaluations answer different questions, that difference is not a measured increase caused by geography and does not demonstrate that one algorithm is a particular amount worse. It cannot tell whether dependence, training sample size, different site conditions or a combination would explain such a gap in practice. The example does not report uncertainty, number of gardens, number of records, distribution of errors or aggregate counts. Neither number should be used as a threshold for an actual model.
Make the scope clear in the caption. The first bar illustrates testing new rows from beds that also supply training observations. The second illustrates training without the held garden and testing on its rows. The latter should not be read as evidence about a new region or a future season unless the split also represents those conditions. Conversely, the first could be precisely the evaluation you need for estimating a missing count in a bed that already has a solid record. A smaller error does not make a mismatched test more relevant.
The U.S. Census Bureau Statistical Quality Standard A3, also available in the agency's official standards compilation, provides useful background on defining a sampling frame and documenting sample design. It does not prescribe the toy evaluation or supply its error values. The NIST/SEMATECH model validation section explains why a single fit statistic cannot stand in for diagnostic evidence. In the setting of structured data, Roberts and colleagues examine how different validation strategies interact with spatial and other dependence. Those references frame the questions; the article's illustrative garden is not an observed case from them.
Distinguish interpolation from transfer
In one common use, a gardener wants to estimate what happened at a missing row within an otherwise well-observed bed. Neighboring observations are legitimately available at prediction time, so evaluating a model without all nearby records might be less relevant. A useful test can hold back rows in the same bed and emulate the actual types of gaps expected. It should still avoid direct leakage, such as allowing another copy of the same count into training. The claim is local completion under a described information pattern, not evidence that the model will work anywhere resembling that bed.
A different task is predicting a count at a new garden before any outcome is recorded there. In that setting local outcome rows are not available for training or cleanup. If training includes other rows from every garden in the test set, it has information that will not exist in deployment. Hold entire gardens out to approximate the new-site problem. Ask whether the model will have access to site map variables, remote measurements or prior local counts when predicting. Available predictors and available outcomes are separate matters; simply keeping outcome columns out of the prediction form does not ensure the entire pipeline honored the intended information boundary.
A third possibility is “new bed, known site.” Beds in a familiar garden can share topography, staffing, operating context and weather, while still differing enough to warrant a more demanding split than a withheld row. Hold out complete beds but retain the other beds if those records would be available in real use. Then describe the evaluation as transfer between beds within known sites. Do not call it a new-site test just because no rows from one particular bed were used. The relationship among site, bed and plot is the key to interpreting which prediction claim has been exercised.
New times and new places can also be separate. A holdout across gardens sampled in the same week might test transfer under shared seasonal conditions. It cannot verify predictions for months whose flowering or survey conditions differ. A temporal holdout of future visits in the same set of gardens does not by itself test unfamiliar gardens. If both shifts matter, consider a design that represents both under a clear protocol. That can be demanding with a small dataset. A narrower tested claim is more honest than labeling a mixed holdout as all-purpose validation.
Map the units that can carry information across a split
Start with a hierarchy. A row might be one count in a subplot on a date. The subplot belongs to a bed, and the bed belongs to a garden. Several gardens may belong to the same project, share a survey crew or receive seedlings from the same source. The unit that needs to be kept together depends on the question. If the intention is to predict a new site, groups should reflect the site identity at a minimum. If several nominal sites share important management or represent different labels for one physical area, a larger group may be needed. Record that choice before assigning observations to splits.
Proximity is not the only relationship. Two disconnected plots may be operated together, and adjacent beds can differ sharply because a wall separates their exposure or watering routines. Where practical, use available information to define relevant groups rather than treating distance as a universal constant. A map can reveal shared boundaries and clustered observations, while a site log can show shared procedures that a map cannot. Name how groups were built and how uncertainties were treated. An evaluation can only be repeated if the grouping rules are as visible as the model settings.
Check repeated observations. A marked square photographed three times, a count corrected from an original entry and its duplicate in a higher-level summary can all leak the same observation across training and test if rows are split individually. Identify stable records and links before partitioning. For an ordinary site-level holdout, all source records tied to that site should stay together. In a within-bed evaluation, decide which repeated measurements are legitimately visible and which duplicate or derive from the withheld target. A random split of rows is not random separation of information.
Spatial features may themselves incorporate neighboring outcomes. A derived predictor called recent local count could be legitimate for interpolation in a bed with known surrounding values. A feature built from all observed counts around a test garden could compromise a no-local-data evaluation. Decide which raw information is available under the intended use, then rebuild any derived features inside that boundary. A convincing split on paper is not enough if a grid surface or smoothing calculation was constructed before the split using labels from the evaluation site.
Prevent leakage outside the final fitting step
The evaluation boundary applies to every operation that learns from the data. A transformation estimated from all outcomes or all feature distributions can influence the model even when evaluation rows are withheld from the last fit. Examples include building smoothed labels, selecting variables because they performed well on a test set, or filling gaps using a global table assembled with the held outcomes. Some information from test feature values may legitimately be available in certain applications, but that should be explicit rather than accidental. Name what the method learns and from which records.
Fit preprocessing using the intended training information for each evaluation split. If the model selects a feature set, learns a scaling rule or uses representative training trends to fill values, check how those decisions are applied to the held data. Do not invent a value from the missing test outcome as part of preparing its input. Derived map predictors known independently before prediction can be treated differently from surfaces calculated from the target counts. A useful audit asks not just whether the final outcome column was excluded, but whether any upstream operation incorporated equivalent information.
Tuning needs its own boundary. If a whole-site result is repeatedly inspected while selecting model settings, it becomes part of model development. A later report should not call that same score an untouched external evaluation. In a sufficiently sized study, tune within the training data using appropriate groups and reserve a separate check for the selected process. In a small study this may be impractical; acknowledge what was exploratory and what remains untested. Clean terminology beats a polished apparent test that is supported by the same data used to choose the model.
Check that a starting model and a more complex one face the same information constraints. A site average from observed test outcomes is not an eligible baseline for predicting at a site with no local observations. A baseline based on training data or on characteristics already known at prediction time may be appropriate. A comparison should not benefit one candidate by revealing more local context than another. Document what each was allowed to use. The comparison is only interpretable if the tasks are equivalent even when the algorithms differ.
Choose a spatial separation that matches the intended use
A holdout based on complete sites is easy to explain, but site labels are not a distance guarantee. Two gardens separated by a fence could share neighborhood conditions; two beds inside the same larger project might be far apart. For a prediction intended at an unfamiliar region, defining bigger geographic blocks may better capture the challenge. A suitable holdout can also use an exclusion buffer around test locations if the intended prediction will have no nearby outcomes. Define the buffer from the use case and any relevant evidence, not because a larger distance sounds more scientific.
A buffer prevents closely neighboring records within a named distance from entering training for that particular test. It can also reduce the amount of training data and remove familiar combinations of conditions. A larger error under that evaluation may therefore reflect several changes, not a clean measurement of spatial dependence alone. Record which rows were removed and how predictor ranges changed. Be wary of selecting a distance after inspecting all the scores and then stating that the chosen result was a prospective test. A sensitivity display across justified distances can be informative if clearly labeled exploratory.
There is no universally correct scale of blocks. If the model will be applied to a new bed inside a well-monitored garden, a cross-region holdout may exaggerate the unfamiliarity relative to the intended job. If the model will serve outside the sampled area, withholding random rows from familiar sites likely addresses too easy a problem. Select blocks that represent the relationship between future cases and training cases as realistically as possible. The objective is a relevant comparison, not the most discouraging or comforting score.
Consider site eligibility and field coverage early. A sample may include five gardens because those managers volunteered and made quality records available. Holding each out in turn assesses transfer among those gardens under the resulting construction. It does not convert them into a random sample of every garden in the city. A different sample design is needed for some wider claims. The Census guidance on defining frames and documenting selection is helpful here because the frame sets a scope for questions even when the numerical method is sophisticated.
Report what changed between the two evaluations
The imagined errors of 1.2 and 3.8 show how different tasks can lead to different scores. In a real side-by-side comparison document the training size, held units, available inputs and conditions for each split. A held garden may have a different mix of count levels, so a higher raw error could partly represent a different challenge rather than changes to the algorithm alone. If the analysis includes comparable folds and the summary uses appropriate weights, say how they were applied. A single difference in two bars compresses too many changes to identify one cause on its own.
Distinguish averaging across rows from averaging across sites. If one held garden supplies many eligible observations, it can dominate a row-weighted error summary. Giving each held site equal weight answers a different question about typical sites irrespective of their record counts. Neither is universally correct. Choose a target and show the calculation. A table of per-site scores and counts lets readers see whether a small overall error conceals poor performance in some gardens or whether one difficult site drives the combined score. Keep the word average attached to its actual unit.
It can be useful to report the direction and location of prediction errors as well. Mean absolute error reports magnitude without showing whether a model often underpredicts at high counts or misses under certain conditions. A plot of observed minus predicted by garden or bed can make such issues visible. Plotting errors at the values used for fitting tells a different story from plotting them for entirely held observations. As NIST's discussion of diagnostics makes clear, a scalar summary is not a complete diagnosis. Show the relevant error structure without overstating its cause.
If the sample is small, uncertainty can be substantial at the site level. Treat a repetition of several rows in one held garden as additional information about that garden, not several independent held gardens. A fold result can depend on which site was withheld and which other sites remained in training. Repeated evaluation that reuses sites may answer useful questions about the data but cannot automatically be summarized as independent trials. Explain how the variation was assessed. Where robust formal uncertainty is not supported, descriptive site-level results with candid limits may be preferable.
Check whether the held case is also outside the environmental range
A new garden can be geographically far yet similar in soil, light and management to the training gardens. Another garden just across the road can differ sharply on the variables that matter. Geographic separation and unfamiliar predictor conditions are not identical. Map or tabulate both where possible. If the held garden's conditions were never represented in training, the test may combine a spatial transfer challenge with extrapolation. That can be realistic for some deployments and unnecessarily strict for others. Describe both sources of challenge without attributing the whole score to distance.
Do not define predictor overlap by looking only at separate minimum and maximum values. A new garden might have a familiar number of hours of sun and familiar watering frequency, but those values may not have occurred together in the training set. A list of represented combinations can be informative for simple studies. For more complex ones, use relevant diagnostic methods under the intended analysis. A claim of interpolation based on superficially familiar individual ranges can conceal genuinely novel conditions. Link this check to the target use rather than treating all geographic maps as proof of matching data.
Consider coverage near boundaries. If training uses a wide range of beds but the test holds one with an unusual substrate, a poor result may identify a missing part of the study's design. The response could be to improve future training coverage or restrict the model's allowed use. Retain the difficult outcome even if it is out of scope for a narrower future model. Labeling an honest limitation is better than excluding the site and retaining a broad deployment promise. A revised target has its own evaluation needs.
A particularly useful summary reports which future sites are plausible candidates for the model now and which would need additional evidence. It might distinguish known neighborhoods and management conditions from unrepresented settings. This is not a prediction of where the algorithm will fail for certain. It is an account of which uses the evaluation has or has not exercised. Geographic distance, environmental novelty and the outcome's time scale can all be visible in that description. The goal is accountable model use rather than a map of assumed confidence.
Work through a fictional four-garden plan
Imagine the study has four gardens, with several beds and multiple dated samples in each. The main purpose is predicting an unrecorded count inside an actively monitored bed. Design one evaluation that withholds appropriate portions of the bed's record while retaining the information a real operator would still have. If the missing period is commonly a week rather than an isolated row, withholding an entire compatible period might be more realistic than randomly hiding observations one at a time. Preserve both the temporal and spatial context the task requires. The result supports a local completion use if the evidence is otherwise suitable.
Now suppose a manager wants to use the same model in a new garden without collecting any local outcomes. Produce a different evaluation that holds out all of one garden at a time, fits or tunes according to a stated process using the remaining sites, and applies the resulting predictor to the held setting. Repeat for the other gardens where appropriate. Four held sites would still supply limited evidence about all gardens, especially if the original sample was convenient. The scores can reveal variation among settings without justifying a universal new-site guarantee.
A site average used as a fallback changes meaning between the two tasks. If a bed still has nearby known counts, a carefully defined local baseline may be a fair comparison in the first test. In the second, the garden's outcome average cannot be computed from the held measurements without changing the task. A baseline using compatible training averages or independently known features would be different. Report it alongside the model's predictions, with the same eligibility and metric, rather than comparing a difficult new-site result with a baseline that had privileged information.
A third request arrives: forecast across gardens next spring, before anyone knows whether the season will resemble the current one. Neither first evaluation alone settles that. A combined holdout with whole-site and future-time requirements might be closer to the intended job, but the existing dataset may not support it. The plan can identify evidence needed next, for example an additional season or observations at a new site reserved until the model is fixed. Do not release a confident score by stitching together two earlier tests whose combination was never observed.
Draw a split diagram before scoring the model
A simple diagram can show rows nested in beds and beds nested in gardens. Shade the training and evaluation groups for each design and show when the same location appears on both sides. A clear map or diagram is often more useful than the phrase spatial holdout in a methods caption. Use broad labels or appropriately generalized locations if original sites should not be made public. Preserve the analytical grouping internally. A public grid can obscure exact positions without making the grouping logic impossible to audit.
Use a checklist on each fold. Which records are held? Does any derivative of a held response appear in training? Which transformations and model decisions were fitted without the held outcomes? Are all inputs supplied at prediction time legitimately available in the planned use? Where would a plausible real case fall relative to the training and testing sites? Document the results in enough detail for another analyst to reproduce the procedure. A single note that the model was split eighty and twenty does not answer a spatial question unless it says what was split.
Then try a deliberate error in a practice run. Put one same-plot duplicate across the split and verify that the review catches it. Build a tiny derivative that uses a held outcome and make sure the audit finds that path. Use synthetic examples rather than contaminating the actual checks. A validation pipeline should fail conspicuously when a key rule is violated. Reviewing only well-formed cases can make an empty assertion appear reliable because nobody tested what it was supposed to detect.
If a later input file changes the spatial mapping, keep the old grouping and its version. Corrected coordinates or merged site identities can change whether the original holdout truly kept units separate. A revised split can be warranted, but don't substitute it without noting what the previous result represented. Maintain a short record of grouping changes and their impact. This makes the evaluation capable of improvement without erasing its history or presenting a changed score as if it appeared under identical conditions.
Make scope visible when someone wants to reuse the model
A deployment note might state that the model was evaluated on withheld rows from known beds, not on gardens without prior outcomes. That can be an appropriate finding for a local archive that needs to estimate missing records. If another team wants to plan work in a new garden using it, the distinction tells them where another test is needed. A model is not universally validated because it answered some narrower well-defined question. Preserve the positive finding while refusing to extend its scope through a generic stamp of approval.
Conversely, a whole-site evaluation can be useful even if some held sites performed poorly. The results may help identify which settings should remain outside use, whether to collect a small calibration sample, or whether a simpler approach is more reliable. If an operating workflow will in fact gather local observations before predicting, redesign the evaluation to reflect the legitimate availability of those data. Do not continue to call it a no-local-data test. A model's procedures can change when the task changes; the relevant measure should change honestly with them.
Retain the distinction in export and visual presentation. The bars in this article are an invented teaching example and the image is an editorial illustration, not a map of sampled garden sites. A real figure should disclose the held units, score definition and any reason one evaluation is not comparable as a causal contrast with another. Include a table for readers who cannot use color. If the figure travels separately from the study, its subtitle should preserve the difference between local interpolation and transfer. That is the result most likely to disappear when two number labels are all someone sees.
Review practical alternatives when data are scarce
Some datasets simply do not have enough distinct gardens to separate the intended evaluation from development. In that case consider reporting a narrower result with a clear future validation plan. For example, a project with two effectively similar sites can still examine whether split definitions and derivative inputs leak restricted information. It can compare ordinary gaps in known beds and state that transfer remains provisional. That is not a failure. It avoids spending rare independent evidence on a ritual split whose apparent precision cannot be supported.
A small external pilot can be valuable if it is chosen for a clear purpose. One site near the intended operational conditions may reveal a procedural mismatch, such as the fact that a required input is not available at prediction time. Another site could challenge a specific environmental range. Keep those cases separate from claims about regional performance. A carefully selected pilot tests the question it was selected for; it isn't a probability sample of every future site. Document selection, eligible condition, information availability and what changed afterward.
In many projects the next useful effort is not a more elaborate model. It might be a stable definition of the target count, an additional independently held garden, or a check of whether predictors can be collected in the same way at different places. These improvements strengthen the evaluation rather than hiding a weak interpretation. A model card that names missing evidence can help prioritize them. Tight resources make explicit scope more important, not less. A garden team should be able to act on the tested parts of a result without inheriting an unsupported broad claim.
Read one difficult holdout without erasing the other results
In a fictional extension to the worked example, suppose one held garden consistently produces large underpredictions, while the other held gardens show smaller errors in either direction. Begin by checking whether the outcome was tallied comparably and whether this site's inputs and time window align with the training evidence. A definition such as “open heads per marked patch” may have been interpreted differently or applied to larger plots. If the data check explains part of the difference, label whether it was a quality issue, changed method or legitimately new case. Each diagnosis suggests a different response and should not be collapsed into a claim about spatial separation alone.
If there is no clear recording error, examine what makes the site different and whether that difference is relevant to deployment. A consistently shaded garden could have a combination of conditions unfamiliar to the training set, but shade may only be a clue. The garden may also differ in plant age, soil or ordinary management. Do not drop it simply because it makes the combined score worse. Report its result separately and explain which future settings resemble it if the evidence supports that description. A model can be useful for some eligible settings and limited for others.
Consider two different revisions. One may restrict declared use to environments with verified coverage and withhold predictions for cases like the difficult site. Another may expand training and arrange a genuinely independent test of that sort of site. The first can be a modest operating decision, not a claim that the model now predicts there. The second is a new evidence plan, not a promise of success. Preserve the difficult result when either decision is made. Otherwise the next reviewer may assume the original broad use was tested and passed simply because a later chart only includes eligible cases.
It is equally important not to reverse the reasoning when the difficult site does well. A convincing score at one new garden does not settle every region or season. Document the similarities that might explain why transfer was reasonably easy, even for a model with no local outcome rows. A site with familiar conditions can provide useful evidence about a realistic target without being the hardest case imaginable. Describe the test's positive result with its limits. The goal is not to make every test fail so that validation feels strict; it is to learn how the model behaves for the intended kind of new case.
Show the evidence used to compare candidate splits
A useful decision note can list the target use, grouping rule, known information available at prediction time, deliberate exclusions, and evaluation result. Add a simple check saying whether the held sites had comparable predictor values, whether the scores were row- or site-weighted, and whether units were reused in model selection. Such a note does not need precise geographical coordinates in its public version. It needs enough information for a reader to understand why two selected tests differ, and which one is relevant to the pending decision. Preserve a separate technical audit for links and reproduction under appropriate access.
Review how the prediction product itself conveys holdout scope. A display with one generic green validation badge can encourage people to apply a local model beyond the tested area. A short scope label can say that estimates were checked in gaps inside previously observed beds. Another label can state that a limited same-season transfer test was also performed, with the number of genuinely held gardens and any important conditions. The labels protect meaningful positive results without demanding that readers infer scope from a long report. Small wording changes can prevent substantial misuse.
Finally, when planning another season, save the questions that could not be tested. Record whether the important gap concerns time, truly unfamiliar sites, unavailable inputs or feature conditions that were not represented. A schedule can then prioritize a few measurements that address that gap instead of increasing the total number of rows in already well-observed beds. When the next evaluation arrives, preserve what it added rather than replacing the old result with a single revised score. The history of validation is useful precisely because it shows which unanswered questions gradually gained evidence.
Finish with the deployment question
The toy within-bed and whole-site errors differ because they represent distinct evaluations. Nothing in the numerical example establishes a general rule about which will always be larger. The useful question is where the prediction will be made and what related information the model may legitimately use. Then build the holdout around those facts, check upstream processing and preserve geographic and environmental context. A clear distinction between familiar and unfamiliar conditions is better than a precise score attached to an ambiguous claim.
A nearby test plot can supply valuable evidence when nearby inference is the goal. A whole-site test can illustrate a different kind of transfer without verifying all other times and places. A wider deployment promise requires evidence that matches its own scope. When these outcomes stay separate, a validation report can explain what a model can help with today, what another plot or site would clarify, and why several useful scores do not all mean the same thing.
If there is a scheduled refresh, define its comparison separately. Training on new local outcomes can legitimately improve a model intended for an established site while making the new score irrelevant to the earlier no-local-data claim. Retain the old result under its own conditions and calculate the new one from the correct split. A report that makes both changes visible lets readers distinguish deployment experience from the evidence originally used to approve a trial. The additional data change the task, not just the number of training rows.
Sources
- U.S. Census Bureau: Statistical Quality Standard A3, Developing and Implementing a Sample Design, also in the official compilation. Sampling frame, purpose and documentation context, not the source of the illustrative values.
- NIST/SEMATECH Engineering Statistics Handbook: How can I tell if a model fits my data?. Model assessment beyond a single score.
- Roberts and colleagues: Cross-validation strategies for data with temporal, spatial, hierarchical, or phylogenetic structure. Original methodological work and examples on validation under structured dependence, not a source for the invented garden comparisons.