Skip to content

Commit fcbb74a

Browse files
elmartinjAzulGarza
andauthored
feat: crypto tutorial (#273)
* A cool tutorial This tutorial contains an example with multiple indexes and subsequent tampering to the data in order to show resiliency and a real life use case of TC applied on cryptocurrency prices up to 2021. * Change merging method Fix to the issue raised on empty dataframe, resulting from an inner merge where the existing dataframe that accumulated results and the newer one had diferent indices. A subsequent issue must be raised to either: 1 report a single model failure (on index matching) 2 fix the moirai discrepancy (only model that showed this issue) * run pre-comit hooks * Changing filename to requested formats and folder. This also contains the title suggested * Clearance of verbose cells * Staging changes to mkdocs and the naming of the tutorial file --------- Co-authored-by: azul <fede.garza.ramirez@gmail.com> Co-authored-by: elmartinj <elmartinj>
1 parent a9ce43e commit fcbb74a

File tree

3 files changed

+1555
-4
lines changed

3 files changed

+1555
-4
lines changed

docs/examples/cryptocurrency-quickstart.ipynb

Lines changed: 1553 additions & 0 deletions
Large diffs are not rendered by default.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ nav:
2727
- examples/ts-foundation-models-comparison-quickstart.ipynb
2828
- examples/gift-eval.ipynb
2929
- examples/chronos-family.ipynb
30+
- examples/crytpocurrency-quickstart.ipynb
3031
- Experiments:
3132
- experiments/gift-eval.md
3233
- experiments/fev.md

timecopilot/forecaster.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ def _call_models(
113113
# to cross validation
114114
# (the initial model)
115115
res_df_model = res_df_model.drop(columns=["y"])
116-
res_df = res_df.merge(
117-
res_df_model,
118-
on=merge_on,
119-
)
116+
res_df = res_df.merge(res_df_model, on=merge_on, how="left")
120117
return res_df
121118

122119
def forecast(

0 commit comments

Comments
 (0)