Repository navigation
Conversation
Once the loaded schema declares `symbol` on the fit lists (did-schema #488), the tuning migrators write each coefficient's and constraint's `variable` as the symbol's registered term and the writer's symbol in `symbol`, and name the fit's independent variable (Contrast, Direction, Spatial or Temporal Frequency, with its equation symbol) and dependent variable (the curve's response variable, `R`); the cubic spline writes no symbol. On a schema without the field a fit is written as before. Decided by Jess Haley, 2026-12-03, did-schema did_v2_go_forward_class_audit.md: [fit symbols need term nodes], [a fit with an equation names every symbol], [fit terms name their meaning], [difference of Gaussians named added and subtracted], [fit symbol terms batch 1] (U5), [fit symbol terms batch 2], [fit symbol terms list 1], [fit symbol terms list 2], [fit symbol scope]. - tuningFitModels: each row's symbol terms, independent symbol and `R`; a second output gives the family's independent variable term - jTuningCurve, jContrastSensitivityValue: write them (jFitNamed, jFitVariables, jFitSymbolsDeclared) - round trip: reads `symbol` for the v1 names (a fit migrated before is read by its variable's name), checks each symbol's term and the restated variables, lists anything else - checkRules: rule `fit_symbols_named` (name Proposed, not decided; S1), checked by did2.build.checkFitSymbolsNamed when a class declares it; no class declares it yet - jCalculation: one 'tuning_fit_model' report note per fit, v1_to_v2 prints the count per model, denominator first - tests: testFitSymbolTerms (the decided table, the writers' fits, the rule); tuning tests read `symbol` when the schema declares it checkTerm.m's fit-symbol exemption stays until the schema binding lands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
| 'node', m{1}, 'name', m{2}, 'symbols', {m{3}}, 'equation', m{4}, ... | ||
| 'constraints', {spec{k, 4}}, 'leadingZero', spec{k, 5}); %#ok<AGROW> | ||
| 'node', m{1}, 'name', m{2}, 'symbols', {reshape(named(:, 1), 1, [])}, ... | ||
| 'equation', m{4}, 'constraints', {spec{k, 4}}, 'leadingZero', spec{k, 5}, ... |
writeCorpusReport persists the 'tuning_fit_model' notes: the fits written with a model row (the denominator) and the count of each '<stem> | <how>', or "not measured" when none was written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FxKLA8Tbf9cpvDe7fuVeKf
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.
Step 2 of Waltham-Data-Science/DID-schema#474 ("Fit symbols get term nodes and a symbol field"). It follows did-schema #488, which adds the optional
symbolfield. The did-schema branchclaude/fit-symbol-termsis at #488's head (f1d43b05), so this branch's quick CI pairs with it.Decisions built
All Decided by Jess Haley, 2026-12-03, in did-schema
docs/plans/did_v2_go_forward_class_audit.md:fitcurve/vmspikefitare did-schema#478. Neither is touched here.What the migrators write
This applies once the loaded schema declares
symbolon the four fit lists. On a schema without it, a fit is written exactly as before (siblings first, viajFitSymbolsDeclared). Each coefficient and constraint gets its registered term invariableand the writer's symbol insymbol:Every fit with a model row also gets its two variables:
independent_variables: one entry holding the family's variable, with its symbol inequation:cthetaxorffit_metric_unitholds.dependent_variable: the curve's response variable (fromjResponseVariable) with symbolR.The cubic spline has no equation, so it writes both variables with no symbol (U5).
Round trip
symbolfor the v1 names (fitSymbolOf). A fit migrated before is still read by its variable's name.fitTermBad).fitVariablesBad). Anything else is listed, never dropped.Rule S1 (rule name
fit_symbols_named: Proposed, not decided)did2.build.checkFitSymbolsNamedrefuses a fit with a non-emptyequationwhen a coefficient or constraint has nosymbol, or when a symbol repeats. Uniqueness is checked across coefficients and constraints together.checkRules.mdispatches the check when a class declares the rule. No class declares it yet.checkTerm.m's fit-symbol exemption is unchanged; it is dropped after the schema binding lands.Report
jCalculationleaves onetuning_fit_modelnote per fit written with a model row, with DETAIL<stem> | <how>.v1_to_v2prints the total first, then the count per detail. A corpus report therefore counts the fits of each model exactly.Tests
testFitSymbolTerms:testTuningDecisionsandtestMigratorsJreadsymbolwhen the schema declares it.CI results and corpus counts (20211116, Soph) are posted as a comment.
Not in this PR
Generated by Claude Code