Skip to content

Commit

Permalink
fix: remove consufing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AzulGarza committed Apr 25, 2024
1 parent 603c666 commit e1c2789
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions nbs/nixtla_client.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -613,16 +613,15 @@
" 'Please consider using a smaller horizon.'\n",
" )\n",
" # restrict input if\n",
" # - we dont want to finetune\n",
" # - we dont have exogenous regegressors\n",
" # - and we dont want to produce pred intervals\n",
" # - no add history\n",
" # we dont want to fine-tune\n",
" # we dont have exogenous regressors\n",
" # no add history\n",
" restrict_input = self.finetune_steps == 0 and X_df is None and not add_history\n",
" if restrict_input:\n",
" # add sufficient info to compute\n",
" # conformal interval\n",
" main_logger.info('Restricting input...')\n",
" if self.level is not None:\n",
" # add sufficient info to compute\n",
" # conformal interval\n",
" # @AzulGarza\n",
" # this is an old opinionated decision\n",
" # about reducing the data sent to the api\n",
Expand Down
11 changes: 5 additions & 6 deletions nixtla/nixtla_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,16 +555,15 @@ def forecast(
"Please consider using a smaller horizon."
)
# restrict input if
# - we dont want to finetune
# - we dont have exogenous regegressors
# - and we dont want to produce pred intervals
# - no add history
# we dont want to fine-tune
# we dont have exogenous regressors
# no add history
restrict_input = self.finetune_steps == 0 and X_df is None and not add_history
if restrict_input:
# add sufficient info to compute
# conformal interval
main_logger.info("Restricting input...")
if self.level is not None:
# add sufficient info to compute
# conformal interval
# @AzulGarza
# this is an old opinionated decision
# about reducing the data sent to the api
Expand Down

0 comments on commit e1c2789

Please sign in to comment.