From 9e5456dd758a566a10d2a50b7ab29eef28b01104 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lu=C3=ADs=20Fernando=20Torres?=
<93692004+luuisotorres@users.noreply.github.com>
Date: Sun, 12 Jun 2022 21:12:59 -0300
Subject: [PATCH] Add files via upload
---
...k Price Prediction Using PyCaret-Copy1.ipynb | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/AAPL Stock Price Prediction Using PyCaret-Copy1.ipynb b/AAPL Stock Price Prediction Using PyCaret-Copy1.ipynb
index 0eb8d07..352b3cf 100644
--- a/AAPL Stock Price Prediction Using PyCaret-Copy1.ipynb
+++ b/AAPL Stock Price Prediction Using PyCaret-Copy1.ipynb
@@ -51576,14 +51576,14 @@
},
{
"cell_type": "code",
- "execution_count": 7,
+ "execution_count": 33,
"id": "f6b9b7ed",
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
- ""
+ ""
]
},
"metadata": {},
@@ -51600,6 +51600,10 @@
" go.Scatter(x=aapl.index, y = aapl.SMA7, line=dict(color='orange',width=1),name='SMA7'),\n",
" go.Scatter(x=aapl.index, y = aapl.SMA30, line=dict(color='green',width=1.5),name='SMA30')])\n",
"fig.update_layout(title = 'Apple stocks from June 11th, 2002 to June 10th, 2022')\n",
+ "fig.update_layout(\n",
+ " autosize=False,\n",
+ " width=1200,\n",
+ " height=800,)\n",
"fig.show()"
]
},
@@ -54703,14 +54707,14 @@
},
{
"cell_type": "code",
- "execution_count": 24,
+ "execution_count": 34,
"id": "8c2aa054",
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
- ""
+ ""
]
},
"metadata": {},
@@ -54721,14 +54725,15 @@
"fig = px.line(round(prediction,2), \n",
" x = prediction.index, \n",
" y = ['Close','Label'],\n",
- " title = 'AAPL close price x predicted price from June 10th, 2020 to June 10th, 2022')\n",
+ " title = 'AAPL close price x predicted price from June 10th, 2020 to June 10th, 2022',\n",
+ " width = 1200, height =800)\n",
"newnames = {'Close':'Closing Price', 'Label': 'Predicted Price'}\n",
"fig.for_each_trace(lambda t: t.update(name = newnames[t.name],\n",
" legendgroup = newnames[t.name],\n",
" hovertemplate = t.hovertemplate.replace(t.name, newnames[t.name])\n",
" )\n",
" )\n",
- "fig.show()"
+ "fig.show(\"svg\")"
]
},
{