Skip to main content

Target Variable Ontology

Learning Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 29 October 2026
Audio Overview
FLOW ALGEBRA v1.0 — TARGET VARIABLE ONTOLOGY
Semantic Library / AI Core / Entity Graph / AI Entities / Learning Entities
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/learning-entities/target-variable-ontology.html
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
STATUS: Topic-based formalisation; source page content not independently verified.
DATE: 2026-10-29

1. PURPOSE
Represent a target variable as the supervised learning quantity an estimator is trained to predict, with explicit type, provenance, observation scope, missingness and evaluation rules.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: current dataset, feature observations, target observations and predictions.
R_t: relationships among samples, labels, tasks, models and metrics.
B_t: boundaries including valid label space, access permissions and data splits.
K_t: schema, task definition, learned parameters and provenance knowledge.
E_t = expand(I_t, R_t)
V_t = {x in E_t : satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_{t+1} = update(I_t, x*_t)
NOTE: The selection rule is a general Flow Algebra inference abstraction, not the usual supervised gradient optimisation rule.

3. ENTITIES
TargetVariable: predicted outcome specification.
TargetObservation: recorded value for one sample.
Sample: observation unit with unique identifier.
FeatureVector: permitted predictor attributes.
LabelSpace: valid categories or numeric range.
Annotation: human or automated labelling event.
GroundTruthReference: evidence supporting a target value.
Prediction: model output corresponding to a target.
LossFunction: discrepancy between prediction and target.
EvaluationMetric: task-appropriate measure of predictive quality.
MissingTarget: absent, withheld or unobserved target.
DatasetSplit: train, validation or test partition.
Task: classification, regression, ranking or structured prediction.

4. RELATIONSHIPS
Sample --hasFeatures--> FeatureVector
Sample --hasTargetObservation--> TargetObservation
TargetObservation --instantiates--> TargetVariable
TargetVariable --constrainedBy--> LabelSpace
TargetObservation --supportedBy--> GroundTruthReference
Annotation --produces--> TargetObservation
Prediction --estimates--> TargetVariable
LossFunction --compares--> (Prediction, TargetObservation)
EvaluationMetric --evaluates--> (Prediction, TargetObservation)
DatasetSplit --contains--> Sample
Task --defines--> TargetVariable

5. FORMAL MATHEMATICS
D = {(x_i, y_i)}_{i=1}^n, with x_i in X and y_i in Y.
f_theta: X -> Yhat is the predictor.
For regression, Y subset of R^d and L may be squared error.
For classification, Y is a finite set and L may be cross-entropy.
Empirical risk: Rhat(theta) = (1/n) sum_i L(f_theta(x_i), y_i).
Optimisation: theta* in argmin_theta Rhat(theta), subject to task constraints.
Observed target: y_i^obs = observe(y_i^true, annotation_process, noise).
Target missingness indicator: m_i = 1 if y_i is observed, otherwise 0.
Masked risk: Rhat_m(theta) = sum_i m_i L(f_theta(x_i), y_i) / sum_i m_i, if sum_i m_i > 0.
WARNING: Masked risk is not generally unbiased when missingness depends on unobserved outcomes.

6. PATHWAYS
P1 DefineTask -> DefineTarget -> ValidateLabelSpace -> RegisterSchema.
P2 AcquireSample -> AttachFeatures -> ObtainTarget -> CheckProvenance.
P3 SplitDataset -> FitOnTraining -> TuneOnValidation -> EvaluateOnTest.
P4 Predict -> CompareWithTarget -> ComputeLoss -> UpdateParameters.
P5 DetectLabelDrift -> ReviewAnnotations -> VersionTargetSchema -> Revalidate.
P6 MissingTarget -> RecordMissingness -> ApplyApprovedHandling -> AuditBias.

7. MINI-RECURSION ENGINE
state := initialise(task, schema, dataset, constraints)
while training_budget_remaining(state):
    batch := sample_training_data(state)
    assert no_test_label_leakage(batch, state)
    predictions := model(batch.features)
    loss := objective(predictions, batch.targets, batch.valid_target_mask)
    gradients := differentiate(loss, model.parameters)
    model.parameters := optimiser_step(model.parameters, gradients)
    state := record_metrics_and_provenance(state, loss)
    if validation_rule_triggered(state):
        state := validate_without_fitting_on_test(state)
return model, state

8. INFERENCE RULES
IF target is categorical THEN require enumerated label mapping.
IF target is continuous THEN require units, range and numeric validation.
IF labels are probabilistic THEN preserve uncertainty rather than silently hardening.
IF target provenance is missing THEN flag evidence quality.
IF target is derived from future information THEN check temporal leakage.
IF target schema changes THEN increment version and revalidate comparability.
IF target is unavailable at inference THEN do not use it as a predictor.
IF target is sensitive or restricted THEN enforce access and governance boundaries.

9. INVARIANTS
Every observed target maps to exactly one declared sample and target specification in its context.
All observed target values satisfy their schema or carry a validation error.
Training and evaluation partitions remain traceable and disjoint where required.
Missing targets are not silently interpreted as zero.
Units and category encodings are preserved across transformations.
Test targets do not influence fitting or model selection.

10. TRI-MAPPING
Semantic: target variable is the intended predicted outcome.
Mathematical: y in Y, estimated by f_theta(x).
Operational: schema -> label ingestion -> validation -> training -> evaluation.

11. MAPPING TABLE
Ontology entity | Formal representation | Operational field
TargetVariable | Y | target_schema
TargetObservation | y_i | target_value
Sample | i | sample_id
FeatureVector | x_i | features
Prediction | f_theta(x_i) | prediction
MissingTarget | m_i | target_present
LossFunction | L | loss_name
DatasetSplit | partition(i) | split

12. CONDITIONAL EXECUTION GUARANTEE
Given a valid schema, adequate labelled observations, defined objective, finite compute budget and correctly implemented pipeline, the flow can validate target records and execute a bounded training/evaluation cycle. It does not guarantee convergence, generalisation, fairness, calibrated predictions or correctness of ground truth.

13. AI SEARCH FLOW
QUERY: What is a target variable in machine learning?
RESOLVE: TargetVariable -> Task -> LabelSpace -> TargetObservation.
EXPAND: FeatureVector, Prediction, LossFunction, EvaluationMetric.
FILTER: schema, provenance, partition integrity and missingness.
ANSWER: The target variable is the outcome a model is trained to predict; observed target values supply supervision and evaluation references.
CONFIDENCE: Conditional on available evidence and schema validity.

14. SOURCE AND CITATION
SOURCE_URL: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/learning-entities/target-variable-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/
ATTRIBUTION: Mark Anthony Higgins — Sky Recursive AI
DERIVATION_NOTICE: Independently constructed topic-based Flow Algebra; not a verified transcription of source-page content.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