@memberjunction/predictive-studio 6.2.2 → 6.3.0-edge.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -11
- package/dist/actions/base-predictive-studio.action.d.ts +7 -0
- package/dist/actions/base-predictive-studio.action.d.ts.map +1 -1
- package/dist/actions/base-predictive-studio.action.js +22 -0
- package/dist/actions/base-predictive-studio.action.js.map +1 -1
- package/dist/actions/driver-classes.d.ts +2 -0
- package/dist/actions/driver-classes.d.ts.map +1 -1
- package/dist/actions/driver-classes.js +2 -0
- package/dist/actions/driver-classes.js.map +1 -1
- package/dist/actions/evaluate-drift.action.d.ts +100 -0
- package/dist/actions/evaluate-drift.action.d.ts.map +1 -0
- package/dist/actions/evaluate-drift.action.js +512 -0
- package/dist/actions/evaluate-drift.action.js.map +1 -0
- package/dist/actions/index.d.ts +3 -0
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/index.js +7 -0
- package/dist/actions/index.js.map +1 -1
- package/dist/actions/migrate-pipelines.action.d.ts +19 -0
- package/dist/actions/migrate-pipelines.action.d.ts.map +1 -0
- package/dist/actions/migrate-pipelines.action.js +51 -0
- package/dist/actions/migrate-pipelines.action.js.map +1 -0
- package/dist/actions/promote-model.action.d.ts +12 -1
- package/dist/actions/promote-model.action.d.ts.map +1 -1
- package/dist/actions/promote-model.action.js +7 -2
- package/dist/actions/promote-model.action.js.map +1 -1
- package/dist/actions/promote-model.gate.d.ts +31 -2
- package/dist/actions/promote-model.gate.d.ts.map +1 -1
- package/dist/actions/promote-model.gate.js +84 -5
- package/dist/actions/promote-model.gate.js.map +1 -1
- package/dist/actions/run-experiment.action.d.ts.map +1 -1
- package/dist/actions/run-experiment.action.js +5 -4
- package/dist/actions/run-experiment.action.js.map +1 -1
- package/dist/actions/schedule-model-scoring.action.js +2 -2
- package/dist/actions/schedule-model-scoring.action.js.map +1 -1
- package/dist/actions/score-record-set.action.js +1 -1
- package/dist/actions/score-record-set.action.js.map +1 -1
- package/dist/actions/score-record-set.runner.d.ts +2 -2
- package/dist/actions/score-record-set.runner.js +3 -3
- package/dist/actions/score-record-set.runner.js.map +1 -1
- package/dist/actions/train-model.action.d.ts +28 -25
- package/dist/actions/train-model.action.d.ts.map +1 -1
- package/dist/actions/train-model.action.js +50 -39
- package/dist/actions/train-model.action.js.map +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/modeling-plan-to-pipeline.d.ts +0 -2
- package/dist/agent/modeling-plan-to-pipeline.d.ts.map +1 -1
- package/dist/agent/modeling-plan-to-pipeline.js +30 -39
- package/dist/agent/modeling-plan-to-pipeline.js.map +1 -1
- package/dist/agent/pipeline-builder-agent.d.ts +47 -18
- package/dist/agent/pipeline-builder-agent.d.ts.map +1 -1
- package/dist/agent/pipeline-builder-agent.js +161 -92
- package/dist/agent/pipeline-builder-agent.js.map +1 -1
- package/dist/agent/pipeline-builder.d.ts +178 -56
- package/dist/agent/pipeline-builder.d.ts.map +1 -1
- package/dist/agent/pipeline-builder.js +333 -234
- package/dist/agent/pipeline-builder.js.map +1 -1
- package/dist/experiment/budget.d.ts +61 -0
- package/dist/experiment/budget.d.ts.map +1 -0
- package/dist/experiment/budget.js +72 -0
- package/dist/experiment/budget.js.map +1 -0
- package/dist/experiment/experiment-orchestrator.d.ts +43 -7
- package/dist/experiment/experiment-orchestrator.d.ts.map +1 -1
- package/dist/experiment/experiment-orchestrator.js +130 -33
- package/dist/experiment/experiment-orchestrator.js.map +1 -1
- package/dist/experiment/index.d.ts +2 -0
- package/dist/experiment/index.d.ts.map +1 -1
- package/dist/experiment/index.js +2 -0
- package/dist/experiment/index.js.map +1 -1
- package/dist/experiment/leaderboard.d.ts +15 -15
- package/dist/experiment/leaderboard.d.ts.map +1 -1
- package/dist/experiment/leaderboard.js +44 -18
- package/dist/experiment/leaderboard.js.map +1 -1
- package/dist/experiment/scores.d.ts +32 -0
- package/dist/experiment/scores.d.ts.map +1 -0
- package/dist/experiment/scores.js +62 -0
- package/dist/experiment/scores.js.map +1 -0
- package/dist/experiment/seams.d.ts +23 -20
- package/dist/experiment/seams.d.ts.map +1 -1
- package/dist/experiment/seams.js +54 -56
- package/dist/experiment/seams.js.map +1 -1
- package/dist/experiment/types.d.ts +55 -10
- package/dist/experiment/types.d.ts.map +1 -1
- package/dist/experiment/types.js.map +1 -1
- package/dist/feature-assembly/as-of/as-of-assembler.d.ts +412 -0
- package/dist/feature-assembly/as-of/as-of-assembler.d.ts.map +1 -0
- package/dist/feature-assembly/as-of/as-of-assembler.js +1239 -0
- package/dist/feature-assembly/as-of/as-of-assembler.js.map +1 -0
- package/dist/feature-assembly/as-of/feature-resolution.d.ts +84 -0
- package/dist/feature-assembly/as-of/feature-resolution.d.ts.map +1 -0
- package/dist/feature-assembly/as-of/feature-resolution.js +229 -0
- package/dist/feature-assembly/as-of/feature-resolution.js.map +1 -0
- package/dist/feature-assembly/as-of/index.d.ts +15 -0
- package/dist/feature-assembly/as-of/index.d.ts.map +1 -0
- package/dist/feature-assembly/as-of/index.js +15 -0
- package/dist/feature-assembly/as-of/index.js.map +1 -0
- package/dist/feature-assembly/as-of/read-by-keys.d.ts +30 -0
- package/dist/feature-assembly/as-of/read-by-keys.d.ts.map +1 -0
- package/dist/feature-assembly/as-of/read-by-keys.js +51 -0
- package/dist/feature-assembly/as-of/read-by-keys.js.map +1 -0
- package/dist/feature-assembly/as-of/record-history.d.ts +256 -0
- package/dist/feature-assembly/as-of/record-history.d.ts.map +1 -0
- package/dist/feature-assembly/as-of/record-history.js +505 -0
- package/dist/feature-assembly/as-of/record-history.js.map +1 -0
- package/dist/feature-assembly/as-of/refusal.d.ts +19 -0
- package/dist/feature-assembly/as-of/refusal.d.ts.map +1 -0
- package/dist/feature-assembly/as-of/refusal.js +13 -0
- package/dist/feature-assembly/as-of/refusal.js.map +1 -0
- package/dist/feature-assembly/as-of/series-features.d.ts +65 -0
- package/dist/feature-assembly/as-of/series-features.d.ts.map +1 -0
- package/dist/feature-assembly/as-of/series-features.js +97 -0
- package/dist/feature-assembly/as-of/series-features.js.map +1 -0
- package/dist/feature-assembly/as-of/windowed-aggregate.d.ts +36 -0
- package/dist/feature-assembly/as-of/windowed-aggregate.d.ts.map +1 -0
- package/dist/feature-assembly/as-of/windowed-aggregate.js +99 -0
- package/dist/feature-assembly/as-of/windowed-aggregate.js.map +1 -0
- package/dist/feature-assembly/as-of.d.ts +1 -9
- package/dist/feature-assembly/as-of.d.ts.map +1 -1
- package/dist/feature-assembly/as-of.js +2 -19
- package/dist/feature-assembly/as-of.js.map +1 -1
- package/dist/feature-assembly/assembly-metadata.d.ts +34 -0
- package/dist/feature-assembly/assembly-metadata.d.ts.map +1 -0
- package/dist/feature-assembly/assembly-metadata.js +26 -0
- package/dist/feature-assembly/assembly-metadata.js.map +1 -0
- package/dist/feature-assembly/data-access.d.ts +21 -2
- package/dist/feature-assembly/data-access.d.ts.map +1 -1
- package/dist/feature-assembly/data-access.js +14 -0
- package/dist/feature-assembly/data-access.js.map +1 -1
- package/dist/feature-assembly/feature-assembly-executor.d.ts.map +1 -1
- package/dist/feature-assembly/feature-assembly-executor.js +5 -2
- package/dist/feature-assembly/feature-assembly-executor.js.map +1 -1
- package/dist/feature-assembly/index.d.ts +3 -0
- package/dist/feature-assembly/index.d.ts.map +1 -1
- package/dist/feature-assembly/index.js +3 -0
- package/dist/feature-assembly/index.js.map +1 -1
- package/dist/feature-assembly/leakage-guard.d.ts +1 -1
- package/dist/feature-assembly/leakage-guard.js +1 -1
- package/dist/feature-assembly/read-policy.d.ts +27 -0
- package/dist/feature-assembly/read-policy.d.ts.map +1 -0
- package/dist/feature-assembly/read-policy.js +63 -0
- package/dist/feature-assembly/read-policy.js.map +1 -0
- package/dist/feature-pipelines/feature-pipeline-engine.d.ts.map +1 -1
- package/dist/feature-pipelines/feature-pipeline-engine.js +3 -1
- package/dist/feature-pipelines/feature-pipeline-engine.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/maintenance/index.d.ts +1 -0
- package/dist/maintenance/index.d.ts.map +1 -1
- package/dist/maintenance/index.js +1 -0
- package/dist/maintenance/index.js.map +1 -1
- package/dist/maintenance/maintenance-engine.d.ts +16 -19
- package/dist/maintenance/maintenance-engine.d.ts.map +1 -1
- package/dist/maintenance/maintenance-engine.js +53 -53
- package/dist/maintenance/maintenance-engine.js.map +1 -1
- package/dist/maintenance/metrics.d.ts +19 -15
- package/dist/maintenance/metrics.d.ts.map +1 -1
- package/dist/maintenance/metrics.js +29 -24
- package/dist/maintenance/metrics.js.map +1 -1
- package/dist/maintenance/psi-drift-detector.d.ts +246 -0
- package/dist/maintenance/psi-drift-detector.d.ts.map +1 -0
- package/dist/maintenance/psi-drift-detector.js +1002 -0
- package/dist/maintenance/psi-drift-detector.js.map +1 -0
- package/dist/maintenance/types.d.ts +11 -2
- package/dist/maintenance/types.d.ts.map +1 -1
- package/dist/maintenance/types.js.map +1 -1
- package/dist/migration/index.d.ts +8 -0
- package/dist/migration/index.d.ts.map +1 -0
- package/dist/migration/index.js +8 -0
- package/dist/migration/index.js.map +1 -0
- package/dist/migration/legacy-pipeline-migration.d.ts +138 -0
- package/dist/migration/legacy-pipeline-migration.d.ts.map +1 -0
- package/dist/migration/legacy-pipeline-migration.js +273 -0
- package/dist/migration/legacy-pipeline-migration.js.map +1 -0
- package/dist/operations/delegation.d.ts +58 -46
- package/dist/operations/delegation.d.ts.map +1 -1
- package/dist/operations/delegation.js +90 -77
- package/dist/operations/delegation.js.map +1 -1
- package/dist/operations/promote-model.operation.d.ts +2 -2
- package/dist/operations/promote-model.operation.d.ts.map +1 -1
- package/dist/operations/promote-model.operation.js +6 -2
- package/dist/operations/promote-model.operation.js.map +1 -1
- package/dist/operations/refusals.d.ts +5 -0
- package/dist/operations/refusals.d.ts.map +1 -1
- package/dist/operations/refusals.js +26 -1
- package/dist/operations/refusals.js.map +1 -1
- package/dist/operations/start-experiment-session.operation.js +3 -3
- package/dist/operations/train-model.mapping.d.ts +91 -0
- package/dist/operations/train-model.mapping.d.ts.map +1 -0
- package/dist/operations/train-model.mapping.js +145 -0
- package/dist/operations/train-model.mapping.js.map +1 -0
- package/dist/operations/train-model.operation.d.ts +14 -9
- package/dist/operations/train-model.operation.d.ts.map +1 -1
- package/dist/operations/train-model.operation.js +30 -51
- package/dist/operations/train-model.operation.js.map +1 -1
- package/dist/prediction-unit/decision-date-advance.d.ts +46 -0
- package/dist/prediction-unit/decision-date-advance.d.ts.map +1 -0
- package/dist/prediction-unit/decision-date-advance.js +79 -0
- package/dist/prediction-unit/decision-date-advance.js.map +1 -0
- package/dist/prediction-unit/index.d.ts +12 -0
- package/dist/prediction-unit/index.d.ts.map +1 -0
- package/dist/prediction-unit/index.js +12 -0
- package/dist/prediction-unit/index.js.map +1 -0
- package/dist/prediction-unit/target-validation.d.ts +21 -0
- package/dist/prediction-unit/target-validation.d.ts.map +1 -0
- package/dist/prediction-unit/target-validation.js +54 -0
- package/dist/prediction-unit/target-validation.js.map +1 -0
- package/dist/prediction-unit/unit-row-reader.d.ts +108 -0
- package/dist/prediction-unit/unit-row-reader.d.ts.map +1 -0
- package/dist/prediction-unit/unit-row-reader.js +348 -0
- package/dist/prediction-unit/unit-row-reader.js.map +1 -0
- package/dist/prediction-unit/unit-store.d.ts +28 -0
- package/dist/prediction-unit/unit-store.d.ts.map +1 -0
- package/dist/prediction-unit/unit-store.js +41 -0
- package/dist/prediction-unit/unit-store.js.map +1 -0
- package/dist/prediction-unit/unit-versioning.d.ts +43 -0
- package/dist/prediction-unit/unit-versioning.d.ts.map +1 -0
- package/dist/prediction-unit/unit-versioning.js +71 -0
- package/dist/prediction-unit/unit-versioning.js.map +1 -0
- package/dist/protocol/index.d.ts +9 -0
- package/dist/protocol/index.d.ts.map +1 -0
- package/dist/protocol/index.js +9 -0
- package/dist/protocol/index.js.map +1 -0
- package/dist/protocol/protocol-defaults.d.ts +37 -0
- package/dist/protocol/protocol-defaults.d.ts.map +1 -0
- package/dist/protocol/protocol-defaults.js +59 -0
- package/dist/protocol/protocol-defaults.js.map +1 -0
- package/dist/protocol/protocol-versioning.d.ts +46 -0
- package/dist/protocol/protocol-versioning.d.ts.map +1 -0
- package/dist/protocol/protocol-versioning.js +48 -0
- package/dist/protocol/protocol-versioning.js.map +1 -0
- package/dist/protocol/search-guard.d.ts +45 -0
- package/dist/protocol/search-guard.d.ts.map +1 -0
- package/dist/protocol/search-guard.js +50 -0
- package/dist/protocol/search-guard.js.map +1 -0
- package/dist/scoring/artifact-loader.d.ts +5 -32
- package/dist/scoring/artifact-loader.d.ts.map +1 -1
- package/dist/scoring/artifact-loader.js +4 -59
- package/dist/scoring/artifact-loader.js.map +1 -1
- package/dist/scoring/auto-train.d.ts +25 -5
- package/dist/scoring/auto-train.d.ts.map +1 -1
- package/dist/scoring/auto-train.js +48 -31
- package/dist/scoring/auto-train.js.map +1 -1
- package/dist/scoring/index.d.ts +3 -0
- package/dist/scoring/index.d.ts.map +1 -1
- package/dist/scoring/index.js +3 -0
- package/dist/scoring/index.js.map +1 -1
- package/dist/scoring/ml-model-inference-processor.d.ts +137 -10
- package/dist/scoring/ml-model-inference-processor.d.ts.map +1 -1
- package/dist/scoring/ml-model-inference-processor.js +383 -40
- package/dist/scoring/ml-model-inference-processor.js.map +1 -1
- package/dist/scoring/model-readiness.d.ts +45 -0
- package/dist/scoring/model-readiness.d.ts.map +1 -1
- package/dist/scoring/model-readiness.js +49 -0
- package/dist/scoring/model-readiness.js.map +1 -1
- package/dist/scoring/register.d.ts +8 -3
- package/dist/scoring/register.d.ts.map +1 -1
- package/dist/scoring/register.js +28 -4
- package/dist/scoring/register.js.map +1 -1
- package/dist/scoring/seams.d.ts +18 -2
- package/dist/scoring/seams.d.ts.map +1 -1
- package/dist/scoring/seams.js +35 -10
- package/dist/scoring/seams.js.map +1 -1
- package/dist/scoring/shadow-scoring.d.ts +245 -0
- package/dist/scoring/shadow-scoring.d.ts.map +1 -0
- package/dist/scoring/shadow-scoring.js +510 -0
- package/dist/scoring/shadow-scoring.js.map +1 -0
- package/dist/scoring/startup-register.d.ts +3 -3
- package/dist/scoring/startup-register.d.ts.map +1 -1
- package/dist/scoring/startup-register.js +10 -4
- package/dist/scoring/startup-register.js.map +1 -1
- package/dist/scoring/storage-provider-artifact-loader.d.ts +14 -0
- package/dist/scoring/storage-provider-artifact-loader.d.ts.map +1 -0
- package/dist/scoring/storage-provider-artifact-loader.js +47 -0
- package/dist/scoring/storage-provider-artifact-loader.js.map +1 -0
- package/dist/scoring/training-keys.d.ts +27 -0
- package/dist/scoring/training-keys.d.ts.map +1 -0
- package/dist/scoring/training-keys.js +54 -0
- package/dist/scoring/training-keys.js.map +1 -0
- package/dist/scoring/types.d.ts +72 -7
- package/dist/scoring/types.d.ts.map +1 -1
- package/dist/scoring/types.js +4 -0
- package/dist/scoring/types.js.map +1 -1
- package/dist/sidecar-provider.d.ts +2 -2
- package/dist/sidecar-provider.js +3 -3
- package/dist/snapshot/code-version.d.ts +16 -0
- package/dist/snapshot/code-version.d.ts.map +1 -0
- package/dist/snapshot/code-version.js +39 -0
- package/dist/snapshot/code-version.js.map +1 -0
- package/dist/snapshot/holdout-carver.d.ts +110 -0
- package/dist/snapshot/holdout-carver.d.ts.map +1 -0
- package/dist/snapshot/holdout-carver.js +171 -0
- package/dist/snapshot/holdout-carver.js.map +1 -0
- package/dist/snapshot/index.d.ts +17 -0
- package/dist/snapshot/index.d.ts.map +1 -0
- package/dist/snapshot/index.js +17 -0
- package/dist/snapshot/index.js.map +1 -0
- package/dist/snapshot/snapshot-builder.d.ts +152 -0
- package/dist/snapshot/snapshot-builder.d.ts.map +1 -0
- package/dist/snapshot/snapshot-builder.js +286 -0
- package/dist/snapshot/snapshot-builder.js.map +1 -0
- package/dist/snapshot/snapshot-file-store.d.ts +161 -0
- package/dist/snapshot/snapshot-file-store.d.ts.map +1 -0
- package/dist/snapshot/snapshot-file-store.js +204 -0
- package/dist/snapshot/snapshot-file-store.js.map +1 -0
- package/dist/snapshot/snapshot-hash.d.ts +6 -0
- package/dist/snapshot/snapshot-hash.d.ts.map +1 -0
- package/dist/snapshot/snapshot-hash.js +16 -0
- package/dist/snapshot/snapshot-hash.js.map +1 -0
- package/dist/snapshot/snapshot-manifest.d.ts +43 -0
- package/dist/snapshot/snapshot-manifest.d.ts.map +1 -0
- package/dist/snapshot/snapshot-manifest.js +43 -0
- package/dist/snapshot/snapshot-manifest.js.map +1 -0
- package/dist/snapshot/snapshot-retrainer.d.ts +107 -0
- package/dist/snapshot/snapshot-retrainer.d.ts.map +1 -0
- package/dist/snapshot/snapshot-retrainer.js +194 -0
- package/dist/snapshot/snapshot-retrainer.js.map +1 -0
- package/dist/snapshot/snapshot-serialization.d.ts +99 -0
- package/dist/snapshot/snapshot-serialization.d.ts.map +1 -0
- package/dist/snapshot/snapshot-serialization.js +191 -0
- package/dist/snapshot/snapshot-serialization.js.map +1 -0
- package/dist/snapshot/training-snapshot-store.d.ts +38 -0
- package/dist/snapshot/training-snapshot-store.d.ts.map +1 -0
- package/dist/snapshot/training-snapshot-store.js +41 -0
- package/dist/snapshot/training-snapshot-store.js.map +1 -0
- package/dist/storage/ps-storage-provider.d.ts +108 -0
- package/dist/storage/ps-storage-provider.d.ts.map +1 -0
- package/dist/storage/ps-storage-provider.js +154 -0
- package/dist/storage/ps-storage-provider.js.map +1 -0
- package/dist/training/artifact-store.d.ts +12 -103
- package/dist/training/artifact-store.d.ts.map +1 -1
- package/dist/training/artifact-store.js +13 -137
- package/dist/training/artifact-store.js.map +1 -1
- package/dist/training/compute-cost.d.ts +23 -0
- package/dist/training/compute-cost.d.ts.map +1 -0
- package/dist/training/compute-cost.js +36 -0
- package/dist/training/compute-cost.js.map +1 -0
- package/dist/training/evaluation-protocol-store.d.ts +53 -0
- package/dist/training/evaluation-protocol-store.d.ts.map +1 -0
- package/dist/training/evaluation-protocol-store.js +54 -0
- package/dist/training/evaluation-protocol-store.js.map +1 -0
- package/dist/training/index.d.ts +9 -1
- package/dist/training/index.d.ts.map +1 -1
- package/dist/training/index.js +9 -1
- package/dist/training/index.js.map +1 -1
- package/dist/training/locked-holdout.d.ts +19 -4
- package/dist/training/locked-holdout.d.ts.map +1 -1
- package/dist/training/locked-holdout.js +29 -5
- package/dist/training/locked-holdout.js.map +1 -1
- package/dist/training/seams.d.ts +34 -8
- package/dist/training/seams.d.ts.map +1 -1
- package/dist/training/seams.js +74 -18
- package/dist/training/seams.js.map +1 -1
- package/dist/training/storage-provider-artifact-store.d.ts +49 -0
- package/dist/training/storage-provider-artifact-store.d.ts.map +1 -0
- package/dist/training/storage-provider-artifact-store.js +147 -0
- package/dist/training/storage-provider-artifact-store.js.map +1 -0
- package/dist/training/trainer-model-lineage.d.ts +32 -0
- package/dist/training/trainer-model-lineage.d.ts.map +1 -0
- package/dist/training/trainer-model-lineage.js +62 -0
- package/dist/training/trainer-model-lineage.js.map +1 -0
- package/dist/training/trainer-request.d.ts +50 -0
- package/dist/training/trainer-request.d.ts.map +1 -0
- package/dist/training/trainer-request.js +65 -0
- package/dist/training/trainer-request.js.map +1 -0
- package/dist/training/trainer-result.d.ts +30 -0
- package/dist/training/trainer-result.d.ts.map +1 -0
- package/dist/training/trainer-result.js +40 -0
- package/dist/training/trainer-result.js.map +1 -0
- package/dist/training/training-engine.d.ts +417 -64
- package/dist/training/training-engine.d.ts.map +1 -1
- package/dist/training/training-engine.js +869 -178
- package/dist/training/training-engine.js.map +1 -1
- package/dist/training/training-refusal.d.ts +15 -0
- package/dist/training/training-refusal.d.ts.map +1 -0
- package/dist/training/training-refusal.js +62 -0
- package/dist/training/training-refusal.js.map +1 -0
- package/dist/training/types.d.ts +133 -41
- package/dist/training/types.d.ts.map +1 -1
- package/dist/training/types.js +4 -4
- package/dist/training/unit-model-lineage.d.ts +72 -0
- package/dist/training/unit-model-lineage.d.ts.map +1 -0
- package/dist/training/unit-model-lineage.js +288 -0
- package/dist/training/unit-model-lineage.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +16 -13
- package/dist/operations/__tests__/helpers.d.ts +0 -30
- package/dist/operations/__tests__/helpers.d.ts.map +0 -1
- package/dist/operations/__tests__/helpers.js +0 -44
- package/dist/operations/__tests__/helpers.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy-pipeline-migration.js","sourceRoot":"","sources":["../../src/migration/legacy-pipeline-migration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,OAAO,EAAyC,MAAM,sBAAsB,CAAC;AAEtF,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EACL,eAAe,EAAE,cAAc,EAAE,aAAa,GAE/C,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAmD,MAAM,uCAAuC,CAAC;AAClI,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAG/E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,eAAe,GAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;AAC1F,kEAAkE;AAClE,MAAM,CAAC,MAAM,kBAAkB,GAAG,2CAA2C,CAAC;AA0E9E,0CAA0C;AAC1C,MAAM,OAAO,iBAAiB;IAC5B,kHAAkH;IAC3G,MAAM,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAA6B,EAAE,IAAmB,EAAE,MAAe;QACnH,MAAM,IAAI,GAAG,iBAAiB,CAAC,UAAU,CAAC,CA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,GAAG,CAAC,EAAE,CAAC,CAAG,oDAAoD;YAChJ,MAAM,CAAC,GAAG,MAAM,EAAE,CAAC,OAAO,CACxB,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YAC1J,IAAI,CAAC,CAAC,CAAC,OAAO;gBAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,UAAU,YAAY,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC;YAC1G,MAAM,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACzB,IAAI,GAAG,KAAK,SAAS;gBAAE,OAAO,GAAG,CAAC,OAAO,CAAC;QAC5C,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,QAAQ,CAAC,MAAc;QAC5B,OAAO,IAAI,0BAA0B,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import type { IMetadataProvider, UserInfo } from '@memberjunction/core';
|
|
21
21
|
import { TrainingEngine } from '../training/training-engine.js';
|
|
22
|
-
import type { TrainModelInput, TrainModelResult, TrainingDeps } from '../training/types.js';
|
|
22
|
+
import type { ITrainerEvaluator, TrainModelInput, TrainModelResult, TrainingDeps } from '../training/types.js';
|
|
23
|
+
import { SnapshotRetrainer, type RetrainResult } from '../snapshot/snapshot-retrainer.js';
|
|
23
24
|
import { ExperimentOrchestrator } from '../experiment/experiment-orchestrator.js';
|
|
24
25
|
import type { ExperimentRunOptions, ExperimentSessionResult } from '../experiment/types.js';
|
|
25
26
|
import { ProductionScoreRecordSetRunner } from '../actions/score-record-set.runner.js';
|
|
@@ -28,76 +29,91 @@ import type { IScoreRecordSetRunner, ScoreRecordSetRequest, ScoreRecordSetResult
|
|
|
28
29
|
import type { IModelPromotionGate, PromoteModelRequest, PromoteModelOutcome } from '../actions/promote-model.action.js';
|
|
29
30
|
import type { ModelingPlanSpec, Budget } from '@memberjunction/predictive-studio-core';
|
|
30
31
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* the
|
|
34
|
-
* disk when none is — see {@link ResolveActiveFileStorageProviderId}). Async so the
|
|
35
|
-
* provider lookup is part of the wiring; the scoring side keys off the SAME
|
|
36
|
-
* decision (the composite loader routes by whether the artifact exists on local
|
|
37
|
-
* disk) so a model never gets trained to one family and scored from another.
|
|
38
|
-
*
|
|
39
|
-
* @param provider the owning provider for data access / multi-provider correctness
|
|
40
|
-
* @param user the acting user threaded through every entity op for isolation/audit
|
|
32
|
+
* The training delegation every in-process caller uses: one production deps builder, one train-by-pipeline entry
|
|
33
|
+
* point and one retrain-from-snapshot entry point, so the Train operation, the Train action, auto-train, the pipeline
|
|
34
|
+
* builder and the rigs train (and retrain) the same way.
|
|
41
35
|
*/
|
|
42
|
-
export declare
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
36
|
+
export declare class TrainingDelegation {
|
|
37
|
+
/**
|
|
38
|
+
* Build the {@link TrainingEngine}'s production dependency bundle from a per-call
|
|
39
|
+
* `provider` + `user`. Trained model files and Training Snapshot files go to the one storage provider
|
|
40
|
+
* `PS_STORAGE_PROVIDER` names (default "Local File System"), each recorded as an `MJ: Files` row; the scoring side
|
|
41
|
+
* reads a model file through the provider its row names ({@link StorageProviderArtifactLoader}). The snapshot store and
|
|
42
|
+
* the artifact store share one {@link PredictiveStudioStorage}, and the engine has the artifact store resolve it before
|
|
43
|
+
* anything of the run is written, so a provider not configured on this server refuses the run before training.
|
|
44
|
+
*
|
|
45
|
+
* The Record Changes history the as-of assembly replays is left to the engine's default: a complete-read
|
|
46
|
+
* `RunViewRecordHistoryReader` over the same `dataAccess`. The locked holdout is always the one the bound protocol
|
|
47
|
+
* declares (date-carved, seeded-random or rolling-origin). Snapshots are found by content hash through the same provider and user. A unit pipeline reads the Evaluation Protocol it is bound to through the
|
|
48
|
+
* same provider and user and trains through the trainer (`MJSidecarTrainer` over the process-shared sidecar).
|
|
49
|
+
*
|
|
50
|
+
* @param provider the owning provider for data access / multi-provider correctness
|
|
51
|
+
* @param user the acting user threaded through every entity op for isolation/audit
|
|
52
|
+
*/
|
|
53
|
+
static BuildTrainingDeps(provider: IMetadataProvider, user: UserInfo): Promise<TrainingDeps>;
|
|
54
|
+
/**
|
|
55
|
+
* Train a model by pipeline id, delegating to {@link TrainingEngine.trainModel}
|
|
56
|
+
* with production deps. The `engine` is injectable so unit tests substitute a mock
|
|
57
|
+
* with no live DB / sidecar (mirroring the Action's `createEngine` seam).
|
|
58
|
+
*
|
|
59
|
+
* A refused run throws `TrainingRefusedError` unchanged: the run row already records the
|
|
60
|
+
* refusal, and the operation surfaces its message as the operation's error.
|
|
61
|
+
*
|
|
62
|
+
* @param input the typed training input (pipeline id + optional overrides)
|
|
63
|
+
* @param provider the owning provider
|
|
64
|
+
* @param user the acting user
|
|
65
|
+
* @param engine optional engine override (defaults to a fresh {@link TrainingEngine})
|
|
66
|
+
*/
|
|
67
|
+
static TrainModelViaEngine(input: TrainModelInput, provider: IMetadataProvider, user: UserInfo, engine?: TrainingEngine): Promise<TrainModelResult>;
|
|
68
|
+
/**
|
|
69
|
+
* Retrain a completed unit run from its Training Snapshot with production deps, delegating to
|
|
70
|
+
* {@link SnapshotRetrainer.Retrain}: the stored files are verified against the snapshot row, the logged request is
|
|
71
|
+
* sent again and the holdout metrics are compared.
|
|
72
|
+
*
|
|
73
|
+
* A retraining reproduces only on the trainer the run was trained on, so a caller outside the server that trained it
|
|
74
|
+
* passes that trainer as `trainer`. Without one, the production deps' trainer is used.
|
|
75
|
+
*
|
|
76
|
+
* @param trainingRunId the `MJ: ML Training Runs` row to retrain
|
|
77
|
+
* @param provider the owning provider
|
|
78
|
+
* @param user the acting user
|
|
79
|
+
* @param trainer optional trainer to retrain on (defaults to the production deps' trainer)
|
|
80
|
+
* @param retrainer optional retrainer override (defaults to a fresh {@link SnapshotRetrainer})
|
|
81
|
+
*/
|
|
82
|
+
static RetrainFromSnapshotViaEngine(trainingRunId: string, provider: IMetadataProvider, user: UserInfo, trainer?: ITrainerEvaluator, retrainer?: SnapshotRetrainer): Promise<RetrainResult>;
|
|
83
|
+
}
|
|
58
84
|
/**
|
|
59
85
|
* Whether a training run was leakage-flagged. The engine keeps a flagged model in
|
|
60
86
|
* `Draft` and records a plain-language `LEAKAGE WARNING` in the run's `Notes`
|
|
61
87
|
* (§6.4); this reads that single source of truth so the Remote Op and Action agree.
|
|
62
88
|
*/
|
|
63
89
|
export declare function WasTrainingLeakageFlagged(result: TrainModelResult): boolean;
|
|
64
|
-
/** @deprecated Use {@link WasTrainingLeakageFlagged}. */
|
|
65
|
-
export declare function wasTrainingLeakageFlagged(result: TrainModelResult): boolean;
|
|
66
90
|
/**
|
|
67
91
|
* The production {@link MLInferenceDeps} bundle the scorer runs with — the
|
|
68
92
|
* {@link RunViewMLModelLoader} (loads the `MJ: ML Models` row), the
|
|
69
93
|
* {@link MJSidecarPredictor} (runs `/predict` against the Python sidecar) and the
|
|
70
|
-
* {@link
|
|
71
|
-
* the read-side inverse of `
|
|
94
|
+
* {@link StorageProviderArtifactLoader} (reads the model bytes through the storage provider
|
|
95
|
+
* their `MJ: Files` row names, the read-side inverse of `StorageProviderArtifactStore`; it takes
|
|
96
|
+
* the provider per call, so the bundle needs none). Shared by {@link BuildScoreRecordSetRunner}
|
|
72
97
|
* (the Score action / Remote Op path) AND the startup work-type registration so a model
|
|
73
98
|
* trained one way is always scored the same way — one source of truth (CLAUDE.md DRY).
|
|
74
|
-
*
|
|
75
|
-
* **Production follow-up**: swap `LocalArtifactLoader` for a provider `GetObject`
|
|
76
|
-
* loader; the id contract (read by File id) is unchanged.
|
|
77
99
|
*/
|
|
78
100
|
export declare function BuildProductionMLInferenceDeps(): MLInferenceDeps;
|
|
79
|
-
/** @deprecated Use {@link BuildProductionMLInferenceDeps}. */
|
|
80
|
-
export declare function buildProductionMLInferenceDeps(): MLInferenceDeps;
|
|
81
101
|
/**
|
|
82
102
|
* Build the production scoring runner wired with the production {@link MLInferenceDeps}
|
|
83
103
|
* (see {@link BuildProductionMLInferenceDeps}). No provider lookup is needed at score
|
|
84
104
|
* time — the File id IS the artifact key.
|
|
85
105
|
*/
|
|
86
106
|
export declare function BuildScoreRecordSetRunner(): ProductionScoreRecordSetRunner;
|
|
87
|
-
/** @deprecated Use {@link BuildScoreRecordSetRunner}. */
|
|
88
|
-
export declare function buildScoreRecordSetRunner(): ProductionScoreRecordSetRunner;
|
|
89
107
|
/**
|
|
90
108
|
* Score a record set, delegating to the SAME production runner the Score action
|
|
91
109
|
* uses ({@link ProductionScoreRecordSetRunner} → `MLModelInferenceProcessor`). The
|
|
92
|
-
* default runner is wired with the {@link
|
|
93
|
-
* read
|
|
110
|
+
* default runner is wired with the {@link StorageProviderArtifactLoader} so the artifact is
|
|
111
|
+
* read through the storage provider its `MJ: Files` row names. The `runner` is injectable for tests.
|
|
94
112
|
*
|
|
95
113
|
* @param request the model id + resolved scope + write-back directive + user/provider
|
|
96
114
|
* @param runner optional runner override (defaults to {@link BuildScoreRecordSetRunner})
|
|
97
115
|
*/
|
|
98
116
|
export declare function ScoreRecordSetViaRunner(request: ScoreRecordSetRequest, runner?: IScoreRecordSetRunner): Promise<ScoreRecordSetResult>;
|
|
99
|
-
/** @deprecated Use {@link ScoreRecordSetViaRunner}. */
|
|
100
|
-
export declare function scoreRecordSetViaRunner(request: ScoreRecordSetRequest, runner?: IScoreRecordSetRunner): Promise<ScoreRecordSetResult>;
|
|
101
117
|
/**
|
|
102
118
|
* Start (run) an experiment session. Always refuses with {@link ExperimentSessionsUnavailableError}
|
|
103
119
|
* (no production pipeline resolver exists), before any Experiment, Session or Iteration row is
|
|
@@ -110,8 +126,6 @@ export declare function scoreRecordSetViaRunner(request: ScoreRecordSetRequest,
|
|
|
110
126
|
* @param _orchestrator optional orchestrator override
|
|
111
127
|
*/
|
|
112
128
|
export declare function RunExperimentSessionViaOrchestrator(_plan: ModelingPlanSpec, _options: ExperimentRunOptions, _provider: IMetadataProvider, _user: UserInfo, _orchestrator?: ExperimentOrchestrator): Promise<ExperimentSessionResult>;
|
|
113
|
-
/** @deprecated Use {@link RunExperimentSessionViaOrchestrator}. */
|
|
114
|
-
export declare function runExperimentSessionViaOrchestrator(plan: ModelingPlanSpec, options: ExperimentRunOptions, provider: IMetadataProvider, user: UserInfo, orchestrator?: ExperimentOrchestrator): Promise<ExperimentSessionResult>;
|
|
115
129
|
/**
|
|
116
130
|
* Transition a model's lifecycle status, delegating to the SAME production gate the
|
|
117
131
|
* Promote action uses ({@link ProductionModelPromotionGate}). The `gate` is
|
|
@@ -121,8 +135,6 @@ export declare function runExperimentSessionViaOrchestrator(plan: ModelingPlanSp
|
|
|
121
135
|
* @param gate optional gate override (defaults to {@link ProductionModelPromotionGate})
|
|
122
136
|
*/
|
|
123
137
|
export declare function PromoteModelViaGate(request: PromoteModelRequest, gate?: IModelPromotionGate): Promise<PromoteModelOutcome>;
|
|
124
|
-
/** @deprecated Use {@link PromoteModelViaGate}. */
|
|
125
|
-
export declare function promoteModelViaGate(request: PromoteModelRequest, gate?: IModelPromotionGate): Promise<PromoteModelOutcome>;
|
|
126
138
|
/** Re-export the orchestrator budget type for the operations that map it. */
|
|
127
139
|
export type { Budget };
|
|
128
140
|
//# sourceMappingURL=delegation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegation.d.ts","sourceRoot":"","sources":["../../src/operations/delegation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"delegation.d.ts","sourceRoot":"","sources":["../../src/operations/delegation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAI7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAO5G,OAAO,EAAE,iBAAiB,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAGzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAGpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,oCAAoC,CAAC;AAG5C,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EACV,gBAAgB,EAChB,MAAM,EACP,MAAM,wCAAwC,CAAC;AAIhD;;;;GAIG;AACH,qBAAa,kBAAkB;IAC7B;;;;;;;;;;;;;;;OAeG;WACiB,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,QAAQ,GAAG,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'../training/training-engine.js';
|
|
21
21
|
import { MetadataEntityFactory, RunViewRecordLoader, MJSidecarTrainer } from '../training/seams.js';
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
22
|
+
import { StorageProviderArtifactStore } from '../training/storage-provider-artifact-store.js';
|
|
23
|
+
import { PredictiveStudioStorage } from '../storage/ps-storage-provider.js';
|
|
24
|
+
import { RunViewDataAccess } from '../feature-assembly/data-access.js';
|
|
25
|
+
import { ProviderAssemblyMetadata } from '../feature-assembly/assembly-metadata.js';
|
|
26
|
+
import { RunViewPredictionUnitStore } from '../prediction-unit/unit-store.js';
|
|
27
|
+
import { StorageProviderSnapshotFileStore } from '../snapshot/snapshot-file-store.js';
|
|
28
|
+
import { RunViewTrainingSnapshotStore } from '../snapshot/training-snapshot-store.js';
|
|
29
|
+
import { RunViewEvaluationProtocolStore } from '../training/evaluation-protocol-store.js';
|
|
30
|
+
import { SnapshotRetrainer } from '../snapshot/snapshot-retrainer.js';
|
|
24
31
|
import { ExperimentSessionsUnavailableError } from '../actions/run-experiment.deps.js';
|
|
25
32
|
import { ProductionScoreRecordSetRunner } from '../actions/score-record-set.runner.js';
|
|
26
33
|
import { RunViewMLModelLoader, MJSidecarPredictor } from '../scoring/seams.js';
|
|
27
|
-
import {
|
|
34
|
+
import { StorageProviderArtifactLoader } from '../scoring/storage-provider-artifact-loader.js';
|
|
28
35
|
import { ProductionModelPromotionGate } from '../actions/promote-model.gate.js';
|
|
29
36
|
// ----- Training ---------------------------------------------------------------
|
|
30
37
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* the
|
|
34
|
-
* disk when none is — see {@link ResolveActiveFileStorageProviderId}). Async so the
|
|
35
|
-
* provider lookup is part of the wiring; the scoring side keys off the SAME
|
|
36
|
-
* decision (the composite loader routes by whether the artifact exists on local
|
|
37
|
-
* disk) so a model never gets trained to one family and scored from another.
|
|
38
|
-
*
|
|
39
|
-
* @param provider the owning provider for data access / multi-provider correctness
|
|
40
|
-
* @param user the acting user threaded through every entity op for isolation/audit
|
|
38
|
+
* The training delegation every in-process caller uses: one production deps builder, one train-by-pipeline entry
|
|
39
|
+
* point and one retrain-from-snapshot entry point, so the Train operation, the Train action, auto-train, the pipeline
|
|
40
|
+
* builder and the rigs train (and retrain) the same way.
|
|
41
41
|
*/
|
|
42
|
-
export
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
42
|
+
export class TrainingDelegation {
|
|
43
|
+
/**
|
|
44
|
+
* Build the {@link TrainingEngine}'s production dependency bundle from a per-call
|
|
45
|
+
* `provider` + `user`. Trained model files and Training Snapshot files go to the one storage provider
|
|
46
|
+
* `PS_STORAGE_PROVIDER` names (default "Local File System"), each recorded as an `MJ: Files` row; the scoring side
|
|
47
|
+
* reads a model file through the provider its row names ({@link StorageProviderArtifactLoader}). The snapshot store and
|
|
48
|
+
* the artifact store share one {@link PredictiveStudioStorage}, and the engine has the artifact store resolve it before
|
|
49
|
+
* anything of the run is written, so a provider not configured on this server refuses the run before training.
|
|
50
|
+
*
|
|
51
|
+
* The Record Changes history the as-of assembly replays is left to the engine's default: a complete-read
|
|
52
|
+
* `RunViewRecordHistoryReader` over the same `dataAccess`. The locked holdout is always the one the bound protocol
|
|
53
|
+
* declares (date-carved, seeded-random or rolling-origin). Snapshots are found by content hash through the same provider and user. A unit pipeline reads the Evaluation Protocol it is bound to through the
|
|
54
|
+
* same provider and user and trains through the trainer (`MJSidecarTrainer` over the process-shared sidecar).
|
|
55
|
+
*
|
|
56
|
+
* @param provider the owning provider for data access / multi-provider correctness
|
|
57
|
+
* @param user the acting user threaded through every entity op for isolation/audit
|
|
58
|
+
*/
|
|
59
|
+
static async BuildTrainingDeps(provider, user) {
|
|
60
|
+
const entityFactory = new MetadataEntityFactory(provider);
|
|
61
|
+
// One storage resolution for the run's snapshot files and its model files: one provider, resolved once.
|
|
62
|
+
const storage = new PredictiveStudioStorage(provider, user);
|
|
63
|
+
return {
|
|
64
|
+
entityFactory,
|
|
65
|
+
recordLoader: new RunViewRecordLoader(),
|
|
66
|
+
trainer: new MJSidecarTrainer(),
|
|
67
|
+
artifactStore: new StorageProviderArtifactStore(entityFactory, storage),
|
|
68
|
+
contextUser: user,
|
|
69
|
+
provider,
|
|
70
|
+
// The Prediction Unit seams read through the same provider and user as every other training read.
|
|
71
|
+
predictionUnits: new RunViewPredictionUnitStore(provider, user),
|
|
72
|
+
assemblyMetadata: new ProviderAssemblyMetadata(provider),
|
|
73
|
+
dataAccess: new RunViewDataAccess(user, provider),
|
|
74
|
+
snapshotFiles: new StorageProviderSnapshotFileStore(entityFactory, storage),
|
|
75
|
+
snapshots: new RunViewTrainingSnapshotStore(provider, user),
|
|
76
|
+
protocols: new RunViewEvaluationProtocolStore(provider, user),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Train a model by pipeline id, delegating to {@link TrainingEngine.trainModel}
|
|
81
|
+
* with production deps. The `engine` is injectable so unit tests substitute a mock
|
|
82
|
+
* with no live DB / sidecar (mirroring the Action's `createEngine` seam).
|
|
83
|
+
*
|
|
84
|
+
* A refused run throws `TrainingRefusedError` unchanged: the run row already records the
|
|
85
|
+
* refusal, and the operation surfaces its message as the operation's error.
|
|
86
|
+
*
|
|
87
|
+
* @param input the typed training input (pipeline id + optional overrides)
|
|
88
|
+
* @param provider the owning provider
|
|
89
|
+
* @param user the acting user
|
|
90
|
+
* @param engine optional engine override (defaults to a fresh {@link TrainingEngine})
|
|
91
|
+
*/
|
|
92
|
+
static async TrainModelViaEngine(input, provider, user, engine = new TrainingEngine()) {
|
|
93
|
+
return engine.trainModel(input, await TrainingDelegation.BuildTrainingDeps(provider, user));
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Retrain a completed unit run from its Training Snapshot with production deps, delegating to
|
|
97
|
+
* {@link SnapshotRetrainer.Retrain}: the stored files are verified against the snapshot row, the logged request is
|
|
98
|
+
* sent again and the holdout metrics are compared.
|
|
99
|
+
*
|
|
100
|
+
* A retraining reproduces only on the trainer the run was trained on, so a caller outside the server that trained it
|
|
101
|
+
* passes that trainer as `trainer`. Without one, the production deps' trainer is used.
|
|
102
|
+
*
|
|
103
|
+
* @param trainingRunId the `MJ: ML Training Runs` row to retrain
|
|
104
|
+
* @param provider the owning provider
|
|
105
|
+
* @param user the acting user
|
|
106
|
+
* @param trainer optional trainer to retrain on (defaults to the production deps' trainer)
|
|
107
|
+
* @param retrainer optional retrainer override (defaults to a fresh {@link SnapshotRetrainer})
|
|
108
|
+
*/
|
|
109
|
+
static async RetrainFromSnapshotViaEngine(trainingRunId, provider, user, trainer, retrainer = new SnapshotRetrainer()) {
|
|
110
|
+
const deps = await TrainingDelegation.BuildTrainingDeps(provider, user);
|
|
111
|
+
return retrainer.Retrain(trainingRunId, trainer ? { ...deps, trainer } : deps);
|
|
112
|
+
}
|
|
74
113
|
}
|
|
75
114
|
/**
|
|
76
115
|
* Whether a training run was leakage-flagged. The engine keeps a flagged model in
|
|
@@ -80,29 +119,19 @@ export async function trainModelViaEngine(input, provider, user, engine = new Tr
|
|
|
80
119
|
export function WasTrainingLeakageFlagged(result) {
|
|
81
120
|
return (result.run.Notes ?? '').includes('LEAKAGE WARNING');
|
|
82
121
|
}
|
|
83
|
-
/** @deprecated Use {@link WasTrainingLeakageFlagged}. */
|
|
84
|
-
export function wasTrainingLeakageFlagged(result) {
|
|
85
|
-
return WasTrainingLeakageFlagged(result);
|
|
86
|
-
}
|
|
87
122
|
// ----- Scoring ----------------------------------------------------------------
|
|
88
123
|
/**
|
|
89
124
|
* The production {@link MLInferenceDeps} bundle the scorer runs with — the
|
|
90
125
|
* {@link RunViewMLModelLoader} (loads the `MJ: ML Models` row), the
|
|
91
126
|
* {@link MJSidecarPredictor} (runs `/predict` against the Python sidecar) and the
|
|
92
|
-
* {@link
|
|
93
|
-
* the read-side inverse of `
|
|
127
|
+
* {@link StorageProviderArtifactLoader} (reads the model bytes through the storage provider
|
|
128
|
+
* their `MJ: Files` row names, the read-side inverse of `StorageProviderArtifactStore`; it takes
|
|
129
|
+
* the provider per call, so the bundle needs none). Shared by {@link BuildScoreRecordSetRunner}
|
|
94
130
|
* (the Score action / Remote Op path) AND the startup work-type registration so a model
|
|
95
131
|
* trained one way is always scored the same way — one source of truth (CLAUDE.md DRY).
|
|
96
|
-
*
|
|
97
|
-
* **Production follow-up**: swap `LocalArtifactLoader` for a provider `GetObject`
|
|
98
|
-
* loader; the id contract (read by File id) is unchanged.
|
|
99
132
|
*/
|
|
100
133
|
export function BuildProductionMLInferenceDeps() {
|
|
101
|
-
return { modelLoader: new RunViewMLModelLoader(), sidecar: new MJSidecarPredictor(), artifactLoader: new
|
|
102
|
-
}
|
|
103
|
-
/** @deprecated Use {@link BuildProductionMLInferenceDeps}. */
|
|
104
|
-
export function buildProductionMLInferenceDeps() {
|
|
105
|
-
return BuildProductionMLInferenceDeps();
|
|
134
|
+
return { modelLoader: new RunViewMLModelLoader(), sidecar: new MJSidecarPredictor(), artifactLoader: new StorageProviderArtifactLoader() };
|
|
106
135
|
}
|
|
107
136
|
/**
|
|
108
137
|
* Build the production scoring runner wired with the production {@link MLInferenceDeps}
|
|
@@ -112,15 +141,11 @@ export function buildProductionMLInferenceDeps() {
|
|
|
112
141
|
export function BuildScoreRecordSetRunner() {
|
|
113
142
|
return new ProductionScoreRecordSetRunner({ deps: BuildProductionMLInferenceDeps() });
|
|
114
143
|
}
|
|
115
|
-
/** @deprecated Use {@link BuildScoreRecordSetRunner}. */
|
|
116
|
-
export function buildScoreRecordSetRunner() {
|
|
117
|
-
return BuildScoreRecordSetRunner();
|
|
118
|
-
}
|
|
119
144
|
/**
|
|
120
145
|
* Score a record set, delegating to the SAME production runner the Score action
|
|
121
146
|
* uses ({@link ProductionScoreRecordSetRunner} → `MLModelInferenceProcessor`). The
|
|
122
|
-
* default runner is wired with the {@link
|
|
123
|
-
* read
|
|
147
|
+
* default runner is wired with the {@link StorageProviderArtifactLoader} so the artifact is
|
|
148
|
+
* read through the storage provider its `MJ: Files` row names. The `runner` is injectable for tests.
|
|
124
149
|
*
|
|
125
150
|
* @param request the model id + resolved scope + write-back directive + user/provider
|
|
126
151
|
* @param runner optional runner override (defaults to {@link BuildScoreRecordSetRunner})
|
|
@@ -128,10 +153,6 @@ export function buildScoreRecordSetRunner() {
|
|
|
128
153
|
export function ScoreRecordSetViaRunner(request, runner = BuildScoreRecordSetRunner()) {
|
|
129
154
|
return runner.run(request);
|
|
130
155
|
}
|
|
131
|
-
/** @deprecated Use {@link ScoreRecordSetViaRunner}. */
|
|
132
|
-
export function scoreRecordSetViaRunner(request, runner = buildScoreRecordSetRunner()) {
|
|
133
|
-
return ScoreRecordSetViaRunner(request, runner);
|
|
134
|
-
}
|
|
135
156
|
// ----- Experiment -------------------------------------------------------------
|
|
136
157
|
/**
|
|
137
158
|
* Start (run) an experiment session. Always refuses with {@link ExperimentSessionsUnavailableError}
|
|
@@ -147,10 +168,6 @@ export function scoreRecordSetViaRunner(request, runner = buildScoreRecordSetRun
|
|
|
147
168
|
export async function RunExperimentSessionViaOrchestrator(_plan, _options, _provider, _user, _orchestrator) {
|
|
148
169
|
throw new ExperimentSessionsUnavailableError();
|
|
149
170
|
}
|
|
150
|
-
/** @deprecated Use {@link RunExperimentSessionViaOrchestrator}. */
|
|
151
|
-
export async function runExperimentSessionViaOrchestrator(plan, options, provider, user, orchestrator = new ExperimentOrchestrator()) {
|
|
152
|
-
return RunExperimentSessionViaOrchestrator(plan, options, provider, user, orchestrator);
|
|
153
|
-
}
|
|
154
171
|
// ----- Promotion --------------------------------------------------------------
|
|
155
172
|
/**
|
|
156
173
|
* Transition a model's lifecycle status, delegating to the SAME production gate the
|
|
@@ -163,8 +180,4 @@ export async function runExperimentSessionViaOrchestrator(plan, options, provide
|
|
|
163
180
|
export function PromoteModelViaGate(request, gate = new ProductionModelPromotionGate()) {
|
|
164
181
|
return gate.promote(request);
|
|
165
182
|
}
|
|
166
|
-
/** @deprecated Use {@link PromoteModelViaGate}. */
|
|
167
|
-
export function promoteModelViaGate(request, gate = new ProductionModelPromotionGate()) {
|
|
168
|
-
return PromoteModelViaGate(request, gate);
|
|
169
|
-
}
|
|
170
183
|
//# sourceMappingURL=delegation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegation.js","sourceRoot":"","sources":["../../src/operations/delegation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACjG,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"delegation.js","sourceRoot":"","sources":["../../src/operations/delegation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,0BAA0B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6BAA6B,EAAE,EAAE,CAAC;AAC7I,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB;IACvC,OAAO,IAAI,8BAA8B,CAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE,EAAE,CAAC,CAAC;AACxF,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAA8B,EAC9B,SAAgC,yBAAyB,EAAE;IAE3D,OAAO,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC7B,CAAC;AAED,iFAAiF;AAEjF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,mCAAmC,CACvD,KAAuB,EACvB,QAA8B,EAC9B,SAA4B,EAC5B,KAAe,EACf,aAAsC;IAEtC,MAAM,IAAI,kCAAkC,EAAE,CAAC;AACjD,CAAC;AAED,iFAAiF;AAEjF;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CACjC,OAA4B,EAC5B,OAA4B,IAAI,4BAA4B,EAAE;IAE9D,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/B,CAAC"}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* {@link PromoteModelViaGate}. The gate touches ONLY the `Status` (the model is
|
|
14
14
|
* immutable, §6.4).
|
|
15
15
|
*
|
|
16
|
-
* Non-promoted outcomes (leakage refusal, missing reason,
|
|
17
|
-
* found, save failure) are surfaced as a thrown error so the framework wraps them as
|
|
16
|
+
* Non-promoted outcomes (leakage refusal, missing reason, calibration hold, a model
|
|
17
|
+
* `/predict` does not serve, invalid transition, not found, save failure) are surfaced as a thrown error so the framework wraps them as
|
|
18
18
|
* a clean `EXECUTION_ERROR` result; the message preserves the plain-language detail
|
|
19
19
|
* the Action also surfaces.
|
|
20
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promote-model.operation.d.ts","sourceRoot":"","sources":["../../src/operations/promote-model.operation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAExE,OAAO,EACL,qCAAqC,EACrC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACxC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAIzC;;;;;GAKG;AACH,qBACa,2CAA4C,SAAQ,qCAAqC;IACpG,kBAAkB;cACF,eAAe,CAC7B,KAAK,EAAE,iCAAiC,EACxC,QAAQ,EAAE,iBAAiB,EAC3B,IAAI,EAAE,QAAQ,GACb,OAAO,CAAC,kCAAkC,CAAC;IAuB9C;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,CAChB,KAAK,EAAE,iCAAiC,EACxC,OAAO,EAAE,mBAAmB,GAC3B,kCAAkC;
|
|
1
|
+
{"version":3,"file":"promote-model.operation.d.ts","sourceRoot":"","sources":["../../src/operations/promote-model.operation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAExE,OAAO,EACL,qCAAqC,EACrC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACxC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAIzC;;;;;GAKG;AACH,qBACa,2CAA4C,SAAQ,qCAAqC;IACpG,kBAAkB;cACF,eAAe,CAC7B,KAAK,EAAE,iCAAiC,EACxC,QAAQ,EAAE,iBAAiB,EAC3B,IAAI,EAAE,QAAQ,GACb,OAAO,CAAC,kCAAkC,CAAC;IAuB9C;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,CAChB,KAAK,EAAE,iCAAiC,EACxC,OAAO,EAAE,mBAAmB,GAC3B,kCAAkC;IA0BrC,uFAAuF;IACvF,SAAS,CAAC,qBAAqB,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,CAAC,mBAAmB,EAAE;QAAE,IAAI,EAAE,iBAAiB,CAAA;KAAE,CAAC,GACjE,MAAM;IAWT,qFAAqF;IACrF,SAAS,CAAC,4BAA4B,CACpC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,OAAO,CAAC,mBAAmB,EAAE;QAAE,IAAI,EAAE,yBAAyB,CAAA;KAAE,CAAC,GACzE,MAAM;IAWT;;;;OAIG;IACH,SAAS,CAAC,IAAI,IAAI,mBAAmB;CAGtC;AAED,sFAAsF;AACtF,wBAAgB,yCAAyC,IAAI,IAAI,CAEhE"}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* {@link PromoteModelViaGate}. The gate touches ONLY the `Status` (the model is
|
|
14
14
|
* immutable, §6.4).
|
|
15
15
|
*
|
|
16
|
-
* Non-promoted outcomes (leakage refusal, missing reason,
|
|
17
|
-
* found, save failure) are surfaced as a thrown error so the framework wraps them as
|
|
16
|
+
* Non-promoted outcomes (leakage refusal, missing reason, calibration hold, a model
|
|
17
|
+
* `/predict` does not serve, invalid transition, not found, save failure) are surfaced as a thrown error so the framework wraps them as
|
|
18
18
|
* a clean `EXECUTION_ERROR` result; the message preserves the plain-language detail
|
|
19
19
|
* the Action also surfaces.
|
|
20
20
|
*/
|
|
@@ -68,6 +68,10 @@ let PredictiveStudioPromoteModelServerOperation = class PredictiveStudioPromoteM
|
|
|
68
68
|
throw new Error(this.leakageRefusalMessage(input.modelId, outcome));
|
|
69
69
|
case 'signoff-reason-required':
|
|
70
70
|
throw new Error(this.signOffReasonRequiredMessage(input.modelId, outcome));
|
|
71
|
+
case 'refused-calibration':
|
|
72
|
+
throw new Error(ProductionModelPromotionGate.CalibrationRefusalMessage(input.modelId, outcome.slope));
|
|
73
|
+
case 'not-servable':
|
|
74
|
+
throw new Error(outcome.message);
|
|
71
75
|
case 'invalid-transition':
|
|
72
76
|
throw new Error(`Model ${input.modelId} cannot move from '${outcome.currentStatus}' to '${outcome.targetStatus}'. ` +
|
|
73
77
|
'Allowed lifecycle: Draft → Validated → Published → Archived (with Published ↔ Archived).');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promote-model.operation.js","sourceRoot":"","sources":["../../src/operations/promote-model.operation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EACL,qCAAqC,GAGtC,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD;;;;;GAKG;AAEI,IAAM,2CAA2C,GAAjD,MAAM,2CAA4C,SAAQ,qCAAqC;IACpG,kBAAkB;IACR,KAAK,CAAC,eAAe,CAC7B,KAAwC,EACxC,QAA2B,EAC3B,IAAc;QAEd,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACzC,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;QACvF,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,mBAAmB,CACvC;YACE,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,OAAO,EAAE,KAAK,CAAC,OAAO,IAAI,KAAK;YAC/B,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,WAAW,EAAE,IAAI;YACjB,QAAQ;SACT,EACD,IAAI,CAAC,IAAI,EAAE,CACZ,CAAC;QAEF,OA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AAC,OAAO,CAAC,CAAC,CAAC,oGAAoG;YACvM,CAAC,CAAC,EAAE,CAAC;QACT,OAAO,CACL,SAAS,OAAO,oFAAoF,MAAM,GAAG;YAC7G,+HAA+H,CAChI,CAAC;IACJ,CAAC;IAED,qFAAqF;IAC3E,4BAA4B,CACpC,OAAe,EACf,OAA0E;QAE1E,MAAM,MAAM,GACV,OAAO,CAAC,UAAU,IAAI,IAAI;YACxB,CAAC,CAAC,mBAAmB,OAAO,CAAC,UAAU,wCAAwC;YAC/E,CAAC,CAAC,EAAE,CAAC;QACT,OAAO,CACL,SAAS,OAAO,sBAAsB,MAAM,mDAAmD;YAC/F,qFAAqF,CACtF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACO,IAAI;QACZ,OAAO,IAAI,4BAA4B,EAAE,CAAC;IAC5C,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"promote-model.operation.js","sourceRoot":"","sources":["../../src/operations/promote-model.operation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EACL,qCAAqC,GAGtC,MAAM,+BAA+B,CAAC;AAMvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD;;;;;GAKG;AAEI,IAAM,2CAA2C,GAAjD,MAAM,2CAA4C,SAAQ,qCAAqC;IACpG,kBAAkB;IACR,KAAK,CAAC,eAAe,CAC7B,KAAwC,EACxC,QAA2B,EAC3B,IAAc;QAEd,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACzC,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;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sBAAsB;AACxB,CAAC"}
|
|
@@ -10,6 +10,11 @@ import { type PredictiveStudioRefusalCode } from '@memberjunction/predictive-stu
|
|
|
10
10
|
export declare class PredictiveStudioRefusals {
|
|
11
11
|
/** The refusal code for a Predictive Studio refusal error; null for any other error. */
|
|
12
12
|
static CodeOf(e: Error): PredictiveStudioRefusalCode | null;
|
|
13
|
+
/**
|
|
14
|
+
* The code of a refused training run, read off its refusal kind. Kinds without a code return null, so the operation
|
|
15
|
+
* reports `EXECUTION_ERROR`; the detailed kind and stage stay in the run's `ValidationResults.refusal`.
|
|
16
|
+
*/
|
|
17
|
+
private static trainingRefusalCode;
|
|
13
18
|
/** The operation's server-side run with refusal errors returned as their codes. */
|
|
14
19
|
static ExecuteServer<TOut>(authorize: () => Promise<boolean>, execute: () => Promise<TOut>, operationKey: string): Promise<RemoteOpResult<TOut>>;
|
|
15
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refusals.d.ts","sourceRoot":"","sources":["../../src/operations/refusals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAoC,KAAK,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"refusals.d.ts","sourceRoot":"","sources":["../../src/operations/refusals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAoC,KAAK,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAO5H;;;;;;GAMG;AACH,qBAAa,wBAAwB;IACnC,wFAAwF;WAC1E,MAAM,CAAC,CAAC,EAAE,KAAK,GAAG,2BAA2B,GAAG,IAAI;IAalE;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAgBlC,mFAAmF;WAC/D,aAAa,CAAC,IAAI,EACpC,SAAS,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,EACjC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAC5B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;CAWjC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { InvalidMajorityBaselineRuleError } from '@memberjunction/predictive-studio-core';
|
|
2
2
|
import { ReadCapExceededError } from '../feature-assembly/read-cap-error.js';
|
|
3
|
+
import { TrainingRefusedError } from '../training/training-refusal.js';
|
|
3
4
|
import { AsOfSettingHasNoEffectError } from '../training/as-of-refusal.js';
|
|
4
|
-
import { ModelNotScorableError, ModelNeedsTrainingError } from '../scoring/model-readiness.js';
|
|
5
|
+
import { ModelNotScorableError, ModelNeedsTrainingError, ModelNotServableError } from '../scoring/model-readiness.js';
|
|
5
6
|
import { ExperimentSessionsUnavailableError } from '../actions/run-experiment.deps.js';
|
|
6
7
|
/**
|
|
7
8
|
* Turns Predictive Studio refusal errors into typed `ResultCode`s on the operation result.
|
|
@@ -15,18 +16,42 @@ export class PredictiveStudioRefusals {
|
|
|
15
16
|
static CodeOf(e) {
|
|
16
17
|
if (e instanceof ReadCapExceededError)
|
|
17
18
|
return 'READ_CAP_EXCEEDED';
|
|
19
|
+
if (e instanceof TrainingRefusedError)
|
|
20
|
+
return PredictiveStudioRefusals.trainingRefusalCode(e);
|
|
21
|
+
// A modeling plan that asks for point-in-time assembly is refused before any pipeline exists (the pipeline builder).
|
|
18
22
|
if (e instanceof AsOfSettingHasNoEffectError)
|
|
19
23
|
return 'AS_OF_NO_EFFECT';
|
|
20
24
|
if (e instanceof ModelNotScorableError)
|
|
21
25
|
return 'MODEL_NOT_SCORABLE';
|
|
22
26
|
if (e instanceof ModelNeedsTrainingError)
|
|
23
27
|
return 'MODEL_NEEDS_TRAINING';
|
|
28
|
+
if (e instanceof ModelNotServableError)
|
|
29
|
+
return 'MODEL_NOT_SERVABLE';
|
|
24
30
|
if (e instanceof ExperimentSessionsUnavailableError)
|
|
25
31
|
return 'EXPERIMENT_SESSIONS_UNAVAILABLE';
|
|
26
32
|
if (e instanceof InvalidMajorityBaselineRuleError)
|
|
27
33
|
return 'INVALID_EVALUATION_SETTING';
|
|
28
34
|
return null;
|
|
29
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* The code of a refused training run, read off its refusal kind. Kinds without a code return null, so the operation
|
|
38
|
+
* reports `EXECUTION_ERROR`; the detailed kind and stage stay in the run's `ValidationResults.refusal`.
|
|
39
|
+
*/
|
|
40
|
+
static trainingRefusalCode(e) {
|
|
41
|
+
const reason = e.Refusal.reason;
|
|
42
|
+
switch (reason.kind) {
|
|
43
|
+
case 'unit-required': return 'UNIT_REQUIRED';
|
|
44
|
+
// The asOf input still has no effect; it is now refused by name instead of being ignored.
|
|
45
|
+
case 'input-not-accepted': return reason.input === 'asOf' ? 'AS_OF_NO_EFFECT' : null;
|
|
46
|
+
case 'decision-date-before-change-history':
|
|
47
|
+
case 'select-changes-after-decision-date': return 'AS_OF_SOURCE_UNDATED';
|
|
48
|
+
case 'protocol-required': return 'PROTOCOL_REQUIRED';
|
|
49
|
+
case 'time-index-needs-time-holdout': return 'TIME_HOLDOUT_REQUIRED';
|
|
50
|
+
// Only a stop at the compute budget has a code; every other trainer stage is reported as a failure.
|
|
51
|
+
case 'trainer-failed': return reason.stage === 'budget-exceeded' ? 'BUDGET_EXCEEDED' : null;
|
|
52
|
+
default: return null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
30
55
|
/** The operation's server-side run with refusal errors returned as their codes. */
|
|
31
56
|
static async ExecuteServer(authorize, execute, operationKey) {
|
|
32
57
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refusals.js","sourceRoot":"","sources":["../../src/operations/refusals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gCAAgC,EAAoC,MAAM,wCAAwC,CAAC;AAC5H,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,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