apache / apache/texera

Export the four advanced trainers, and write their hyperparameter rules into the schema

Open
#8,420 0 comments 0 reactions 1 assignee Claimed by @kz930 View on GitHub
Dominant language
Scala
Stars
314
Forks
187
Avg merge
1d 21h
Merged PRs (30d)
214

Description

### Task Summary

The four advanced trainers implement `StandaloneCodeGenerator`. Each reads its hyperparameters from a table the user fills in rather than from fields of its own, so the script has to resolve, for every row, which parameter was chosen and what converter its value passes through before it reaches the estimator.

`JsonSchemaCustomizer` and its caller in `OperatorMetadataGenerator` come along because these four implement it. The rules a hyperparameter's value follows, the set it may take and the bound it must respect, are written into the schema at generation time, and without the call the schema carries none of them.

The KNN, SVC and SVR parameter tables gain the accepted values and the bounds each parameter actually admits, read from scikit-learn's own constraints rather than from recall.

Step 18 of 27 in #8325. It needs #8327 for the trait. The label column offered as one of its own inputs is filed separately as #8010 and closes with this work; #7979, #7952 and #7936 are part-of, since each is only fixed once the panel half in the editor step lands too.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.