Repository navigation
Add cross-validation task SDK client - #413
Open
amirabbas-jalali-bentley wants to merge 2 commits into
Open
amirabbas-jalali-bentley wants to merge 2 commits into
amirabbas-jalali-bentley wants to merge 2 commits into
Conversation
amirabbas-jalali-bentley
requested review from
aminabedi-bentley,
diegoraf-bsy,
higordearaujo-bsy and
jasonatbentley
November 17, 2026 00:49
amirabbas-jalali-bentley
force-pushed
the
add-cross-validation-task
branch
2 times, most recently
from
November 17, 2026 02:04
8600d55 to
a000767
Compare
amirabbas-jalali-bentley
force-pushed
the
add-cross-validation-task
branch
from
November 18, 2026 16:02
1691065 to
f05579d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a typed SDK client in
evo-computefor thegeostatistics/cross-validationcompute task.Parameters
CrossValidationParametersmodels the task's two discriminated unions directly without flattening estimator-specific or strategy-specific fields:validation(ValidationStrategy):LeaveOneSampleOut(type="sample") andLeaveOneDrillholeOut(type="drillhole").estimator(CrossValidationEstimator):KrigingEstimator(type="kriging", withvariogram,neighborhood,kriging_method, and optionalKrigingDiagnostics),KNNEstimator(type="knn"), andIDWEstimator(type="idw", with positivepower).CrossValidationOutputsconfigures the per-sampleestimateand optional signederror(estimate - true) attributes written back onto the source object, accepting attribute names, typed attributes, or explicitCreateAttribute/UpdateAttributespecs.estimate,error, and krigingdiagnosticsbefore job submission, and serializes neighborhood drillhole limits to the OpenAPI property names.Results & Examples
CrossValidationResultModelandCrossValidationResultexpose the updated source metadata, writtenestimate/error/diagnosticsattributes, 15-fieldCrossValidationStatistics(preservingNonefor undefined statistics andNaNin DataFrame exports for unestimated samples), and optionalKrigingCrossValidationStatistics.CrossValidationRunnerregistersgeostatistics/cross-validationwithTaskRegistryfor single and batch execution viaevo.compute.tasks.run, andCrossValidationResultis re-exported fromevo.compute.tasksandevo.compute.tasks.geostatistics.packages/evo-compute/docs/examples/cross_validation.ipynbwith sample (PointSet) and drillhole (DownholeIntervals) cross-validation workflows.git add --intent-to-add mkdocsto.github/workflows/mkdocs-build.yamlso newly generated MkDocs pages are included in the workflow commit.Validation
uv run python scripts/run_package_tests.py— passed across all packages (evo-compute: 566 passed, 99% statement/branch coverage oncross_validation.py).(validation × estimator)combinations and result payloads against the task JSON Schema (Draft 2020-12).uv run --only-dev ruff checkanduv run --only-dev ruff format --check— passed.uv run --only-dev pre-commit run --files ...— passed.uv run --group dev mkdocs build --config-file mkdocs/mkdocs.yml --site-dir site— passed.uv build --package evo-computeanduv lock --check— passed.Checklist