This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:ai:ml-pipeline-test [2025/06/06 13:27] – ddehamer | wiki:ai:ml-pipeline-test [2025/06/06 13:46] (current) – ddehamer | ||
|---|---|---|---|
| Line 45: | Line 45: | ||
| print(" | print(" | ||
| </ | </ | ||
| - | |||
| - | Download | ||
| - | |||
| - | Download | ||
| NOTE: The print statements on the end were for troubleshooting and shouldn' | NOTE: The print statements on the end were for troubleshooting and shouldn' | ||
| Line 188: | Line 184: | ||
| ml_client.jobs.stream(pipeline_job.name) | ml_client.jobs.stream(pipeline_job.name) | ||
| </ | </ | ||
| - | |||
| - | Download | ||
| - | |||
| - | Download | ||
| NOTE: This is ran from the Notebook, not from a python script. | NOTE: This is ran from the Notebook, not from a python script. | ||
| Line 446: | Line 438: | ||
| <code -> | <code -> | ||
| pythonCopyEditinput_data=Input(type=AssetTypes.URI_FILE, | pythonCopyEditinput_data=Input(type=AssetTypes.URI_FILE, | ||
| - | |||
| </ | </ | ||
| Line 503: | Line 494: | ||
| | Different data columns or prediction target | 🔁 | Modify '' | | Different data columns or prediction target | 🔁 | Modify '' | ||
| | More complex workflow (e.g., evaluation, deployment) | 🔁 | Add steps and new component scripts | | | More complex workflow (e.g., evaluation, deployment) | 🔁 | Add steps and new component scripts | | ||
| + | |||
| + | ===== How to Deploy Model ===== | ||
| + | |||
| + | ==== ✅ High-Level Overview ==== | ||
| + | |||
| + | - **Prepare Scoring Script ('' | ||
| + | - **Create Inference Environment** | ||
| + | - **Register the Trained Model** | ||
| + | - **Create an Online Endpoint** | ||
| + | - **Deploy the Model to the Endpoint** | ||
| + | - **Test the Deployed Service** | ||
| + | |||
| + | ====== Errors Encountered During Session ====== | ||
| + | |||
| + | ===== 🔁 Environment Definition Issue ===== | ||
| + | |||
| + | ==== ❌ Problem: ==== | ||
| + | |||
| + | The '' | ||
| + | |||
| + | ==== ✅ Solution: ==== | ||
| + | |||
| + | The '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== 🔁 Dataset Reference Issue ===== | ||
| + | |||
| + | ==== ❌ Problem: ==== | ||
| + | |||
| + | When submitting the pipeline, Azure ML failed to resolve the dataset because the dataset path was given as ''" | ||
| + | |||
| + | ==== ✅ Solution: ==== | ||
| + | |||
| + | The dataset path was updated to use the full Azure ML URI syntax: ''" | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== 🔁 Output Not Persisted ===== | ||
| + | |||
| + | ==== ❌ Problem: ==== | ||
| + | |||
| + | Even though the '' | ||
| + | |||
| + | ==== ✅ Root Cause: ==== | ||
| + | |||
| + | The output directory was not explicitly registered in the pipeline job, and Azure ML silently discarded it. | ||
| + | |||
| + | ==== ✅ Solution: ==== | ||
| + | |||
| + | The pipeline job was updated to explicitly register '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== 🔁 Missing Script Execution ===== | ||
| + | |||
| + | ==== ❌ Problem: ==== | ||
| + | |||
| + | The '' | ||
| + | |||
| + | ==== ✅ Root Cause: ==== | ||
| + | |||
| + | The wrong '' | ||
| + | |||
| + | ==== ✅ Solution: ==== | ||
| + | |||
| + | The correct file (''/ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== 🔁 Scoping Error in train.py ===== | ||
| + | |||
| + | ==== ❌ Problem: ==== | ||
| + | |||
| + | Print statements accessing '' | ||
| + | |||
| + | ==== ✅ Solution: ==== | ||
| + | |||
| + | The logging and '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== 🔁 Model Download Error ===== | ||
| + | |||
| + | ==== ❌ Problem: ==== | ||
| + | |||
| + | An attempt to use the '' | ||
| + | |||
| + | ==== ✅ Solution: ==== | ||
| + | |||
| + | The '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== 🔁 Silent Step Failure Due to Typo ===== | ||
| + | |||
| + | ==== ❌ Problem: ==== | ||
| + | |||
| + | The dataset path was mistyped as ''" | ||
| + | |||
| + | ==== ✅ Solution: ==== | ||
| + | |||
| + | The typo was corrected, and the step executed normally once a valid dataset path was provided. | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== ✅ Final Outcome ===== | ||
| + | |||
| + | After resolving these issues: | ||
| + | |||
| + | * The pipeline executed end-to-end | ||
| + | * The model output was persisted and downloadable | ||
| + | * Logs confirmed proper script execution | ||
| + | * The deployment strategy was outlined, ready for API-based use | ||
| [[ai_knowledge|AI Knowledge]] | [[ai_knowledge|AI Knowledge]] | ||