Tune crossing failure probability calibration to reduce benchmark MSE#649
Closed
Tune crossing failure probability calibration to reduce benchmark MSE#649
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🏃 Benchmark This PRRun benchmarks by commenting on this PR: Examples:
Any PR whose title contains |
Contributor
Author
|
/benchmark |
🏃 Autorouting Benchmark Results📊 PR Results📊 Main Branch Results📦 Artifact: https://github.com/tscircuit/tscircuit-autorouter/actions/runs/23000129686 |
Contributor
Author
|
/benchmark |
🏃 Autorouting Benchmark Results📊 PR Results📊 Main Branch Results📦 Artifact: https://github.com/tscircuit/tscircuit-autorouter/actions/runs/23001405060 |
Contributor
Author
|
/benchmark |
🏃 Autorouting Benchmark Results📊 PR Results📊 Main Branch Results📦 Artifact: https://github.com/tscircuit/tscircuit-autorouter/actions/runs/23023603112 |
|
This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. |
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.
Motivation
Description
calculateNodeProbabilityOfFailureinlib/solvers/UnravelSolver/calculateCrossingProbabilityOfFailure.tsto replace the previous via-estimate/capacity ratio with a calibrated model.safeCapacityfloor viaMath.max(totalCapacity, 0.05)to avoid unstable ratios on very small nodes.weightedCrossingLoadwith adjusted weights, applylayerRelieffor multi-layer nodes, convert toutilizationagainst capacity, then map through a logistic calibration and a small baseline floor, clamped to[0,1]._containsTargetreturn0and single-layer nodes with any crossing still return1.Testing
runBenchmarkWithWorkers) on representative subsets to measure MSE before and after the change via thescripts/highdensity-benchmarktooling.0.003227983353163425; New MSE (same sampled subset after change):0.0027581947657854496; absolute improvement0.0004697885873779752and relative improvement14.55%lower MSE.0.0037090839563132883for reference; all benchmark runs completed successfully usingrunBenchmarkWithWorkers.bun -e '...runBenchmarkWithWorkers...'and computing MSE withscripts/highdensity-benchmark/metrics/calculateMse.ts, and all automated runs succeeded.Codex Task