Conversation
Signed-off-by: Ben Wilson <benjamin.wilson@databricks.com>
|
Documentation preview for f9afad1 is available at: Changed Pages (4)
More info
|
There was a problem hiding this comment.
Pull Request Overview
This PR significantly cleans up the Prophet documentation by removing verbose marketing-style content and replacing it with concise, technical documentation. The changes reduce the index page from 247 lines to 121 lines and the guide from 1402 lines to 329 lines while maintaining all essential information.
Key Changes:
- Streamlined documentation to focus on technical content and practical examples
- Replaced promotional language with straightforward technical descriptions
- Consolidated code examples to show only essential patterns
- Added modern UI components (FeatureHighlights, TilesGrid) for better navigation
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/docs/classic-ml/traditional-ml/prophet/index.mdx | Condensed overview page with updated component imports, clearer introduction about Prophet and MLflow integration, and focused code examples for model logging |
| docs/docs/classic-ml/traditional-ml/prophet/guide/index.mdx | Streamlined comprehensive guide with practical examples covering model logging, cross-validation, hyperparameter optimization, model registry, and batch forecasting workflows |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| & (merged["y"] <= merged["yhat_upper"]) | ||
| # Cross-validation | ||
| cv_results = cross_validation( | ||
| model, initial="365 days", horizon="180 days" |
There was a problem hiding this comment.
The cross_validation function call is missing the required period parameter. Prophet's cross_validation requires initial, period, and horizon parameters. Add period to specify the spacing between cutoff dates.
Example fix:
cv_results = cross_validation(
model, initial="365 days", period="90 days", horizon="180 days"
)| model, initial="365 days", horizon="180 days" | |
| model, initial="365 days", period="90 days", horizon="180 days" |
There was a problem hiding this comment.
They're actually optional parameters. But, in the interests of not showing inferred behavior for unspecified default params, I'll add it.
| if large_gaps > 0: | ||
| quality_issues.append(f"Large date gaps found: {large_gaps}") | ||
| # Collect metrics | ||
| cv_results = cross_validation(model, initial="365 days", horizon="90 days") |
There was a problem hiding this comment.
The cross_validation function call is missing the required period parameter. Prophet's cross_validation requires initial, period, and horizon parameters. Add period to specify the spacing between cutoff dates.
Example fix:
cv_results = cross_validation(model, initial="365 days", period="90 days", horizon="90 days")| cv_results = cross_validation(model, initial="365 days", horizon="90 days") | |
| cv_results = cross_validation(model, initial="365 days", period="90 days", horizon="90 days") |
Signed-off-by: Ben Wilson <benjamin.wilson@databricks.com>
| # Log component plots | ||
| fig = model.plot_components(forecast) | ||
| plt.savefig("forecast_components.png") | ||
| mlflow.log_artifact("forecast_components.png") |
There was a problem hiding this comment.
let's use log_figure and an in-memory figure object
There was a problem hiding this comment.
good call! Definitely better than using the log artifact API. Thanks Haru!
Signed-off-by: Ben Wilson <benjamin.wilson@databricks.com>
Signed-off-by: Ben Wilson <benjamin.wilson@databricks.com> Signed-off-by: Jackie Himel <jacqueline.himel@vanderbilt.edu>
Signed-off-by: Ben Wilson <benjamin.wilson@databricks.com>
Signed-off-by: Ben Wilson <benjamin.wilson@databricks.com> Signed-off-by: Tian Lan <sky.blue266000@gmail.com>
🛠 DevTools 🛠
Install mlflow from this PR
For Databricks, use the following command:
Related Issues/PRs
#xxxWhat changes are proposed in this pull request?
Cleans up a bunch of junk in the Prophet docs
How is this PR tested?
Does this PR require documentation update?
Release Notes
Is this a user-facing change?
What component(s), interfaces, languages, and integrations does this PR affect?
Components
area/tracking: Tracking Service, tracking client APIs, autologgingarea/models: MLmodel format, model serialization/deserialization, flavorsarea/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registryarea/scoring: MLflow Model server, model deployment tools, Spark UDFsarea/evaluation: MLflow model evaluation features, evaluation metrics, and evaluation workflowsarea/gateway: MLflow AI Gateway client APIs, server, and third-party integrationsarea/prompts: MLflow prompt engineering features, prompt templates, and prompt managementarea/tracing: MLflow Tracing features, tracing APIs, and LLM tracing functionalityarea/projects: MLproject format, project running backendsarea/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev serverarea/build: Build and test infrastructure for MLflowarea/docs: MLflow documentation pagesHow should the PR be classified in the release notes? Choose one:
rn/none- No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" sectionrn/breaking-change- The PR will be mentioned in the "Breaking Changes" sectionrn/feature- A new user-facing feature worth mentioning in the release notesrn/bug-fix- A user-facing bug fix worth mentioning in the release notesrn/documentation- A user-facing documentation change worth mentioning in the release notesShould this PR be included in the next patch release?
Yesshould be selected for bug fixes, documentation updates, and other small changes.Noshould be selected for new features and larger changes. If you're unsure about the release classification of this PR, leave this unchecked to let the maintainers decide.What is a minor/patch release?
Bug fixes, doc updates and new features usually go into minor releases.
Bug fixes and doc updates usually go into patch releases.