fix(engine): R8 preferredColors fallback + score spreading#62
Open
lucavandee wants to merge 1 commit into
Open
fix(engine): R8 preferredColors fallback + score spreading#62lucavandee wants to merge 1 commit into
lucavandee wants to merge 1 commit into
Conversation
- buildProfile: derivePreferredColors fills palette from colorAnalysis, neutrals, temperature, lightness so donker/koel profiles never end up with an empty palette. - engine: match formula widened from 30+raw*65 to 20+raw*75 for more spread between weak and strong outfits. - coherence: evaluateCoherence now exposes primaryArchetypeFit; multiplier drops to 0.6 when fit < 0.40, 0.85 when < 0.55. - brand scoring: NEGATIVE_BRANDS (shein/temu/wish/romwe/zaful) score 0.15; non-preferred brands score 0.45 when user has >=3 preferred brands, otherwise 0.7. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
✅ Deploy Preview for fitfiai ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
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.
Summary
buildColorPreferencenow derives a non-emptypreferredColorspalette from multiple sources (colorAnalysis → neutrals → temperature → lightness), so donker/koel profiles like Sem's avant-garde no longer end up with an empty palette.30 + raw * 65to20 + raw * 75(clamped 20-95) for more spread between weak and strong outfits.coherence.evaluateCoherencenow exposesprimaryArchetypeFit;coherenceMultiplierdrops to 0.6 when fit < 0.40 (and 0.85 when < 0.55), so off-archetype outfits (e.g. preppy for avant-garde) fall further behind the best matches.NEGATIVE_BRANDS(shein/temu/wish/romwe/zaful) at 0.15; non-preferred brand drops from 0.7 → 0.45 when the user has ≥3 preferred brands.Test plan
npx vitest run— 55 passing, 1 pre-existing failure inproductClassifier.test.ts(also fails on main, unrelated)🤖 Generated with Claude Code