Skip to content

v0.9.6

Choose a tag to compare

@github-actions github-actions released this 24 Oct 15:14
· 49 commits to master since this release
6f48a13
  • Security: generated projects pin mlflow==3.17.2 (was 3.16.1; GHSA-wqmh-qccw-pqwf,
    GHSA-2wqp-q3c6-ccj5). The lock file also moves pillow, certifi, filelock,
    gitpython, nbconvert and virtualenv to patched releases. Existing projects can
    raise their own mlflow pin; already trained models keep their saved requirements.
  • GUIDE.md is easier to start from: a "How do I" table, short definitions of the
    terms it uses, plain bullets for source keys, and copyable YAML for a preprocessing
    recipe, a pre-split filter, a fixed model with a quality threshold, scoring
    eligibility rules and turning on monitoring.
    It also shows a custom Python step end to end, how to add serving to a batch
    project, where the feature-table example lives, monitoring setup as ordered steps,
    scoring behaviour as plain bullets and a "what failed / what to do" table.
    Gaps found by two fresh readers (Sonnet and Haiku, guides only) are closed: which
    recipe runs by default, what to do after changing each file, which metric the
    quality threshold uses, that derived columns reach the model, inclusive scoring
    bounds, mode: combined, the project init command, the warehouse ID and the
    monitoring store when setup had monitoring off.
  • Generated Databricks projects now ship two guides instead of 14: README.md for
    the first run (former START_HERE.md, plus a short learning exercise) and
    GUIDE.md for settings and operations (former SOURCES.md, TRAINING.md,
    PREPROCESSING*.md, SCORING.md, SERVING.md, FEATURE_TABLES.md and the
    deployment/, src/features/, src/monitoring/ and src/tools/ READMEs).
    Existing projects keep their files; when upgrading, the old guides can be
    replaced by the two new ones. Config comments point to GUIDE.md sections.
  • Databricks template: define every Bundle target in deployment/targets.yml
    only, so CI rules that allow targets: in one file pass. Per-target monitoring,
    development monitoring and dashboard create/connect settings moved there from
    the removed deployment/monitoring.yml. refresh_feature_graph no longer writes
    targets: into resources/features.job.yml; it prints the feature job's
    per-target run_as/permissions, and smoke fails until they are merged (or until
    leftover entries are removed after feature groups are turned off).
  • Personal development targets keep the project in job names
    ([dev <user>] <project>_train) instead of short dev_<user>_train names that
    collided across projects deployed by one identity.
  • Jobs no longer render an empty health block, which failed bundle deploy with
    the Terraform engine. The *_health_rules variables are removed; add duration
    warnings as health.rules on a job under a target in targets.yml.
  • Policy-cluster projects define the job cluster once, in the complex job_cluster
    variable used by the train, score, serving and feature jobs. Add fields a cluster
    policy requires (data_security_mode, runtime_engine, use_ml_runtime, ...)
    there instead of editing each job file.
  • Init answer files accept output_schema and metadata_schema next to schema
    (now the input schema), so test variables, preview.py and smoke.py resolve
    outputs and models in the right schema. Blank values keep using schema. The
    project setup guide shows how to run bundle init without valid credentials.
  • New init-file answer include_examples (default true). false generates the
    project without example recipes, example callback files and feature-group
    examples, so they no longer have to be deleted by hand.
  • First run for a single model with batch scoring: START_HERE.md no longer sends a
    pinned project through approval. Step 5 scores the registered version for one run
    (--params score_model_version=N); approval is an optional later step for champion
    scoring; with score_follow_champion it notes that approval starts a score run.
    Monitoring steps appear only when monitoring is on. The monitoring
    question now comes before the outcome-table questions, which a single_table
    project without monitoring no longer asks (quick setup: 12 questions instead of 14).
  • Spark drift for 1,000-10,000 rows per side now uses SciPy's exact two-sample KS
    count, the same one local ks_2samp uses. The conservative DKW bound used before
    could never reject without drift, so healthy data showed every feature's
    statistical evidence as unavailable and the model as degraded. The bound
    remains the fallback if SciPy's helper is unavailable.
  • README's learning exercise is concrete: pin training_table_version to the first
    report's Delta version, change one setting (before/after n_trials YAML), retrain,
    then compare both reports and score the new version for one run. A
    "Unity Catalog grants" row links the required access table.
  • Registered model versions now appear in the experiment's Models tab: after
    registration, Skyulf adds a metadata-only MLflow 3 LoggedModel linked to the fitting
    run, tagged with the registered name, version and run URI and carrying the run's
    metrics. The run artifact stays the only model copy and the registry source; a
    backend without LoggedModels logs a warning and registration continues.
  • Single entry point: with the new features_start_training: "true" Bundle variable,
    the features job starts the train job after merge_features, so one scheduled job
    runs features, training and the training's score handoff (and scoring's monitoring).
    Default "false"; run refresh_feature_graph.py to add the tasks to an existing job.
  • GUIDE.md names the upgrade-safe places to customize a project (src/features/,
    deployment/, the SKYULF_MODEL_PIP_* packaging variables) and says not to
    edit src/jobs/*.py, which a template upgrade replaces.
  • config/features.yml table names accept the training.yml placeholders
    ({catalog}, {input_schema}, {output_schema}, {metadata_schema},
    {resource_suffix}). The feature job receives each target's values, so one file
    serves every target and personal outputs no longer collide. Existing feature
    projects run refresh_feature_graph.py and redeploy before using placeholders;
    the refresh now writes LF line endings on every OS.
  • Serving projects: the README's serving steps name the version for one run
    (serving_endpoint --params model_version=N), show where the run output proves
    what is live (model_uri, REST/SQL verification) and where the call examples are;
    the preview summary adds the same serving line for endpoint and both delivery.
  • src/tools/preview.py starts with a short summary for a single model or competition:
    training settings, holdout, activation (including a missing quality_threshold),
    the scored version, and what it did not check (Core: preview_summary).
  • Serving: an owned endpoint whose first deployment failed (no served entity) is
    repaired on the next run instead of failing with "exactly one served entity",
    so it no longer has to be deleted by hand.
  • Serving: new optional function_permissions in config/serving.yml lists the
    Unity Catalog grantees for the SQL function's EXECUTE separately from the
    endpoint's CAN_QUERY callers. Unity Catalog rejects workspace-local groups
    such as users. Omitted, both grants keep using permissions.
  • SHAP: when the encoded feature width exceeds max_features, the explanation
    result now records feature_count and max_features, and preview.py warns
    when the recipe contains a column-expanding step such as OneHotEncoder.
  • config/training.yml: allow_tested_custom_steps is renamed
    probe_pipeline_for_serving, because it checks the whole pipeline for Spark and
    endpoint serving, not only custom steps. The old name is still accepted; setting
    both fails.
  • MLflow: experiments are created with mlflow.experimentKind=custom_model_development
    (added to an existing experiment that has no kind), so Databricks lists them
    under "Machine learning".
  • Serving SQL function: a NULL in an integer or boolean input that had no missing
    values in training now raises an error naming the column. ai_query used to
    send it as 0/false, which bypassed the fitted imputers. Existing functions
    with such inputs are replaced once on the next serving run.
  • Model packages: new opt-in environment variables SKYULF_MODEL_PIP_INDEX_URL,
    SKYULF_MODEL_PIP_EXTRA_INDEX_URLS and SKYULF_MODEL_PIP_BUNDLE_WHEELS let
    Model Serving install from a private index, or from dependency wheels saved in
    the model with --no-index, when public PyPI is blocked. Unset, logged models
    are unchanged.
  • Record keys: DATE/TIMESTAMP key errors now name the column and say how to store
    it (yyyy-MM-dd STRING or yyyyMMdd BIGINT). The features guide documents the
    ready-training-table route with a natural composite key.
  • Training: without training_sample_rows, rows removed by
    filter_unavailable_results (and, in multi_target, rows whose branch target is
    missing) are now dropped on Spark before the max_rows limit, so full-snapshot
    sources with many unlabeled rows no longer fail. Saved evidence is unchanged; existing models
    replay as before.
  • Casting to string writes integral floats without .0 in newly fitted models
    ("81", not "81.0"), so nullable integer codes match fixed one-hot
    categories. Saved models keep their text. OneHotEncoder warns when a column
    matches none of its fixed categories.
  • Features: optional base_transform: src/features/<module>.py:<function> in
    config/features.yml runs on the pinned base before group joins, so the target
    and record keys can be derived from a raw table without a separate job. It works
    with no groups; the job then has only initialize and merge tasks.
  • config/training.yml: new skip_missing_targets skips rows whose target is
    empty instead of failing (they do not count toward max_rows). New single-model
    and competition projects write true; omitted, behavior is unchanged.
    multi_target keeps skipping empty branch targets.
  • Features: sources without Delta history (streaming tables, materialized views,
    views) are copied each run into an owned skyulf_src_<hash> Delta table that is
    pinned instead and dropped after a successful merge; source_snapshot: fail
    turns the copy off and stops with a clear message. base_transform lives under
    src/features/groups/, outside model packages. Training from such a
    table stops with a clear message too. Feature plan digests ignore optional fields
    left at their defaults, so deployed feature jobs stay current after upgrading.
  • New prepared example examples/lakeflow/bronze_observations: train from a
    Lakeflow streaming table with base_transform deriving the target and a text
    date key, with a setup.sql for the demo data.
  • Scoring with on_model_change: rescore_all: after the view switches to a new
    _v<n> generation, older generations are dropped automatically, keeping the
    newest two (keep_prediction_generations, null keeps all). Only tables tagged
    as the same model's full-rebuild output are dropped; the active one never is.
  • The weekly monitoring cleanup finishes with store_not_initialized instead of
    failing when it runs before any model has created the monitoring store.