From cb0c926116280549b077caab3f3f7e82da997c86 Mon Sep 17 00:00:00 2001 From: Avi Asulin Date: Tue, 16 Jan 2024 11:35:39 +0200 Subject: [PATCH] [stocks] update news set ingest to new api --- stocks-prediction/01_ingest_news.ipynb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/stocks-prediction/01_ingest_news.ipynb b/stocks-prediction/01_ingest_news.ipynb index 6f1cfff7..1f9398b7 100644 --- a/stocks-prediction/01_ingest_news.ipynb +++ b/stocks-prediction/01_ingest_news.ipynb @@ -991,11 +991,10 @@ "# ingesting dummy (A MUST)\n", "name = 'stocks-dummy'\n", "\n", - "fstore.ingest(news_set,\n", - " pd.DataFrame.from_dict({'ticker':[name],\n", - " 'Datetime': now,\n", - " 'n_stocks':number_of_stocks,\n", - " 'stocks_list':stocks_list}),\n", + "news_set.ingest(pd.DataFrame.from_dict({'ticker':[name],\n", + " 'Datetime': now,\n", + " 'n_stocks':number_of_stocks,\n", + " 'stocks_list':stocks_list}),\n", " overwrite=True)" ] }, @@ -1044,7 +1043,7 @@ "run_config = fstore.RunConfig(function=function, local=False)\n", "\n", "# Deploying\n", - "news_set_endpoint, function = news_set.deploy_ingestion_service(run_config=run_config)" + "news_set_endpoint, function = fstore.deploy_ingestion_service_v2(featureset=news_set, run_config=run_config)" ] }, {