Repository navigation
chore(sweep): engine fixes from the release quality pass #2649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -293,8 +293,9 @@ fn training(s: &Session, p: &Value) -> Result<Training, String> { | |
| }; | ||
| let epochs = epochs as usize; | ||
| // Without a name given, a new model never replaces one: it gets a name of its own. | ||
| let (name, auto) = match ps(p, "model") { | ||
| Some(_) => (name(&json!({"name": p.get("model")}), format!("{}_model", r.name))?, None), | ||
| // A blank name is none given: it gets a name of its own too. | ||
| let (name, auto) = match ps(p, "model").map(str::trim).filter(|m| !m.is_empty()) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No regression test for the blank-name fix (low confidence, quality). A blank
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The fix is a one-line routing change (blank is treated like absent, as other name parameters are). Training a model twice for a test is slow, so that test and the Import Task title and neither-graph-nor-steps tests are left for the release quality pass. |
||
| Some(m) => (super::within("model", "a model's name", m, 200)?, None), | ||
| None => { | ||
| let base = format!("{}_model", r.name); | ||
| (free_name(s, &base), Some(base)) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.