Model Grading

From CaseTalk Wiki
Jump to: navigation, search

Model Grading

Model Grading gives your conceptual model a quality score (0-100%) based on well-formedness rule violations. The grade updates after a manual well-formedness check (Tools > Verify and Transform > Verify). Background checks do not affect the grade.

The grade is displayed in the status bar and in diagrams, using color coding:

Score Color Meaning
90-100% Green Excellent - model is clean
75-89% Light green Good - minor issues remain
50-74% Yellow Fair - several issues need attention
25-49% Orange Poor - significant issues
0-24% Red Critical - fundamental problems

Configuration

Open Tools > Preferences, then select the Grading tab.

Calculation Method

Choose how the overall model grade is calculated:

Method Description
Average Simple average of all element scores. Clean elements dilute problematic ones.
Weighted Average Elements with more violations count proportionally more in the total.
Worst-N Average of the worst 10% of elements (minimum 3). Highlights problem areas.
Minimum The score of the single worst element becomes the model score.
Penalty Each violation subtracts its weight directly from 100. Models with semantic unclear areas score noticeably lower.
None Grading is disabled.

Penalty vs. Ratio Methods

The first four methods (Average through Minimum) use a ratio approach: each element's score is the fraction of total rule weight that was not violated. Because total weight includes all 25 rules, a single violation has modest impact.

The Penalty method works differently: each violated rule subtracts its weight directly from 100 points. This means every violation has a tangible, predictable effect on the score.

Example with default weights:

Violations Ratio (Average) Penalty
None 100% 100%
1 warning ~96% 92%
2 warnings ~94% 84%
3 warnings ~92% 76%
5 warnings ~88% 60%
1 error ~48% 50% (capped)

Elements with errors are always capped at 50%, regardless of method.

Rule Weights

Each of the 25 well-formedness rules has a configurable weight and can be individually enabled or disabled.

Default weights by severity:

Severity Default Weight Meaning
Error 15 Fundamental problems (e.g., missing uniqueness constraints, ambiguous role semantics)
Warning 8 Issues that should be resolved (e.g., missing population, unused expressions)
Hint 2 Minor suggestions (e.g., stale URIs)

You can adjust individual rule weights to match your modeling priorities. Click Reset to restore defaults.

Semantic Clarity

Rules related to semantic clarity have a direct impact on grading:

  • Roles must have distinct semantic meanings (Error, weight 15) - ambiguous roles immediately cap the element at 50%.
  • Facts must have at least one sample population (Warning, weight 8) - missing examples reduce confidence in the model's semantics.
  • All generated expressions require validated semantics (Warning, weight 8) - unvalidated expressions indicate the model is not yet semantically complete.

When using the Penalty method, a single element with two semantic warnings drops to 84%, making unclear areas clearly visible in both the status bar and diagrams.

When Grading Runs

  • Manual verification (Tools > Verify and Transform > Verify): computes the grade after all rules are checked.
  • Background well-formedness checks: run automatically when the model changes but do not update the grade. This prevents the grade from fluctuating while you are still editing.

The grade persists until the next manual verification.

Model Information Report

When enabled, the grade appears as an appendix in the Model Information report. It shows:

  • Overall grade percentage
  • Calculation method used
  • Error, warning, and hint counts
  • Number of elements evaluated
  • Per-rule breakdown with violations

Enable the grading section via Tools > Preferences > Model Information > Sections > Grading.

See also

  • Model Metrics - quantitative measures of the gap your model fills in the space of possibilities (specification gain, lexical density, monkey-years, and more), shown in the same Model Quality report.