AI301 — Original on-site preparation
Independent written study. All essential explanations and optional model reasoning for this chapter are on this page. References are optional further study. No degree, professional approval or observed competence is conferred.
Orion: compare complete learning procedures before choosing a release
Orion is a fictional service operator considering a repeat-visit predictor. At request acceptance, it has estimated hours, customer history available before that time and a short request description. The label is a repeat visit within seven days. Intended deployment concerns new customers next quarter. A final-resolution field and the eventual number of collection attempts appear in a retrospective export. All records, costs and probabilities below are instructional stipulations; no real customer decision is authorized.
Prepare one reproducible dossier that connects task definition, classical and neural fitting, a manual gradient check, decision metrics, probability evaluation and a bounded release recommendation. Explain how customer grouping, chronology and label maturity affect the split. Specify the training-only text vocabulary and numerical transformations. Preserve the supplied neural reference's actual fixed-partition result and changed-mechanism failure as a separate synthetic experiment; do not pass off the following hand record as its output.
For this additional eight-case development record, outcomes are [0,0,0,0,1,1,1,1]. A constant baseline predicts probability .5. A classical candidate supplies [.1,.2,.4,.7,.3,.6,.8,.9]; a neural candidate supplies [.1,.3,.6,.8,.4,.7,.9,.9]. Compare positive-at-threshold policies .5 and .75. A false positive costs two units and a missed positive ten. The batch can support four reviews. Calculate every confusion count, precision, recall, error cost and Brier loss. Interpret whether this record supports a final release. Then change the error costs to ten per false positive and two per missed positive, retaining all probabilities and capacity.
Include a fitting calculation using the existing logistic performance data x=[−1,−2/3,−1/3,1/3,2/3,1], y=[0,0,0,1,1,1]. Begin b=w=0, use mean binary cross-entropy and take one simultaneous rate-.3 update. Supply a gradient-check plan and identify which variables and loss conventions the published neural reference actually checks. For text generation, separately calculate a two-token likelihood with conditional probabilities .5 and .25 and explain why it cannot verify a factual sentence.
Complete dossier and changed-cost reasoning
Information and partition. Remove final resolution and eventual collection attempts from an acceptance-time predictor. Fit vocabulary, imputation and scaling within training folds. Keep a customer from crossing training and evaluation when testing new customers, enforce the chronological cutoff, and exclude labels whose seven-day observation window is not complete. Record whether a customer's earlier eligible history is permissible under the intended new-customer definition. Reserve the final evaluation after choosing the full pipeline, threshold and review process. A random seed cannot repair an invalid information boundary.
Baseline. At threshold .5 the constant .5 baseline predicts all cases positive: TP=4, FP=4, FN=0, TN=0. Accuracy=.5, precision=.5, recall=1, error cost=8 and eight reviews. It is infeasible at capacity four. At threshold .75 it predicts all negative: TP=0, FP=0, FN=4, TN=4, accuracy=.5, recall=0 and cost 40. Precision is undefined because there are no alerts; record an explicit empty-denominator state. The baseline Brier loss is .25 at either threshold because the probability forecast did not change.
Classical candidate. At .5, TP=3, FP=1, FN=1, TN=3: accuracy=.75, precision=.75, recall=.75, four alerts and cost 12. At .75, TP=2, FP=0, FN=2, TN=4: accuracy=.75, precision=1, recall=.5, two alerts and cost 20. The identical accuracy hides a consequential difference under these costs. Squared probability errors sum to 1.4, giving Brier loss 1.4/8=.175. Brier loss evaluates probabilities; it is unchanged by moving the action threshold.
Neural candidate. At .5, TP=3, FP=2, FN=1, TN=2: accuracy=.625, precision=.6, recall=.75, five alerts and cost 14. This policy exceeds capacity. At .75, TP=2, FP=1, FN=2, TN=3: accuracy=.625, precision=2/3, recall=.5, three alerts and cost 22. Squared probability errors sum to 1.57, giving Brier loss .19625. A neural family name does not entitle the candidate to win: on this record the feasible classical .5 policy has lower stated cost than the other feasible candidates. Selecting it using these cases makes them development evidence, rather than a final independent validation.
Reliability and fitting. For the classical probabilities, bins [0,.5) and [.5,1] contain four cases each. Mean forecasts are .25 and .75, while observed positive rates are .25 and .75. This exact agreement in two coarse bins on eight constructed cases does not prove calibration, subgroup reliability or transport to another population. Finer bins can expose other patterns and smaller counts. At logistic zero initialization, each p=.5. The intercept gradient is zero and slope gradient−1/3, so rate .3 gives b=0,w=.1. The updated probabilities are approximately [.475021,.483340,.491667,.508333,.516660,.524979], with mean loss .660462, below the initial ln 2≈.693147. Reconcile these numbers independently before interpreting the step. Perturb each parameter at several finite, nonsaturated states and compare centered numerical differences with the analytic gradient, keeping the objective and reduction unchanged. The published reference checks two logistic slope coordinates; it does not by that fact gradient-check every hidden-layer parameter. Its nonlinear training outcome remains a separate experiment.
Language and release. The stipulated joint token probability is .125, total negative log-likelihood ln 8 and perplexity √8 under this two-token definition. It measures a model's probability assignment, not truth or source support. Evaluate retrieved evidence and the generated claim separately. Freeze the selected prediction pipeline and policy before fresh evaluation; report case counts, uncertainty, subgroup/time results, review labor and delayed labels. Establish fallback and rollback triggers and preserve optimizer/preprocessing/model versions. This small constructed dossier supplies a reasoning model, not a real deployment approval.
Changed costs. With FP cost 10 and FN cost 2, the classical .5 policy costs 12 and .75 costs 4. The neural .5 policy costs 22 but remains infeasible; neural .75 costs 14. The all-negative baseline costs 8 and is feasible. Under the changed stipulated criteria the classical .75 policy is the least costly of these feasible choices. The probabilities and Brier losses did not change; the utility and action choice did. A different review intervention, ranking policy or capacity would require its own measured counts.
Optional 20-point rubric. Award 0–4 points for each: (1) task, feature timing and group/time/label boundaries; (2) correctly derived fitting and gradient-check scope; (3) all baseline/classical/neural counts, denominators, costs and capacity; (4) probability loss, bin counts and source-support limitations; (5) changed-cost recommendation, untouched final evaluation and reproducibility/fallback plan. Four means complete correct reasoning with explicit assumptions; three a correct conclusion with a limited omission; two a material reasoning gap; one an unsupported assertion; zero absent or contradictory work. Independent written comparison is optional and does not record learner completion or establish observed competence.
Optional source references
These sources support the explanations; reading them is optional. Original Academy examples are fictional. Historical attributed readings remain preserved.