aglinxinyuan opened a new issue, #9201: URL: https://github.com/apache/texera/issues/9201
### Task Summary The 51 per-model sklearn descriptor specs in `common/workflow-operator` repeat one 79-line template: 25 classifier specs under `operator/sklearn/` and 26 training specs under `operator/sklearn/training/`. Each pins the same five contracts and differs only in the descriptor class, the model name, the sklearn import line, and its family's group and ports. | Contract | What every spec pins | | --- | --- | | `operatorInfo` | name, description, group, input port names, one blocking output | | config defaults | `countVectorizer`, `tfidfTransformer`, `target`, `text` | | `getOutputSchemas` | `model_name` STRING and `model` BINARY on the declared output port | | `generatePythonCode` | the estimator import, `make_pipeline`, the model name | | JSON | the `operatorType` discriminator and a round-trip through `LogicalOp` | Move these five tests into one shared test trait that each spec calls with its own literal model name and import, so each spec shrinks to a few lines. Test names, assertions and coverage stay the same, and the seven specs with extra tests (the naive Bayes family and the decision tree) keep them. ### Task Type - [x] Testing / QA -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
