Skip to content

Commit

Permalink
[Docs] update website to 1.0.0rc8 (#1538)
Browse files Browse the repository at this point in the history
* update contents.rst first paragraph

* remove deprecated check_nblink_files.py

* add Mlflow

* update main contents.rst

* improve main page

* update conf contents

* update conf contents 2

* update notebooks

* include whole codebase
  • Loading branch information
ourownstory authored Feb 20, 2024
1 parent 5a3fabf commit 6906ee8
Show file tree
Hide file tree
Showing 26 changed files with 488 additions and 714 deletions.
40 changes: 0 additions & 40 deletions docs/check_nblink_files.py

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/code/components/base.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.components.base
:members:
17 changes: 17 additions & 0 deletions docs/source/code/components/future_regressors/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.components.future_regressors.base
:members:

.. automodule:: neuralprophet.components.future_regressors.linear
:members:

.. automodule:: neuralprophet.components.future_regressors.neural_nets
:members:

.. automodule:: neuralprophet.components.future_regressors.shared_neural_nets_coef
:members:

.. automodule:: neuralprophet.components.future_regressors.shared_neural_nets
:members:
5 changes: 5 additions & 0 deletions docs/source/code/components/router.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.components.router
:members:
8 changes: 8 additions & 0 deletions docs/source/code/components/seasonality/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.components.seasonality.base
:members:

.. automodule:: neuralprophet.components.seasonality.fourier
:members:
14 changes: 14 additions & 0 deletions docs/source/code/components/trend/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.components.trend.base
:members:

.. automodule:: neuralprophet.components.trend.linear
:members:

.. automodule:: neuralprophet.components.trend.piecewise_linear
:members:

.. automodule:: neuralprophet.components.trend.static
:members:
5 changes: 5 additions & 0 deletions docs/source/code/custom_loss_metrics.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.custom_loss_metrics
:members:
5 changes: 5 additions & 0 deletions docs/source/code/data/process.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.data.process
:members:
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.event_utils
.. automodule:: neuralprophet.data.split
:members:
5 changes: 5 additions & 0 deletions docs/source/code/data/transform.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.data.transform
:members:
19 changes: 2 additions & 17 deletions docs/source/code/forecaster.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
Core Module Documentation
==========================

.. toctree::
:hidden:
:maxdepth: 1

configure.py <configure>
df_utils.py <df_utils>
hdays_utils.py <hdays_utils>
plot_forecast_plotly.py <plot_forecast_plotly>
plot_forecast_matplotlib.py <plot_forecast_matplotlib>
plot_model_parameters_plotly.py <plot_model_parameters_plotly>
plot_model_parameters_matplotlib.py <plot_model_parameters_matplotlib>
time_dataset.py <time_dataset>
time_net.py <time_net>
utils.py <utils>
NeuralProphet Class
-----------------------

.. automodule:: neuralprophet.forecaster
:members:
38 changes: 38 additions & 0 deletions docs/source/code/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Code Documentation
==========================

.. toctree::
:maxdepth: 1

forecaster.py (NeuralProphet) <forecaster>
configure.py <configure>
time_dataset.py <time_dataset>
time_net.py <time_net>
torch_prophet.py <torch_prophet>
uncertainty.py <uncertainty>
data/process.py <data/process>
data/split.py <data/split>
data/transform.py <data/transform>
components/router.py <components/router>
components/base.py <components/base>
components/future_regressors <components/future_regressors/index>
components/seasonality <components/seasonality/index>
components/trend <components/trend/index>
plot_forecast_plotly.py <plot_forecast_plotly>
plot_forecast_matplotlib.py <plot_forecast_matplotlib>
plot_model_parameters_plotly.py <plot_model_parameters_plotly>
plot_model_parameters_matplotlib.py <plot_model_parameters_matplotlib>
utils.py <utils>
df_utils.py <df_utils>
hdays_utils.py <hdays_utils>
plot_utils.py <plot_utils>
utils_metrics.py <utils_metrics>
utils_torch.py <utils_torch>
custom_loss_metrics.py <custom_loss_metrics>
logger.py <logger>
np_types.py <np_types>





5 changes: 5 additions & 0 deletions docs/source/code/logger.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.logger
:members:
5 changes: 5 additions & 0 deletions docs/source/code/np_types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.np_types
:members:
5 changes: 5 additions & 0 deletions docs/source/code/plot_utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.plot_utils
:members:
5 changes: 5 additions & 0 deletions docs/source/code/torch_prophet.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.torch_prophet
:members:
5 changes: 5 additions & 0 deletions docs/source/code/uncertainty.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.uncertainty
:members:
5 changes: 5 additions & 0 deletions docs/source/code/utils_metrics.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.utils_metrics
:members:
5 changes: 5 additions & 0 deletions docs/source/code/utils_torch.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Core Module Documentation
==========================

.. automodule:: neuralprophet.utils_torch
:members:
12 changes: 8 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
# -- Project information -----------------------------------------------------

project = "NeuralProphet"
copyright = "2021, Oskar Triebe"
copyright = "2024, Oskar Triebe"
author = "Oskar Triebe"

version = "1.0.0"
release = "1.0.0rc8"

# -- General configuration ---------------------------------------------------

Expand All @@ -54,6 +55,7 @@
}

