Repository navigation
Conversation
…o-or Models of these languages replace each feature by a positive disjunctive clause scored by the max of its features; the engine (Beam only) exposes the clause structure through Individual.get_clauses(). Backend - prediction.py: clause-aware scoring (test AUC curve, predict API, validation on new data), language aliases, pow2-or refused - worker.py: OR models carry `clauses` and `named_clauses` in results.json (best_individual gets `clauses`); classic models are unchanged; works with bindings that have no get_clauses - schemas.py: beam.max_clause_size (default 3) and a RunConfig validator refusing an OR language with any algorithm other than beam - engine.py: max_clause_size in the YAML; OR models in the mock results - model_format.py (new): shared readable formula, used by the CSV exports (formula row, Clause column, Formula column), the HTML report and the PDF Frontend - language options Binary-OR / Ternary-OR / Ratio-OR tied to the Beam algorithm (`onlyWith` option rule in ParamField and paramValidation), Max clause size in the Beam section - ModelTerms.vue: one chip per clause (A v B) in the population tab, the basket and the public share view, showing the real coefficient - basket keeps named_clauses; en/fr translations; docs/parameter_analysis.md Tests: backend/tests/test_or_languages.py, frontend orLanguages.test.js.
…tabs New ModelFormula component: positive and negative terms as chips (clauses "A v B" for the OR languages, fraction layout for the Ratio languages), the decision threshold with the class names, the exact formula with a copy button, and a short legend explaining the score, the data type and the clauses. formatFormulaFromTerms is extracted from formatModelFormula.
When Beam stops without any model, the worker failed on best_pop.best() with an index error shown as the job's error. It now exits with a message saying that the engine produced no model, why this happens and what to change (feature selection, best_models_criterion, the bin language, GA).
Contributor
Author
|
Added a5396d9: the worker exits with a readable message when the engine returns no model, instead of an index error. The underlying Beam issue is fixed in predomics/gpredomics#88 (03a2749). |
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.
What
Web app side of predomics/gpredomics#88 and predomics/gpredomicspy#2. Models of the OR languages replace each feature by a positive disjunctive clause scored by the max of its features; the engine (Beam only) exposes the clause structure through
Individual.get_clauses().Backend
prediction.py: clause-aware scoring (test AUC curve, predict API, validation on new data), language aliases,pow2-orrefused.worker.py: OR models carryclausesandnamed_clausesinresults.json,best_individualgetsclauses. Classic models are unchanged. Works with bindings that have noget_clauses.schemas.py:beam.max_clause_size(default 3) and aRunConfigvalidator refusing an OR language with any algorithm other than beam (422).engine.py:max_clause_sizein the YAML, OR models in the mock results.model_format.py(new): shared readable formula used by the CSV exports (formula row, Clause column, Formula column), the HTML report and the PDF.Frontend
onlyWithoption rule inParamFieldandparamValidation), Max clause size in the Beam section.ModelTerms.vue: one chip per clause (A v B) in the population tab, the basket and the public share view, showing the real coefficient.ModelFormula.vue(new): the best model written as a rule at the top of the Summary and Best Model tabs: positive and negative terms as chips, fraction layout for Ratio, decision threshold with the class names, exact copiable formula, short legend. Works for every language and data type.named_clauses; en/fr translations;docs/parameter_analysis.md.Checks
test_or_languages.pyadds 42). Frontend: 247 tests, lint and build clean.GPREDOMICS_REF=8e0b65d,GPREDOMICSPY_REF=631db79).Not in this PR
The pinned
GPREDOMICS_REF/GPREDOMICSPY_REFin the Dockerfile anddocker-compose.dev.ymlstill point to main. They will be bumped in a separate commit once the engine and bindings PRs are merged; until then the image builds the classic engine and the OR options are refused by the engine at run time.