TrainingStudy
Runs a set of training trials from a template, parameter grid, and seeds, and compares them against an objective.
ml.prokrust.ai/v1beta1 · Namespaced · trainingstudies
Controller status
Conditions
Controller checks for this resource. Read the type, status, reason, and observed generation to diagnose the current state.
| Condition | What it tells you |
|---|---|
DependenciesReady | Reports whether the selected graph snapshot and workspace access checks allow input binding. |
InputsBound | Reports whether the controller recorded the exact source identities in status.sourceBindings. |
Ready | Reports progress selecting inputs, running trials, and publishing the winning model. Read it with status.phase. |
Trials are running
The study is running trials for the planned candidates and seeds.
status:
phase: Running
conditions:
- type: Ready
status: "False"
reason: NotReady
message: TrainingStudy trials are running.
observedGeneration: 1
Compare status.plannedTrials with status.trials. Follow each child TrainingRun to inspect its progress.
TrainingStudy condition results and reasons
DependenciesReady
| Status and reason | What to check |
|---|---|
False / AuthorizationResponseMalformed | Inspect the Kubernetes access review response and the authorization configuration. |
False / AuthorizationUnavailable | The access check could not complete. Check connectivity and permissions for SubjectAccessReview. |
False / BoundOutputMissing | The output identified by the binding no longer exists. Inspect its name and UID in status.sourceBindings. |
False / BoundProducerMissing | The bound producer disappeared before it published its output. Inspect the producer UID in status.sourceBindings. |
False / DependencyNotFound | Create the named source in the workspace or correct the source reference. |
False / ExpectedOutputMismatch | Compare the expected output UID and artifact digest with the published output. For a graph snapshot, also check the expected data identity. |
False / ExpectedProducerUidMismatch | The producer UID differs from the expected UID. Confirm which object the request should use. |
False / Forbidden | Grant the submitting identity access to the resource named in the message. |
False / InputChanged | The producer identity changed after binding. Compare the producer UID and generation with status.sourceBindings. |
False / OutputIdentityChanged | The output no longer matches its bound identity. Compare its UID and artifact digest with the binding. For a graph snapshot, also compare the data identity. |
False / OutputMalformed | The published output reference or digest is incomplete. Inspect the producer and its published output. |
False / OutputMissing | The producer has no reference to the requested output. Inspect its status.outputs. |
False / OutputNotReady | The bound output is unavailable at the current generation. Inspect its conditions and phase. |
False / ProducerNotReady | The source has not reached its successful phase at the current generation. Inspect its conditions. |
False / PublicationMissing | The GraphSnapshot has no publication record. Inspect its build and publication status. |
False / SourceBindingMismatch | Compare the requested source name, kind, and expected UID with the retained producer in status.sourceBindings. |
False / UpstreamFailed | The source reached an unsuccessful phase. Read its status and failure details. |
True / InputsBound | The controller recorded the source identities. Inspect status.sourceBindings before following execution. |
InputsBound
| Status and reason | What to check |
|---|---|
False / AuthorizationResponseMalformed | Inspect the Kubernetes access review response and the authorization configuration. |
False / AuthorizationUnavailable | The access check could not complete. Check connectivity and permissions for SubjectAccessReview. |
False / BoundOutputMissing | The output identified by the binding no longer exists. Inspect its name and UID in status.sourceBindings. |
False / BoundProducerMissing | The bound producer disappeared before it published its output. Inspect the producer UID in status.sourceBindings. |
False / DependencyNotFound | Create the named source in the workspace or correct the source reference. |
False / ExpectedOutputMismatch | Compare the expected output UID and artifact digest with the published output. For a graph snapshot, also check the expected data identity. |
False / ExpectedProducerUidMismatch | The producer UID differs from the expected UID. Confirm which object the request should use. |
False / Forbidden | Grant the submitting identity access to the resource named in the message. |
False / InputChanged | The producer identity changed after binding. Compare the producer UID and generation with status.sourceBindings. |
False / OutputIdentityChanged | The output no longer matches its bound identity. Compare its UID and artifact digest with the binding. For a graph snapshot, also compare the data identity. |
False / OutputMalformed | The published output reference or digest is incomplete. Inspect the producer and its published output. |
False / OutputMissing | The producer has no reference to the requested output. Inspect its status.outputs. |
False / OutputNotReady | The bound output is unavailable at the current generation. Inspect its conditions and phase. |
False / ProducerNotReady | The source has not reached its successful phase at the current generation. Inspect its conditions. |
False / PublicationMissing | The GraphSnapshot has no publication record. Inspect its build and publication status. |
False / SourceBindingMismatch | Compare the requested source name, kind, and expected UID with the retained producer in status.sourceBindings. |
False / UpstreamFailed | The source reached an unsuccessful phase. Read its status and failure details. |
True / InputsBound | The controller recorded the source identities. Inspect status.sourceBindings before following execution. |
Ready
| Status and reason | What to check |
|---|---|
False / AuthorizationResponseMalformed | Inspect the Kubernetes access review response and the authorization configuration. |
False / AuthorizationUnavailable | The access check could not complete. Check connectivity and permissions for SubjectAccessReview. |
False / BoundOutputMissing | The output identified by the binding no longer exists. Inspect its name and UID in status.sourceBindings. |
False / BoundProducerMissing | The bound producer disappeared before it published its output. Inspect the producer UID in status.sourceBindings. |
False / Cancelled | The study stopped after cancellation. Follow status.trials to inspect children that had already started. |
False / DependencyNotFound | Create the named source in the workspace or correct the source reference. |
False / ExpectedOutputMismatch | Compare the expected output UID and artifact digest with the published output. For a graph snapshot, also check the expected data identity. |
False / ExpectedProducerUidMismatch | The producer UID differs from the expected UID. Confirm which object the request should use. |
False / Failed | Read status.failure and the child TrainingRun states. StudyNoCompleteCandidate means no candidate succeeded across every seed. |
False / Forbidden | Grant the submitting identity access to the resource named in the message. |
False / InputChanged | The producer identity changed after binding. Compare the producer UID and generation with status.sourceBindings. |
False / InputsBound | The controller recorded the source identities. Inspect status.sourceBindings before following execution. |
False / NotReady | In Pending, check the named dependency. In Running, compare status.plannedTrials with status.trials by candidate and seed. Inspect status.pendingTrial for a child creation request. |
False / OutputIdentityChanged | The output no longer matches its bound identity. Compare its UID and artifact digest with the binding. For a graph snapshot, also compare the data identity. |
False / OutputMalformed | The published output reference or digest is incomplete. Inspect the producer and its published output. |
False / OutputMissing | The producer has no reference to the requested output. Inspect its status.outputs. |
False / OutputNotReady | The bound output is unavailable at the current generation. Inspect its conditions and phase. |
False / ProducerNotReady | The source has not reached its successful phase at the current generation. Inspect its conditions. |
False / PublicationMissing | The GraphSnapshot has no publication record. Inspect its build and publication status. |
False / SourceBindingMismatch | Compare the requested source name, kind, and expected UID with the retained producer in status.sourceBindings. |
False / UpstreamFailed | The source reached an unsuccessful phase. Read its status and failure details. |
True / Ready | Inspect status.winner for the selected candidate and mean validation score. Use status.outputs.model for its Model. |
Condition field meanings
| Field | What to look for |
|---|---|
type | Names the check. Use it to select the condition you want to inspect. |
status | Reports whether the named condition holds. Read the reason to see why. |
reason | A short identifier for this outcome. Use it when comparing observations or filtering results. |
message | When present, gives details about this object, such as the name of a dependency. |
observedGeneration | Compare with metadata.generation to see which version of the spec the controller checked. |
lastTransitionTime | Records the time of the last transition for this condition. |
How to read status fields
| Field | What it tells you |
|---|---|
status.failure | Recorded failure details. Inspect the reason and message to locate the failed operation. |
status.observedGeneration | Resource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec. |
status.outputs | Published output references. Use these to select a result by identity after the workload succeeds. |
status.pendingTrial | Trial the controller is preparing to create. Inspect it while a study waits for the next child run. |
status.phase | Current stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped. |
status.pinnedInputs | Input identities selected for the study. Use them to determine which inputs its trials share. |
status.plannedTrials | Number of trials in the study plan. Compare with reported trials to follow study progress. |
status.resolvedInputRef | Reference to the resolved study inputs. Use it to identify the execution inputs shared by the study’s trials. |
status.sourceBindings | Resource identities and publications selected from the configured sources. Inspect them to trace the exact inputs. |
status.trials | Per-trial progress and outcomes recorded by the study. Compare these when investigating missing or failed trials. |
status.winner | Selected trial for the study objective. Inspect its model output before using it for inference. |
Kubernetes schema for status
Required applies when the parent is present. A dash in the default column means the CRD declares no default.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
status | object | no | — | maxProperties 1024 · nullable true |
status.conditions | array | no | — | Controller checks for this resource. Read the type, status, reason, and observed generation to diagnose the current state. · maxItems 8 |
status.conditions[] | object | — | — | maxProperties 1024 |
status.conditions[].lastTransitionTime | string | yes | — | maxLength 2048 |
status.conditions[].message | string | yes | — | maxLength 1024 |
status.conditions[].observedGeneration | integer | yes | — | format "int64" |
status.conditions[].reason | string | yes | — | maxLength 128 |
status.conditions[].status | string | yes | — | enum ["True","False","Unknown"] · maxLength 2048 |
status.conditions[].type | string | yes | — | maxLength 2048 |
status.failure | object | no | — | Recorded failure details. Inspect the reason and message to locate the failed operation. · maxProperties 1024 · nullable true |
status.failure.at | string | yes | — | maxLength 2048 |
status.failure.code | string | yes | — | maxLength 128 |
status.failure.details | object | no | — | maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.failure.details.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.failure.details.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.failure.details.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.failure.details.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.failure.message | string | yes | — | maxLength 1024 |
status.failure.relatedResource | object | no | — | Exact related resource identity in the same namespace as the status owner. · maxProperties 1024 · nullable true |
status.failure.relatedResource.apiVersion | string | yes | — | maxLength 2048 |
status.failure.relatedResource.executionDigest | string | no | — | maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
status.failure.relatedResource.kind | string | yes | — | maxLength 2048 |
status.failure.relatedResource.name | string | yes | — | maxLength 253 |
status.failure.relatedResource.recoveryOrdinal | integer | no | — | format "int32" · nullable true |
status.failure.relatedResource.uid | string | yes | — | maxLength 128 |
status.failure.retryable | boolean | yes | — | |
status.failure.stage | string | no | — | Safe execution stage identifier, when the failing stage is known. · maxLength 2048 · nullable true |
status.failure.suggestedAction | string | no | — | Actionable guidance without credentials or raw provider response bodies. · maxLength 2048 · nullable true |
status.observedGeneration | integer | no | — | Resource generation evaluated by the controller. Compare it with metadata.generation to check whether the status covers the current spec. · format "int64" · nullable true |
status.outputs | object | no | {} | Published output references. Use these to select a result by identity after the workload succeeds. · maxProperties 1024 |
status.outputs.model | object | no | — | maxProperties 1024 · nullable true |
status.outputs.model.artifactDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.outputs.model.name | string | yes | — | maxLength 253 |
status.outputs.model.uid | string | yes | — | maxLength 128 |
status.pendingTrial | object | no | — | Trial the controller is preparing to create. Inspect it while a study waits for the next child run. · maxProperties 1024 · nullable true |
status.pendingTrial.candidateIndex | integer | yes | — | format "uint32" · minimum 0 |
status.pendingTrial.name | string | yes | — | maxLength 253 |
status.pendingTrial.reservationId | string | yes | — | maxLength 2048 · pattern "^sha256:[0-9a-f]{64}$" |
status.pendingTrial.seed | string | yes | — | maxLength 2048 |
status.pendingTrial.specDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.phase | string | no | — | Current stage reported by the controller. Use the conditions or failure details to diagnose why progress stopped. · enum ["Pending","Running","Succeeded","Failed","Cancelled",null] · maxLength 2048 · nullable true |
status.pinnedInputs | object | no | — | Input identities selected for the study. Use them to determine which inputs its trials share. · maxProperties 1024 · nullable true |
status.pinnedInputs.environmentDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.pinnedInputs.graphSnapshot | object | yes | — | maxProperties 1024 |
status.pinnedInputs.graphSnapshot.generation | integer | yes | — | Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64" |
status.pinnedInputs.graphSnapshot.name | string | yes | — | Use the name of the selected resource in the workspace. · maxLength 253 |
status.pinnedInputs.graphSnapshot.semanticDigest | string | yes | — | Use the published semantic digest to require the reviewed resource definition. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.pinnedInputs.graphSnapshot.uid | string | yes | — | Copy the selected resource’s Kubernetes UID to detect replacement under the same name. · maxLength 128 |
status.pinnedInputs.policy | object | yes | — | maxProperties 1024 |
status.pinnedInputs.policy.generation | integer | yes | — | Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64" |
status.pinnedInputs.policy.name | string | yes | — | Use the name of the selected resource in the workspace. · maxLength 253 |
status.pinnedInputs.policy.semanticDigest | string | yes | — | Use the published semantic digest to require the reviewed resource definition. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.pinnedInputs.policy.uid | string | yes | — | Copy the selected resource’s Kubernetes UID to detect replacement under the same name. · maxLength 128 |
status.pinnedInputs.query | object | yes | — | maxProperties 1024 |
status.pinnedInputs.query.generation | integer | yes | — | Copy the selected resource’s Kubernetes generation to pin the revision that this operation uses. · format "int64" |
status.pinnedInputs.query.name | string | yes | — | Use the name of the selected resource in the workspace. · maxLength 253 |
status.pinnedInputs.query.semanticDigest | string | yes | — | Use the published semantic digest to require the reviewed resource definition. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.pinnedInputs.query.uid | string | yes | — | Copy the selected resource’s Kubernetes UID to detect replacement under the same name. · maxLength 128 |
status.plannedTrials | array | no | — | Number of trials in the study plan. Compare with reported trials to follow study progress. · maxItems 32 |
status.plannedTrials[] | object | — | — | maxProperties 1024 |
status.plannedTrials[].candidateIndex | integer | yes | — | format "uint32" · minimum 0 |
status.plannedTrials[].seed | string | yes | — | maxLength 2048 |
status.resolvedInputRef | object | no | — | Reference to the resolved study inputs. Use it to identify the execution inputs shared by the study’s trials. · maxProperties 1024 · nullable true · self.sizeBytes >= 0 && self.sizeBytes <= 9007199254740991 |
status.resolvedInputRef.digest | string | yes | — | SHA-256 digest of the artifact contents. Compare it with the downloaded bytes to verify the artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" · self.matches('^sha256:[0-9a-f]{64}$') |
status.resolvedInputRef.mediaType | string | yes | — | Use the recorded media type to identify the artifact representation. · maxLength 2048 |
status.resolvedInputRef.sizeBytes | integer | yes | — | Use the published byte count when verifying a transferred artifact. · format "int64" |
status.resolvedInputRef.uri | string | yes | — | Use this location to identify the published artifact during retrieval or diagnostics. · maxLength 2048 |
status.sourceBindings | object | no | {} | Resource identities and publications selected from the configured sources. Inspect them to trace the exact inputs. · maxProperties 1024 |
status.sourceBindings.graphSnapshot | object | no | — | maxProperties 1024 · nullable true |
status.sourceBindings.graphSnapshot.output | object | no | — | Exact captured input; names alone never authorize graph input reuse. · maxProperties 1024 · nullable true |
status.sourceBindings.graphSnapshot.output.artifactDigest | string | yes | — | Use the artifact digest from the snapshot publication. This checks that the build consumes the intended published artifact. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.sourceBindings.graphSnapshot.output.dataIdentity | string | yes | — | Use the data identity from the same publication. This pins the selected source data. · maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.sourceBindings.graphSnapshot.output.name | string | yes | — | Workspace name of the snapshot. Check the UID as well when selecting a specific publication. · maxLength 253 |
status.sourceBindings.graphSnapshot.output.uid | string | yes | — | Kubernetes UID of the published snapshot. Use it to detect a replacement with the same name. · maxLength 128 |
status.sourceBindings.graphSnapshot.producer | object | yes | — | Persist before waiting on output. Never adopt another UID after this point. · maxProperties 1024 |
status.sourceBindings.graphSnapshot.producer.intentDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.sourceBindings.graphSnapshot.producer.kind | string | yes | — | maxLength 32 · minLength 1 · pattern "^(SnapshotPreparation|GraphSnapshot|TrainingStudy|TrainingRun|Model)$" |
status.sourceBindings.graphSnapshot.producer.name | string | yes | — | maxLength 253 · minLength 1 |
status.sourceBindings.graphSnapshot.producer.uid | string | yes | — | maxLength 128 · minLength 1 |
status.sourceBindings.model | object | no | — | maxProperties 1024 · nullable true |
status.sourceBindings.model.output | object | no | — | maxProperties 1024 · nullable true |
status.sourceBindings.model.output.artifactDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.sourceBindings.model.output.name | string | yes | — | maxLength 253 |
status.sourceBindings.model.output.uid | string | yes | — | maxLength 128 |
status.sourceBindings.model.producer | object | yes | — | Persist before waiting on output. Never adopt another UID after this point. · maxProperties 1024 |
status.sourceBindings.model.producer.intentDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.sourceBindings.model.producer.kind | string | yes | — | maxLength 32 · minLength 1 · pattern "^(SnapshotPreparation|GraphSnapshot|TrainingStudy|TrainingRun|Model)$" |
status.sourceBindings.model.producer.name | string | yes | — | maxLength 253 · minLength 1 |
status.sourceBindings.model.producer.uid | string | yes | — | maxLength 128 · minLength 1 |
status.sourceBindings.model.trainingRun | object | no | — | maxProperties 1024 · nullable true |
status.sourceBindings.model.trainingRun.name | string | yes | — | Workspace name of the TrainingRun. Use the UID as well when identifying a specific trial or model producer. · maxLength 253 |
status.sourceBindings.model.trainingRun.uid | string | yes | — | Kubernetes UID of that TrainingRun. Use it to detect a replacement with the same name. · maxLength 128 |
status.trials | array | no | — | Per-trial progress and outcomes recorded by the study. Compare these when investigating missing or failed trials. · maxItems 16 |
status.trials[] | object | — | — | maxProperties 1024 |
status.trials[].candidateIndex | integer | yes | — | format "uint32" · minimum 0 |
status.trials[].failureCode | string | no | — | maxLength 2048 · nullable true |
status.trials[].modelRef | object | no | — | maxProperties 1024 · nullable true |
status.trials[].modelRef.artifactDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.trials[].modelRef.name | string | yes | — | maxLength 253 |
status.trials[].modelRef.uid | string | yes | — | maxLength 128 |
status.trials[].phase | string | yes | — | enum ["Pending","Validating","Freezing","WaitingForProducerCapacity","Queued","Running","Verifying","Committing","Succeeded","Cancelling","Cancelled","Failed","Deleting"] · maxLength 2048 |
status.trials[].seed | string | yes | — | maxLength 2048 |
status.trials[].trainingRun | object | yes | — | maxProperties 1024 |
status.trials[].trainingRun.name | string | yes | — | Workspace name of the TrainingRun. Use the UID as well when identifying a specific trial or model producer. · maxLength 253 |
status.trials[].trainingRun.uid | string | yes | — | Kubernetes UID of that TrainingRun. Use it to detect a replacement with the same name. · maxLength 128 |
status.trials[].validationScore | number | no | — | format "double" · nullable true |
status.winner | object | no | — | Selected trial for the study objective. Inspect its model output before using it for inference. · maxProperties 1024 · nullable true |
status.winner.candidateIndex | integer | yes | — | format "uint32" · minimum 0 |
status.winner.meanValidationScore | number | yes | — | format "double" |
status.winner.modelRef | object | yes | — | maxProperties 1024 |
status.winner.modelRef.artifactDigest | string | yes | — | maxLength 71 · pattern "^sha256:[0-9a-f]{64}$" |
status.winner.modelRef.name | string | yes | — | maxLength 253 |
status.winner.modelRef.uid | string | yes | — | maxLength 128 |
status.winner.trainingRun | object | yes | — | maxProperties 1024 |
status.winner.trainingRun.name | string | yes | — | Workspace name of the TrainingRun. Use the UID as well when identifying a specific trial or model producer. · maxLength 253 |
status.winner.trainingRun.uid | string | yes | — | Kubernetes UID of that TrainingRun. Use it to detect a replacement with the same name. · maxLength 128 |
Specification
Define the training template, candidate parameters, objective, and trial budget to compare related runs.
This resource requires grid, maxTrials, objective, seeds, template.
control
Request deletion of the reviewed child runs when retiring the study. Admission verifies the requester and rejects this one-time command while a child-creation reservation is outstanding.
| Field | When to use it |
|---|---|
spec.control.deleteChildren | Supply the reviewed study and child identities to request deletion of those runs. |
spec.control.deleteChildren.children | List the exact child runs approved for deletion. Build the list from the reviewed study. |
spec.control.deleteChildren.children[].name | Workspace name of the TrainingRun. Use the UID as well when identifying a specific trial or model producer. |
spec.control.deleteChildren.children[].uid | Kubernetes UID of that TrainingRun. Use it to detect a replacement with the same name. |
spec.control.deleteChildren.requestId | Identify this deletion request. Reuse the request ID when retrying the same intent. |
spec.control.deleteChildren.reviewedResourceVersion | Copy the study resource version that you reviewed for the deletion decision. |
spec.control.deleteChildren.studyUid | Copy the study UID so the request applies to this instance of the study. |
grid
List the settings to compare across trials. Keep other training settings in the template.
| Field | When to use it |
|---|---|
spec.grid.batchSizes | Try these batch sizes to compare training speed, memory use, and validation results. |
spec.grid.dropouts | Try these dropout probabilities to compare regularization strengths. |
spec.grid.earlyStoppingPatiences | Compare how long trials wait for validation improvement. |
spec.grid.hiddenDimensions | Compare model widths with different capacity and memory requirements. |
spec.grid.learningRates | Compare optimizer step sizes across otherwise equivalent trials. |
spec.grid.maxEpochs | Try these epoch limits to compare training duration and validation results. |
spec.grid.samplingPlans | Compare combinations of graph depth and neighbor counts. Keep each layer count and its fanout together. |
spec.grid.samplingPlans[].fanout | Set the number of neighbors sampled at each hop. Supply one count per layer. Smaller counts reduce work. |
spec.grid.samplingPlans[].fanoutByEdge | For HeteroCountTimeV2, set per-edge counts when relations need different sample sizes. Supply one entry for every graph edge type, in ascending ID order. |
spec.grid.samplingPlans[].fanoutByEdge[].edgeTypeId | Use the graph edge type ID for this entry. IDs start at zero and must appear in order without gaps. |
spec.grid.samplingPlans[].fanoutByEdge[].fanout | Supply one count per layer for this edge type. Use smaller positive counts to sample fewer neighbors from a dense relation. |
spec.grid.samplingPlans[].layers | Set the number of graph hops. Use another layer to include more distant neighbors. |
spec.grid.temporalStrategies | Compare sampling the latest eligible neighbors with uniform sampling. |
spec.grid.validationMetrics | Compare the metrics used to choose each trial’s best checkpoint. |
maxConcurrentTrials
Limit the trials allowed to run at the same time. Increase this limit when the cluster can run more training jobs.
maxTrials
Cap the total number of trials across candidates and seeds. Use it to bound the study budget.
objective
Select the validation score used to rank trial settings across seeds. Choose a metric appropriate to the task.
seeds
Run each candidate with these seeds. Use several seeds to measure how results vary between runs.
template
Set the baseline configuration inherited by the trial runs. Use the grid to vary selected settings.
| Field | When to use it |
|---|---|
spec.template.anchors | For a temporal task, choose the times at which to build training examples. Omit for a static task. |
spec.template.anchors.end | Set the exclusive end of the anchor period. Keep each target window within the available source coverage. |
spec.template.anchors.start | Set the first anchor time. Choose a later start if earlier source history is incomplete. |
spec.template.anchors.step | Set the interval between anchors. A shorter interval gives more observation times in the same period. |
spec.template.cpuWorkers | Size CPU training for the CPUs available to the pod. Omission uses one worker. For CUDA training, omit this field or set it to one. |
spec.template.forecast | Every trial and the final run inherit these forecast settings. Omitted fields use query or runtime defaults. |
spec.template.forecast.forecastLength | Set the number of future time steps to predict. Increase it for a longer forecast horizon. |
spec.template.forecast.lagTimesteps | Choose how many prior time steps contribute lag features. Increase this value to include more history. |
spec.template.forecast.yearOverYear | Enable year-over-year features when the time series has annual seasonality. |
spec.template.graphSnapshotSource | Select the graph snapshot for this workload. Use a producer resource to consume its published output. |
spec.template.graphSnapshotSource.expected | Supply the expected identities when the workload must use a previously reviewed source or output. |
spec.template.graphSnapshotSource.expected.output | Pin the resolved output when a producer must return a specific graph snapshot. |
spec.template.graphSnapshotSource.expected.output.artifactDigest | Use the published artifact digest to require the same artifact bytes. |
spec.template.graphSnapshotSource.expected.output.dataIdentity | Copy the data identity from the expected snapshot publication when the workload must use that exact dataset. |
spec.template.graphSnapshotSource.expected.output.uid | Copy the snapshot’s Kubernetes UID to require the exact resource instance. |
spec.template.graphSnapshotSource.expected.producerUid | Pin the producer’s Kubernetes UID to detect deletion and recreation under the same name. |
spec.template.graphSnapshotSource.kind | Use the Kubernetes kind of the selected resource. Supported kinds are GraphSnapshot and SnapshotPreparation. |
spec.template.graphSnapshotSource.name | Use the Kubernetes name of that resource in this workspace. Choose another name to use a different graph snapshot source. |
spec.template.model | Choose the model architecture, neighborhood sampling, and optimization settings for this training job. |
spec.template.model.batchSize | Set the number of examples per training batch. Reduce it if a batch exceeds available memory. |
spec.template.model.dropout | Set the dropout probability during training. Raise it when testing stronger regularization. |
spec.template.model.earlyStoppingPatience | Set how long training can continue without validation improvement. Raise it to tolerate a longer plateau. |
spec.template.model.family | Select the architecture to train. Use HeteroCountTimeV2 for CUDA training or per-edge sampling. |
spec.template.model.fanout | Set the number of neighbors sampled at each hop. Supply one count per layer. Smaller counts reduce work. |
spec.template.model.fanoutByEdge | For HeteroCountTimeV2, set per-edge counts when relations need different sample sizes. Supply one entry for every graph edge type, in ascending ID order. |
spec.template.model.fanoutByEdge[].edgeTypeId | Use the graph edge type ID for this entry. IDs start at zero and must appear in order without gaps. |
spec.template.model.fanoutByEdge[].fanout | Supply one count per layer for this edge type. Use smaller positive counts to sample fewer neighbors from a dense relation. |
spec.template.model.hiddenDimension | Set the width of the hidden representations. A larger width needs more memory. |
spec.template.model.layers | Set the number of graph hops. Use another layer to include more distant neighbors. |
spec.template.model.learningRate | Set the optimizer step size. Try a smaller rate if training updates are unstable. |
spec.template.model.maxEpochs | Limit the number of passes over the training data. Raise the limit if validation performance still improves. |
spec.template.model.temporalStrategy | Choose how to sample neighbors over time. Last favors the latest eligible neighbors. Uniform samples across eligible neighbors. |
spec.template.model.validationMetric | For HeteroMeanV1, omit this field to use TaskLoss. For HeteroCountTimeV2 regression, select Mae to rank checkpoints by mean absolute error. |
spec.template.queryRef | Select the prediction query that defines the training task and target. |
spec.template.queryRef.name | Kubernetes name of the referenced object in the same namespace. Use its metadata.name. |
spec.template.resources | Set Kubernetes resource quantities for the training workload. Size them for this workload and the namespace quota. |
spec.template.resources.limits | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. |
spec.template.resources.requests | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. |
spec.template.split | Divide the examples into training, validation, and test partitions. The three fractions must sum to one. |
spec.template.split.test | Set the fraction held out for final evaluation. Keep these examples separate from checkpoint selection. |
spec.template.split.train | Set the fraction of examples used to fit the model. Increase it when the holdout sets remain large enough. |
spec.template.split.type | Use TemporalRatio for time-ordered examples or HashRatio for a static task. |
spec.template.split.validation | Set the fraction reserved for model selection and validation metrics. |
Kubernetes schema for spec
Required applies when the parent is present. A dash in the default column means the CRD declares no default.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
spec | object | yes | — | Define the training template, candidate parameters, objective, and trial budget to compare related runs. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true · self.maxTrials >= 1 && self.maxTrials <= 16 && self.maxConcurrentTrials >= 1 && self.maxConcurrentTrials <= self.maxTrials · self.seeds.size() >= 1 && self.seeds.size() <= 16 && self.seeds.all(s, s.matches('^(0|[1-9][0-9]*)$')) · self.seeds.all(s, self.seeds.filter(x, x == s).size() == 1) · (has(self.template.anchors) && self.template.split.type == 'TemporalRatio') || (!has(self.template.anchors) && self.template.split.type == 'HashRatio') |
spec.control | object | no | — | Request deletion of the reviewed child runs when retiring the study. Admission verifies the requester and rejects this one-time command while a child-creation reservation is outstanding. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.control.deleteChildren | object | yes | — | Supply the reviewed study and child identities to request deletion of those runs. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true · self.children.all(c, c.name != '' && c.uid != '' && self.children.filter(other, other.name == c.name).size() == 1 && self.children.filter(other, other.uid == c.uid).size() == 1) |
spec.control.deleteChildren.children | array | yes | — | List the exact child runs approved for deletion. Build the list from the reviewed study. · maxItems 16 |
spec.control.deleteChildren.children[] | object | — | — | maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.control.deleteChildren.children[].name | string | yes | — | Workspace name of the TrainingRun. Use the UID as well when identifying a specific trial or model producer. · maxLength 253 |
spec.control.deleteChildren.children[].uid | string | yes | — | Kubernetes UID of that TrainingRun. Use it to detect a replacement with the same name. · maxLength 128 |
spec.control.deleteChildren.requestId | string | yes | — | Identify this deletion request. Reuse the request ID when retrying the same intent. · maxLength 64 · minLength 8 |
spec.control.deleteChildren.reviewedResourceVersion | string | yes | — | Copy the study resource version that you reviewed for the deletion decision. · maxLength 128 · minLength 1 |
spec.control.deleteChildren.studyUid | string | yes | — | Copy the study UID so the request applies to this instance of the study. · maxLength 128 · minLength 1 |
spec.grid | object | yes | — | List the settings to compare across trials. Keep other training settings in the template. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.grid.batchSizes | array | no | — | Try these batch sizes to compare training speed, memory use, and validation results. · maxItems 16 |
spec.grid.batchSizes[] | integer | — | — | format "int32" |
spec.grid.dropouts | array | no | — | Try these dropout probabilities to compare regularization strengths. · maxItems 16 |
spec.grid.dropouts[] | number | — | — | format "double" |
spec.grid.earlyStoppingPatiences | array | no | — | Compare how long trials wait for validation improvement. · maxItems 16 |
spec.grid.earlyStoppingPatiences[] | integer | — | — | format "int32" |
spec.grid.hiddenDimensions | array | no | — | Compare model widths with different capacity and memory requirements. · maxItems 16 |
spec.grid.hiddenDimensions[] | integer | — | — | format "int32" |
spec.grid.learningRates | array | no | — | Compare optimizer step sizes across otherwise equivalent trials. · maxItems 16 |
spec.grid.learningRates[] | number | — | — | format "double" |
spec.grid.maxEpochs | array | no | — | Try these epoch limits to compare training duration and validation results. · maxItems 16 |
spec.grid.maxEpochs[] | integer | — | — | format "int32" |
spec.grid.samplingPlans | array | no | — | Compare combinations of graph depth and neighbor counts. Keep each layer count and its fanout together. · maxItems 16 |
spec.grid.samplingPlans[] | object | — | — | maxProperties 1024 · x-kubernetes-preserve-unknown-fields true · self.layers == self.fanout.size() && self.layers >= 1 && self.layers <= 3 · !has(self.fanoutByEdge) || self.fanoutByEdge.all(e, e.fanout.size() == self.layers) |
spec.grid.samplingPlans[].fanout | array | yes | — | Set the number of neighbors sampled at each hop. Supply one count per layer. Smaller counts reduce work. · maxItems 3 |
spec.grid.samplingPlans[].fanout[] | integer | — | — | format "int32" |
spec.grid.samplingPlans[].fanoutByEdge | array | no | — | For HeteroCountTimeV2, set per-edge counts when relations need different sample sizes. Supply one entry for every graph edge type, in ascending ID order. · maxItems 16 · nullable true |
spec.grid.samplingPlans[].fanoutByEdge[] | object | — | — | maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.grid.samplingPlans[].fanoutByEdge[].edgeTypeId | integer | yes | — | Use the graph edge type ID for this entry. IDs start at zero and must appear in order without gaps. · format "uint32" · minimum 0 |
spec.grid.samplingPlans[].fanoutByEdge[].fanout | array | yes | — | Supply one count per layer for this edge type. Use smaller positive counts to sample fewer neighbors from a dense relation. · maxItems 256 |
spec.grid.samplingPlans[].fanoutByEdge[].fanout[] | integer | — | — | format "int32" |
spec.grid.samplingPlans[].layers | integer | yes | — | Set the number of graph hops. Use another layer to include more distant neighbors. · format "int32" |
spec.grid.temporalStrategies | array | no | — | Compare sampling the latest eligible neighbors with uniform sampling. · maxItems 16 |
spec.grid.temporalStrategies[] | string | — | — | enum ["Uniform","Last"] · maxLength 16384 |
spec.grid.validationMetrics | array | no | — | Compare the metrics used to choose each trial’s best checkpoint. · maxItems 16 |
spec.grid.validationMetrics[] | string | — | — | enum ["TaskLoss","Mae"] · maxLength 16384 |
spec.maxConcurrentTrials | integer | no | 1 | Limit the trials allowed to run at the same time. Increase this limit when the cluster can run more training jobs. · format "int32" |
spec.maxTrials | integer | yes | — | Cap the total number of trials across candidates and seeds. Use it to bound the study budget. · format "int32" |
spec.objective | string | yes | — | Select the validation score used to rank trial settings across seeds. Choose a metric appropriate to the task. · enum ["ValidationMae","ValidationMse","ValidationLoss","ValidationAccuracy"] · maxLength 16384 |
spec.seeds | array | yes | — | Run each candidate with these seeds. Use several seeds to measure how results vary between runs. · maxItems 16 |
spec.seeds[] | string | — | — | maxLength 16384 |
spec.template | object | yes | — | Set the baseline configuration inherited by the trial runs. Use the grid to vary selected settings. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true · self.model.layers == self.model.fanout.size() · !has(self.forecast) || ((!has(self.forecast.forecastLength) || (self.forecast.forecastLength >= 1 && self.forecast.forecastLength <= 10000)) && (!has(self.forecast.lagTimesteps) || self.forecast.lagTimesteps >= 1)) |
spec.template.anchors | object | no | — | For a temporal task, choose the times at which to build training examples. Omit for a static task. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.template.anchors.end | string | yes | — | Set the exclusive end of the anchor period. Keep each target window within the available source coverage. · maxLength 16384 |
spec.template.anchors.start | string | yes | — | Set the first anchor time. Choose a later start if earlier source history is incomplete. · maxLength 16384 |
spec.template.anchors.step | string | yes | — | Set the interval between anchors. A shorter interval gives more observation times in the same period. · maxLength 16384 |
spec.template.cpuWorkers | integer | no | — | Size CPU training for the CPUs available to the pod. Omission uses one worker. For CUDA training, omit this field or set it to one. · format "uint32" · minimum 0 · nullable true |
spec.template.forecast | object | no | — | Every trial and the final run inherit these forecast settings. Omitted fields use query or runtime defaults. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.template.forecast.forecastLength | integer | no | — | Set the number of future time steps to predict. Increase it for a longer forecast horizon. · format "uint32" · minimum 0 · nullable true |
spec.template.forecast.lagTimesteps | integer | no | — | Choose how many prior time steps contribute lag features. Increase this value to include more history. · format "uint32" · minimum 0 · nullable true |
spec.template.forecast.yearOverYear | boolean | no | — | Enable year-over-year features when the time series has annual seasonality. · nullable true |
spec.template.graphSnapshotSource | object | yes | — | Select the graph snapshot for this workload. Use a producer resource to consume its published output. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true · self.kind != 'GraphSnapshot' || !has(self.expected) || !has(self.expected.producerUid) || !has(self.expected.output) || !has(self.expected.output.uid) || self.expected.producerUid == self.expected.output.uid |
spec.template.graphSnapshotSource.expected | object | no | — | Supply the expected identities when the workload must use a previously reviewed source or output. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.template.graphSnapshotSource.expected.output | object | no | — | Pin the resolved output when a producer must return a specific graph snapshot. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true · has(self.artifactDigest) == has(self.dataIdentity) |
spec.template.graphSnapshotSource.expected.output.artifactDigest | string | no | — | Use the published artifact digest to require the same artifact bytes. · maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
spec.template.graphSnapshotSource.expected.output.dataIdentity | string | no | — | Copy the data identity from the expected snapshot publication when the workload must use that exact dataset. · maxLength 71 · nullable true · pattern "^sha256:[0-9a-f]{64}$" |
spec.template.graphSnapshotSource.expected.output.uid | string | no | — | Copy the snapshot’s Kubernetes UID to require the exact resource instance. · maxLength 128 · minLength 1 · nullable true |
spec.template.graphSnapshotSource.expected.producerUid | string | no | — | Pin the producer’s Kubernetes UID to detect deletion and recreation under the same name. · maxLength 128 · minLength 1 · nullable true |
spec.template.graphSnapshotSource.kind | string | yes | — | Use the Kubernetes kind of the selected resource. Supported kinds are GraphSnapshot and SnapshotPreparation. · enum ["SnapshotPreparation","GraphSnapshot"] · maxLength 16384 |
spec.template.graphSnapshotSource.name | string | yes | — | Use the Kubernetes name of that resource in this workspace. Choose another name to use a different graph snapshot source. · maxLength 253 · minLength 1 |
spec.template.model | object | yes | — | Choose the model architecture, neighborhood sampling, and optimization settings for this training job. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.template.model.batchSize | integer | yes | — | Set the number of examples per training batch. Reduce it if a batch exceeds available memory. · format "int32" |
spec.template.model.dropout | number | yes | — | Set the dropout probability during training. Raise it when testing stronger regularization. · format "double" |
spec.template.model.earlyStoppingPatience | integer | yes | — | Set how long training can continue without validation improvement. Raise it to tolerate a longer plateau. · format "int32" |
spec.template.model.family | string | yes | — | Select the architecture to train. Use HeteroCountTimeV2 for CUDA training or per-edge sampling. · enum ["HeteroMeanV1","HeteroCountTimeV2"] · maxLength 16384 |
spec.template.model.fanout | array | yes | — | Set the number of neighbors sampled at each hop. Supply one count per layer. Smaller counts reduce work. · maxItems 256 |
spec.template.model.fanout[] | integer | — | — | format "int32" |
spec.template.model.fanoutByEdge | array | no | — | For HeteroCountTimeV2, set per-edge counts when relations need different sample sizes. Supply one entry for every graph edge type, in ascending ID order. · maxItems 512 · nullable true |
spec.template.model.fanoutByEdge[] | object | — | — | maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.template.model.fanoutByEdge[].edgeTypeId | integer | yes | — | Use the graph edge type ID for this entry. IDs start at zero and must appear in order without gaps. · format "uint32" · minimum 0 |
spec.template.model.fanoutByEdge[].fanout | array | yes | — | Supply one count per layer for this edge type. Use smaller positive counts to sample fewer neighbors from a dense relation. · maxItems 256 |
spec.template.model.fanoutByEdge[].fanout[] | integer | — | — | format "int32" |
spec.template.model.hiddenDimension | integer | yes | — | Set the width of the hidden representations. A larger width needs more memory. · format "int32" |
spec.template.model.layers | integer | yes | — | Set the number of graph hops. Use another layer to include more distant neighbors. · format "int32" |
spec.template.model.learningRate | number | yes | — | Set the optimizer step size. Try a smaller rate if training updates are unstable. · format "double" |
spec.template.model.maxEpochs | integer | yes | — | Limit the number of passes over the training data. Raise the limit if validation performance still improves. · format "int32" |
spec.template.model.temporalStrategy | string | yes | — | Choose how to sample neighbors over time. Last favors the latest eligible neighbors. Uniform samples across eligible neighbors. · enum ["Uniform","Last"] · maxLength 16384 |
spec.template.model.validationMetric | string | no | — | For HeteroMeanV1, omit this field to use TaskLoss. For HeteroCountTimeV2 regression, select Mae to rank checkpoints by mean absolute error. · enum ["TaskLoss","Mae",null] · maxLength 16384 · nullable true |
spec.template.queryRef | object | yes | — | Select the prediction query that defines the training task and target. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.template.queryRef.name | string | yes | — | Kubernetes name of the referenced object in the same namespace. Use its metadata.name. · maxLength 253 |
spec.template.resources | object | yes | — | Set Kubernetes resource quantities for the training workload. Size them for this workload and the namespace quota. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.template.resources.limits | object | no | — | Set the CPU or memory ceiling for the workload. Choose limits that fit the namespace quota and allow the work to complete. · maxProperties 1024 · nullable true · x-kubernetes-preserve-unknown-fields true |
spec.template.resources.limits[key] | string | — | — | maxLength 16384 |
spec.template.resources.requests | object | yes | — | Set the minimum CPU and memory that the Kubernetes scheduler must reserve for the workload. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true |
spec.template.resources.requests[key] | string | — | — | maxLength 16384 |
spec.template.split | object | yes | — | Divide the examples into training, validation, and test partitions. The three fractions must sum to one. · maxProperties 1024 · x-kubernetes-preserve-unknown-fields true · self.train >= 0.0 && self.validation >= 0.0 && self.test >= 0.0 && self.train + self.validation + self.test == 1.0 |
spec.template.split.test | number | yes | — | Set the fraction held out for final evaluation. Keep these examples separate from checkpoint selection. · format "double" |
spec.template.split.train | number | yes | — | Set the fraction of examples used to fit the model. Increase it when the holdout sets remain large enough. · format "double" |
spec.template.split.type | string | yes | — | Use TemporalRatio for time-ordered examples or HashRatio for a static task. · enum ["TemporalRatio","HashRatio"] · maxLength 16384 |
spec.template.split.validation | number | yes | — | Set the fraction reserved for model selection and validation metrics. · format "double" |
The validation schema matches prokrust-crds 0.23.0-rc.1.