# Add any paths that contain templates here, relative to this directory.
# Note: in use for custom sidebar and landing page
templates_path = ["_templates"]

# List of patterns, relative to source directory, that match files and
Expand Down Expand Up @@ -102,9 +104,11 @@
]

# change index.rst to contents.rst for custom landing page feature
master_doc = "contents"
root_doc = "contents"

html_additional_pages = {"index": "index.html"}
html_additional_pages = {
"index": "index.html",
}


def setup(app):
Expand Down
61 changes: 32 additions & 29 deletions docs/source/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,39 @@
NeuralProphet
=========================================

Based on Neural Networks, inspired by `Facebook Prophet <https://github.com/facebook/prophet>`_ and `AR-Net <https://github.com/ourownstory/AR-Net>`_, built on Pytorch.
Fusing traditional time series algorithms using standard deep learning methods, built on PyTorch, inspired by `Facebook Prophet <https://github.com/facebook/prophet>`_ and `AR-Net <https://github.com/ourownstory/AR-Net>`_.


Links
-----
Simple Example
------------------

- `Read the paper <https://arxiv.org/abs/2111.15397?fbclid=IwAR2vCkHYiy5yuPPjWXpJgAJs-uD5NkH4liORt1ch4a6X_kmpMqagGtXyez4>`_
- `GitHub repository <https://github.com/ourownstory/neural_prophet>`_
.. code-block:: pycon
>>> from neuralprophet import NeuralProphet
>>> m = NeuralProphet()
>>> metrics = m.fit(df)
>>> forecast = m.predict(df)
>>> m.plot(forecast)
Why NeuralProphet?
Features
------------------

NeuralProphet changes the way time series modelling and forecasting is done:
NeuralProphet provides many time series modeling and workflow features, in a simple package:

- Support for auto-regression and covariates.
- Support for global modeling of many time series.
- Automatic selection of training related hyperparameters.
- Fourier term seasonality at different periods such as yearly, daily, weekly, hourly.
- Piecewise linear trend with optional automatic changepoint detection.
- Plotting for forecast components, model coefficients and final predictions.
- Support for global modeling.
- Lagged and future regressors.
- Sparsity of coefficients through regularization.
- User-friendly and powerful Python package:
- Plotting utilities for forecast components, model coefficients and final predictions.
- Local context through Autoregression and lagged covariates.
- Changing trends and smooth seasonality at different periods.
- Modeling of event, holiday, and future regressor effects.
- Many customization options, such as regularization.

.. code-block:: pycon
Resources
-----------------

- `Read the paper <https://arxiv.org/abs/2111.15397?fbclid=IwAR2vCkHYiy5yuPPjWXpJgAJs-uD5NkH4liORt1ch4a6X_kmpMqagGtXyez4>`_
- `GitHub repository <https://github.com/ourownstory/neural_prophet>`_

>>> from neuralprophet import NeuralProphet
>>> m = NeuralProphet()
>>> metrics = m.fit(your_df, freq='D')
>>> forecast = m.predict(your_df)
>>> m.plot(forecast)

.. toctree::
:hidden:
Expand All @@ -63,23 +65,24 @@ NeuralProphet changes the way time series modelling and forecasting is done:
.. toctree::
:hidden:
:maxdepth: 1
:caption: The Science Behind
:caption: Code Documentation

Model Overview<science-behind/model-overview>
Presentation<https://github.com/ourownstory/neural_prophet/raw/61f1c6d4667db19a189e15037eb230ee5e90b80c/notes/NeuralProphet_Introduction.pdf>
NeuralProphet <code/index>

.. toctree::
:hidden:
:maxdepth: 1
:caption: API Reference
:caption: About

forecaster.py <code/forecaster>
Model Overview<science-behind/model-overview>
Presentation<https://github.com/ourownstory/neural_prophet/raw/61f1c6d4667db19a189e15037eb230ee5e90b80c/notes/NeuralProphet_Introduction.pdf>

.. toctree::
:hidden:
:maxdepth: 1
:caption: Community

Contribution<community/contribute>
GitHub <https://github.com/ourownstory/neural_prophet>
Slack <https://join.slack.com/t/neuralprophet/shared_invite/zt-1iyfs2pld-vtnegAX4CtYg~6E~V8miXw>
Contribute<community/contribute>
GitHub<https://github.com/ourownstory/neural_prophet>
Slack<https://join.slack.com/t/neuralprophet/shared_invite/zt-1iyfs2pld-vtnegAX4CtYg~6E~V8miXw>

392 changes: 54 additions & 338 deletions docs/source/how-to-guides/feature-guides/global_local_modeling.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 6906ee8

Please sign in to comment.