diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..586b58d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,9 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + ci-dependencies: + patterns: ["*"] diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml index fd76587..cadca6a 100644 --- a/.github/workflows/build-docs.yaml +++ b/.github/workflows/build-docs.yaml @@ -15,14 +15,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Clone repo - uses: actions/checkout@v3 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Clone docs repo - uses: actions/checkout@v3 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: repository: Nixtla/docs ref: scripts path: docs-scripts - - uses: actions/setup-python@v4 + - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # 5.1.1 with: cache: "pip" python-version: '3.10' @@ -45,7 +45,7 @@ jobs: cp docs-scripts/imgs/* _docs/ - name: Deploy to Mintlify Docs if: github.event_name == 'push' - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_branch: docs @@ -54,7 +54,7 @@ jobs: user_email: 41898282+github-actions[bot]@users.noreply.github.com - name: Trigger mintlify workflow if: github.event_name == 'push' - uses: actions/github-script@v7 + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: github-token: ${{ secrets.DOCS_WORKFLOW_TOKEN }} script: | @@ -68,7 +68,7 @@ jobs: run: python docs-scripts/configure-redirects.py hierarchicalforecast - name: Deploy to Github Pages if: github.event_name == 'push' - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_branch: gh-pages diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5171fa4..1acd175 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,10 +19,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Clone repo - uses: actions/checkout@v2 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Set up python - uses: actions/setup-python@v2 + uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # 5.1.1 - name: Install nbdev run: pip install nbdev @@ -46,10 +46,10 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] steps: - name: Clone repo - uses: actions/checkout@v2 + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Set up environment - uses: mamba-org/setup-micromamba@v1 + uses: mamba-org/setup-micromamba@f8b8a1e23a26f60a44c853292711bacfd3eac822 # v1.9.0 with: environment-file: environment.yml create-args: python=${{ matrix.python-version }} diff --git a/.github/workflows/no-response.yaml b/.github/workflows/no-response.yaml index a2b26e1..331cfa2 100644 --- a/.github/workflows/no-response.yaml +++ b/.github/workflows/no-response.yaml @@ -10,12 +10,12 @@ jobs: noResponse: runs-on: ubuntu-latest steps: - - uses: lee-dohm/no-response@v0.5.0 + - uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb # v0.5.0 with: closeComment: > - This issue has been automatically closed because it has been awaiting a response for too long. - When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. - If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. + This issue has been automatically closed because it has been awaiting a response for too long. + When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. + If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. daysUntilClose: 30 responseRequiredLabel: awaiting response token: ${{ github.token }} diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ec70354..44ac501 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -21,19 +21,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - name: Set up Python + uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # 5.1.1 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/nbs/examples/MLFrameworksExample.ipynb b/nbs/examples/MLFrameworksExample.ipynb index ac4fa99..8ffb997 100644 --- a/nbs/examples/MLFrameworksExample.ipynb +++ b/nbs/examples/MLFrameworksExample.ipynb @@ -37,16 +37,8 @@ }, { "cell_type": "code", - "execution_count": 1, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:55:42.315359Z", - "iopub.status.busy": "2023-11-28T23:55:42.314938Z", - "iopub.status.idle": "2023-11-28T23:55:42.323099Z", - "shell.execute_reply": "2023-11-28T23:55:42.321769Z", - "shell.execute_reply.started": "2023-11-28T23:55:42.315316Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [], "source": [ "# %pip install datasetsforecast hierarchicalforecast mlforecast neuralforecast " @@ -54,16 +46,8 @@ }, { "cell_type": "code", - "execution_count": 2, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:55:42.325852Z", - "iopub.status.busy": "2023-11-28T23:55:42.325334Z", - "iopub.status.idle": "2023-11-28T23:55:45.972467Z", - "shell.execute_reply": "2023-11-28T23:55:45.971788Z", - "shell.execute_reply.started": "2023-11-28T23:55:42.325820Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", @@ -112,16 +96,8 @@ }, { "cell_type": "code", - "execution_count": 3, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:55:45.973617Z", - "iopub.status.busy": "2023-11-28T23:55:45.973336Z", - "iopub.status.idle": "2023-11-28T23:55:46.001558Z", - "shell.execute_reply": "2023-11-28T23:55:46.000589Z", - "shell.execute_reply.started": "2023-11-28T23:55:45.973599Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [], "source": [ "Y_df, S_df, tags = HierarchicalData.load('./data', 'TourismLarge')\n", @@ -130,16 +106,8 @@ }, { "cell_type": "code", - "execution_count": 4, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:55:46.002977Z", - "iopub.status.busy": "2023-11-28T23:55:46.002362Z", - "iopub.status.idle": "2023-11-28T23:55:46.018468Z", - "shell.execute_reply": "2023-11-28T23:55:46.017698Z", - "shell.execute_reply.started": "2023-11-28T23:55:46.002948Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [ { "data": { @@ -211,7 +179,7 @@ "4 TotalAll 1998-05-01 20330.035211" ] }, - "execution_count": 4, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -230,16 +198,8 @@ }, { "cell_type": "code", - "execution_count": 5, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:55:46.019792Z", - "iopub.status.busy": "2023-11-28T23:55:46.019434Z", - "iopub.status.idle": "2023-11-28T23:55:46.217870Z", - "shell.execute_reply": "2023-11-28T23:55:46.217061Z", - "shell.execute_reply.started": "2023-11-28T23:55:46.019757Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [ { "data": { @@ -267,16 +227,8 @@ }, { "cell_type": "code", - "execution_count": 6, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:55:46.219142Z", - "iopub.status.busy": "2023-11-28T23:55:46.218881Z", - "iopub.status.idle": "2023-11-28T23:55:46.246163Z", - "shell.execute_reply": "2023-11-28T23:55:46.245104Z", - "shell.execute_reply.started": "2023-11-28T23:55:46.219116Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [], "source": [ "def sort_hier_df(Y_df, S_df):\n", @@ -291,16 +243,8 @@ }, { "cell_type": "code", - "execution_count": 7, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:55:46.251101Z", - "iopub.status.busy": "2023-11-28T23:55:46.250221Z", - "iopub.status.idle": "2023-11-28T23:55:46.273274Z", - "shell.execute_reply": "2023-11-28T23:55:46.272568Z", - "shell.execute_reply.started": "2023-11-28T23:55:46.251055Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [], "source": [ "horizon = 12\n", @@ -354,16 +298,8 @@ }, { "cell_type": "code", - "execution_count": 9, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:57:02.449857Z", - "iopub.status.busy": "2023-11-28T23:57:02.449220Z", - "iopub.status.idle": "2023-11-28T23:57:02.544549Z", - "shell.execute_reply": "2023-11-28T23:57:02.543115Z", - "shell.execute_reply.started": "2023-11-28T23:57:02.449818Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [ { "data": { @@ -791,7 +727,7 @@ "[6660 rows x 102 columns]" ] }, - "execution_count": 9, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -802,16 +738,8 @@ }, { "cell_type": "code", - "execution_count": 10, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:57:02.547815Z", - "iopub.status.busy": "2023-11-28T23:57:02.546687Z", - "iopub.status.idle": "2023-11-28T23:57:02.652997Z", - "shell.execute_reply": "2023-11-28T23:57:02.651542Z", - "shell.execute_reply.started": "2023-11-28T23:57:02.547731Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [ { "data": { @@ -1253,7 +1181,7 @@ "[6660 rows x 102 columns]" ] }, - "execution_count": 10, + "execution_count": null, "metadata": {}, "output_type": "execute_result" } @@ -1273,16 +1201,8 @@ }, { "cell_type": "code", - "execution_count": 12, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:57:33.153377Z", - "iopub.status.busy": "2023-11-28T23:57:33.152292Z", - "iopub.status.idle": "2023-11-28T23:57:36.538449Z", - "shell.execute_reply": "2023-11-28T23:57:36.537787Z", - "shell.execute_reply.started": "2023-11-28T23:57:33.153274Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [], "source": [ "reconcilers = [\n", @@ -1314,16 +1234,8 @@ }, { "cell_type": "code", - "execution_count": 24, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:59:46.975893Z", - "iopub.status.busy": "2023-11-28T23:59:46.974645Z", - "iopub.status.idle": "2023-11-28T23:59:47.084555Z", - "shell.execute_reply": "2023-11-28T23:59:47.083903Z", - "shell.execute_reply.started": "2023-11-28T23:59:46.975749Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [ { "name": "stdout", @@ -1376,16 +1288,8 @@ }, { "cell_type": "code", - "execution_count": 19, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:59:01.458142Z", - "iopub.status.busy": "2023-11-28T23:59:01.457436Z", - "iopub.status.idle": "2023-11-28T23:59:02.557020Z", - "shell.execute_reply": "2023-11-28T23:59:02.556323Z", - "shell.execute_reply.started": "2023-11-28T23:59:01.458076Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [], "source": [ "plot_nf = pd.concat([Y_df.set_index(['unique_id', 'ds']), \n", @@ -1399,16 +1303,8 @@ }, { "cell_type": "code", - "execution_count": 20, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:59:12.548814Z", - "iopub.status.busy": "2023-11-28T23:59:12.548106Z", - "iopub.status.idle": "2023-11-28T23:59:13.086753Z", - "shell.execute_reply": "2023-11-28T23:59:13.085985Z", - "shell.execute_reply.started": "2023-11-28T23:59:12.548747Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [ { "data": { @@ -1432,16 +1328,8 @@ }, { "cell_type": "code", - "execution_count": 21, - "metadata": { - "execution": { - "iopub.execute_input": "2023-11-28T23:59:22.212016Z", - "iopub.status.busy": "2023-11-28T23:59:22.210526Z", - "iopub.status.idle": "2023-11-28T23:59:22.736634Z", - "shell.execute_reply": "2023-11-28T23:59:22.735995Z", - "shell.execute_reply.started": "2023-11-28T23:59:22.211937Z" - } - }, + "execution_count": null, + "metadata": {}, "outputs": [ { "data": { @@ -1466,22 +1354,10 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "python3", "language": "python", "name": "python3" }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.10.12" - }, "widgets": { "application/vnd.jupyter.widget-state+json": { "0026a4e66ad64192a2474f8b175ecab6": {