Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
105 views
ubuntu2204
Kernel: Python 3 (system-wide)
import torch
print(torch.__version__) print(torch.cuda.is_available())
2.0.1+cu117 False

Next, we will use the SimpleExpSmoothing() function to create the model and fit it to our time series data.

!pip list
╔══════════════════════════════╦════════════════════════════════╗ ║ ⚠ NETWORK DISABLED ⚠ ║ ⚠ NO INTERNET ACCESS ⚠ ║ ╠══════════════════════════════╩════════════════════════════════╣ ║ This project does not have access to the internet. ║ ║ Add a valid license in order to enable internet access. ║ ║ Otherwise, you cannot pull from a Git repository, use cURL, ║ ║ wget, download Python packages from PyPI, etc. ║ ║ Requests to load data will fail or hang indefinitely. ║ ║ ║ ║ https://cocalc.com/store/site-license ║ ║ ║ ╟───────────────────────────────────────────────────────────────╢ ║ Note: You can't become 'root' on CoCalc for security reasons. ║ ╚═══════════════════════════════════════════════════════════════╝ Package Version --------------------------------- -------------- 3to2 1.1.1 absl-py 1.2.0 access 1.1.8 accumulation-tree 0.6.2 adtk 0.6.2 aeidon 1.10.1 aenum 3.1.11 affine 2.3.1 agate 1.6.3 agentpy 0.1.5 aiohttp 3.8.1 aiosignal 1.2.0 alabaster 0.7.12 alembic 1.8.1 altair 4.2.0 amqp 5.0.9 ansible 6.1.0 ansible-core 2.13.2 ansiwrap 0.8.4 anyio 3.5.0 anyjson 0.3.3 AnyQt 0.1.1 apache-libcloud 3.6.0 appdirs 1.4.4 APScheduler 3.9.1 apsw 3.36.0.post1 arch 5.3.1 argcomplete 1.10.3 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 args 0.1.0 arrow 1.2.2 arviz 0.12.1 asciitree 0.3.3 ase 3.22.1 asgiref 3.5.2 asn1crypto 1.5.1 asteval 0.9.28 astor 0.8.1 astroalign 2.4.1 astroid 2.11.7 astroML 1.0.2.post1 astroplan 0.8 astropy 5.3 astropy-healpix 0.6 astroquery 0.4.6 astroscrappy 1.1.0 asttokens 2.0.5 astunparse 1.6.3 async-generator 1.10 async-timeout 4.0.2 atomicwrites 1.4.0 attrs 22.1.0 audeer 1.18.0 audiofile 1.1.0 audioread 2.1.9 Automat 20.2.0 autopep8 2.0.2 av 9.2.0 avro 1.11.0 aws-requests-auth 0.4.3 Axelrod 4.12.0 azure-core 1.24.2 azure-storage-blob 12.13.0 Babel 2.10.3 backcall 0.2.0 backoff 2.1.2 bash_kernel 0.9.0 baycomp 1.0.2 bayespy 0.5.22 bcrypt 3.2.0 beautifulsoup4 4.8.2 beniget 0.4.1 bids-validator 1.9.7 billiard 3.6.4.0 binaryornot 0.4.4 biopython 1.79 biothings-client 0.2.6 birch 0.0.35 bitarray 2.6.0 black 23.3.0 blaze 0.10.1 bleach 5.0.1 blinker 1.4 blis 0.7.8 bokeh 3.1.1 boltons 21.0.0 boto3 1.20.34 botocore 1.27.38 bottle 0.12.19 Bottleneck 1.3.2 bqplot 0.12.39 branca 0.5.0 breezy 3.2.1 brial 1.0.2 Brotli 1.0.9 bs4 0.0.1 bsddb3 6.2.9 build 0.8.0 CacheControl 0.12.11 cached-property 1.5.2 cachetools 5.2.0 calysto-prolog 0.8.4 Cantera 2.6.0 Cartopy 0.20.3 catalogue 2.0.8 cattrs 22.2.0 ccdproc 2.3.1 celery 5.2.3 certifi 2022.6.15 certipy 0.1.3 cffi 1.15.0 cftime 1.5.2 changelog 0.5.7 chardet 3.0.4 charset-normalizer 2.0.6 checkit-dashboard 0.2.6 Cheetah3 3.2.6 chempy 0.8.2 cheroot 8.5.2+ds1 CherryPy 18.6.1 chevron 0.14.0 ci-info 0.2.0 circuits 3.1.0 cli-helpers 2.2.1 click 8.1.3 click-default-group 1.2.2 click-didyoumean 0.0.3 click-log 0.4.0 click-logging 1.0.1 click-plugins 1.1.1 click-repl 0.2.0 cligj 0.7.2 clikit 0.6.2 clint 0.5.1 cloudpickle 2.1.0 cloup 0.13.1 cmake 3.26.0 cmdstanpy 1.0.4 cmocean 2.0 cobra 0.25.0 CodeChat 1.9.2 CodeChat-Server 0.2.6 colorama 0.4.5 colorcet 3.0.0 colorclass 2.2.2 colour 0.1.5 comm 0.1.1 commonmark 0.9.1 compressed-rtf 1.0.6 confection 0.0.4 configobj 5.0.6 conllu 4.5.2 constantly 15.1.0 contextily 1.2.0 contextvars 2.4 contourpy 1.0.5 control 0.9.2 convertdate 2.4.0 cookiecutter 2.1.1 CoolProp 6.4.1 coq-jupyter 1.6.0 corner 2.2.1 cov-core 1.15.0 coverage 6.5.0 crashtest 0.3.1 crayola 0.1.1 crcmod 1.7 cryptography 3.4.8 csb 1.2.5 css-html-prettify 2.5.5 css-parser 1.0.7 cssselect 1.1.0 cssselect2 0.6.0 cssutils 1.0.2 curio 1.5 cvxopt 1.3.0 cvxpy 1.2.1 cycler 0.11.0 cymem 2.0.6 Cython 0.29.30 cytoolz 0.12.1 dash 2.6.0 dash-core-components 2.0.0 dash-html-components 2.0.0 dash-renderer 1.9.1 dash-table 5.0.0 dask 2023.5.1 dask-glm 0.2.0 dask-ml 2023.3.24 dataclasses-json 0.5.7 datapackage 1.15.2 datascience 0.17.5 datashader 0.14.1 datashape 0.5.2 db-dtypes 1.0.5 dblatex 0.3.12 dbus-python 1.2.18 deap 1.3.1 debtcollector 2.5.0 debugpy 1.6.2 decorator 5.1.1 decore 0.0.1 deeplake 3.1.3 defer 1.0.6 defusedxml 0.7.1 depinfo 1.7.0 deprecat 2.1.1 Deprecated 1.2.13 deprecation 2.1.0 descartes 1.1.0 dev-fenics-dijitso 2019.2.1 dev-fenics-ffc 2019.2.2 dev-fenics-fiat 2019.2.1 dev-fenics-ufl 2021.1.1 dictdiffer 0.9.0 diff-match-patch 20200713 dill 0.3.5.1 diskcache 5.4.0 display-timedelta 1.1 distlib 0.3.6 distributed 2023.5.1 distro 1.7.0 distro-info 1.1build1 dit 1.5 diversipy 0.8 Django 3.2.12 django-filter 2.4.0 django-jinja 2.10.2 django-jsonfield 1.4.0 django-model-utils 0.0.0 django-tables2 2.4.1 django-xmlrpc 0.1.8 dkimpy 1.0.5 dlib 19.24.0 dm-tree 0.1.7 dmba 0.1.0 dnspython 2.2.1 dnsq 1.1.6 docker 5.0.3 docopt 0.6.2 docutils 0.18.1 docx2txt 0.8 doepy 0.0.1 dot2tex 2.11.3 dtreeviz 1.3.7 dulwich 0.20.31 dune-alugrid 2.8.0 dune-common 2.8.0 dune-fem 2.8.0.7 dune-geometry 2.8.0 dune-grid 2.8.0 dune-istl 2.8.0.post2 dune-localfunctions 2.8.0.post2 ebcdic 1.1.1 ecdsa 0.18.0b1 ecos 2.0.10 elevation 1.1.3 emcee 3.1.2 empy 3.3.4 empyrical 0.5.5 en-core-sci-sm 0.5.1 en-ner-bionlp13cg-md 0.5.1 en-ner-jnlpba-md 0.5.1 enforce 0.3.4 entrypoints 0.4 enum34 1.1.10 EoN 1.1 ephem 4.1.3 esda 2.4.1 et-xmlfile 1.0.1 etelemetry 0.3.0 etils 0.6.0 exceptiongroup 1.0.4 execnet 1.9.0 executing 0.9.1 expiringdict 1.2.2 extract-msg 0.28.7 extras 1.0.0 face-recognition 1.3.0 face-recognition-models 0.3.0 fake-useragent 0.1.11 fastbencode 0.0.5 fastcluster 1.2.3 fasteners 0.17.3 fastimport 0.9.14 fastjsonschema 2.16.1 fastprogress 1.0.3 feedparser 6.0.8 fenics-dijitso 2019.2.0.dev0 fenics-dolfin 2019.2.0.dev0 fenics-ffc 2019.2.0.dev0 fenics-fiat 2019.2.0.dev0 fenics-ufl 2019.1.0 filelock 3.12.0 findspark 2.0.1 Fiona 1.8.21 fixtures 3.0.0 flake8 4.0.1 Flask 2.2.3 Flask-Compress 1.12 Flask-Cors 3.0.10 Flask-Principal 0.4.0 Flask-Script 2.0.6 Flask-SQLAlchemy 2.5.1 flatbuffers 2.0.7 folium 0.12.1.post1 fonttools 4.29.1 formulaic 0.3.4 fortran-magic 0.7 frozendict 1.2 frozenlist 1.3.0 fs 2.4.16 fsspec 2022.5.0 funcsigs 1.0.2 funcy 1.17 fuse-python 1.0.2 future 0.18.2 fuzzywuzzy 0.18.0 fysom 2.1.5 gast 0.4.0 gcsfs 2022.5.0 GDAL 3.4.1 gensim 4.2.0 geocoder 1.38.1 geographiclib 1.52 GeoIP 1.3.2 geojson 3.0.1 geopandas 0.13.2 geopy 2.2.0 ghp-import 2.1.0 giddy 2.3.3 git-pandas 1.2.0 git-trac 1.0 gitdb 4.0.9 gitless 0.8.8 gitlint-core 0.17.0 GitPython 3.1.27 Glances 3.2.4.2 glcontext 2.3.6 gmpy2 2.1.2 gmshtranslator 0.1 google-api-core 2.11.0 google-api-python-client 1.7.8 google-auth 2.16.2 google-auth-httplib2 0.0.4 google-auth-oauthlib 0.4.6 google-cloud-bigquery 3.6.0 google-cloud-bigquery-storage 2.19.0 google-cloud-core 2.3.2 google-cloud-storage 2.4.0 google-crc32c 1.3.0 google-pasta 0.2.0 google-resumable-media 2.3.3 googleapis-common-protos 1.56.4 gpg 1.16.0-unknown gprMax 3.1.5 GPy 1.10.0 GPyOpt 1.2.6 graphviz 0.20.1 grass-session 0.5 greenlet 2.0.1 grpcio 1.53.0 grpcio-status 1.47.0 gs-quant 0.9.57 gspread 5.4.0 gssapi 1.6.12 gsw 0.0.0 gvar 11.10.1 gym-notices 0.0.7 Gyoto 1.4.4 h11 0.13.0 h5py 3.6.0 h5py.-debian-h5py-serial 3.6.0 hdbscan 0.8.28 hdmedians 0.14.2 healpy 1.16.1 HeapDict 1.0.1 helpdev 0.7.1 hg-git 1.0.2 hide-code 0.7.0 hijri-converter 2.2.4 hmmlearn 0.2.7 holidays 0.14.2 holoviews 1.15.3 html2text 2020.1.16 html5-parser 0.4.10 html5lib 1.1 htmlmin 0.1.12 htmltools 0.2.1 httpcore 0.16.3 httplib2 0.12.1 httpstan 4.9.1 httpx 0.24.1 hub 3.0.1 huggingface-hub 0.11.0 humbug 0.2.7 hupper 1.10.3 hyperlink 21.0.0 hypothesis 6.76.0 IbPy2 0.8.0 icalendar 4.0.3 icecream 2.1.3 idna 2.8 ifaddr 0.1.7 igraph 0.9.11 ijson 3.1.4 ImageHash 4.2.1 imageio 2.20.0 imageio-ffmpeg 0.4.7 imagesize 1.3.0 IMAPClient 2.1.0 imbalanced-learn 0.9.1 imks 1.2.6 immutables 0.18 importlab 0.8 importlib-metadata 6.1.0 importlib-resources 5.9.0 imutils 0.5.4 incremental 21.3.0 inequality 1.0.0 inflection 0.5.1 influxdb 5.3.1 iniconfig 1.1.1 interface-meta 1.3.0 intervaltree 3.0.2 iotop 0.6 ipopt 1.0.3 IPy 1.1 ipydatatable 1.0.2 ipydatawidgets 4.3.1.post1 ipykernel 6.19.0 ipyleaflet 0.17.2 ipympl 0.9.2 ipysimulate 0.2.1 ipytest 0.13.3 ipython 7.34.0 ipython-genutils 0.2.0 ipyvolume 0.5.2 ipywebrtc 0.6.0 ipywidgets 7.7.2 isochrones 2.1 isodate 0.6.1 isort 5.10.1 isosurfaces 0.1.0 itemadapter 0.6.0 itemloaders 1.0.4 itsdangerous 2.1.2 IVisual 0.2.88 jaraco.classes 3.2.1 jaraco.collections 3.4.0 jaraco.functools 3.4.0 jaraco.text 3.6.0 jax 0.4.11 jaxlib 0.4.11 jdcal 1.0 jedi 0.17.2 jeepney 0.7.1 jieba 0.42.1 jiminy-py 1.7.13 Jinja2 3.1.2 jinja2-time 0.2.0 jmespath 0.10.0 joblib 1.2.0 jplephem 2.18 jsmin 3.0.0 json5 0.9.8 jsonify 0.5 jsonlines 1.2.0 jsonpickle 2.2.0 jsonpointer 2.3 jsonschema 4.9.1 jupyter 1.0.0 jupyter_client 7.4.8 jupyter-console 6.4.4 jupyter-contrib-core 0.4.0 jupyter-contrib-nbextensions 0.5.1 jupyter_core 5.1.0 jupyter-highlight-selected-word 0.2.0 jupyter-kernel-gap 0.15 jupyter-latex-envs 1.4.6 jupyter-nbextensions-configurator 0.5.0 jupyter-server 1.23.3 jupyter-server-mathjax 0.2.6 jupyter-server-proxy 3.2.1 jupyter-telemetry 0.1.0 jupyterhub 2.3.1 jupyterlab 3.5.1 jupyterlab-pygments 0.2.2 jupyterlab-server 2.15.0 jupyterlab-widgets 1.1.1 jupytext 1.14.6 jwcrypto 1.0 k3d 2.14.5 kaptan 0.5.12 keras 2.12.0 Keras-Preprocessing 1.1.2 keyring 23.5.0 keyrings.alt 4.1.1 kiwisolver 1.3.2 kombu 5.2.3 korean-lunar-calendar 0.2.1 langcodes 3.3.0 latex2mathml 3.74.0 latexcodec 2.0.1 lattices 0.3.5 launchpadlib 1.10.16 lazr.restfulclient 0.14.4 lazr.uri 1.0.6 lazy-object-proxy 1.7.1 lckr-jupyterlab-variableinspector 3.0.9 learntools 0.3.4 leather 0.3.4 lesscpy 0.13.0 lfm 3.1 libclang 14.0.1 libcst 0.4.9 libpysal 4.6.2 libtmux 0.11.0 lime 0.2.0.1 line-profiler 3.5.1 linear-tsv 1.1.0 linearmodels 4.27 linkify-it-py 2.0.0 lit 15.0.7 llvmlite 0.40.0 lmfit 1.2.1 locket 1.0.0 lockfile 0.12.2 logilab-common 1.8.2 looseversion 1.0.1 lsqfit 12.0.3 LunarCalendar 0.0.9 lxml 4.8.0 lz4 3.1.3+dfsg mahotas 1.4.13 Mako 1.1.3 manim 0.16.0.post0 ManimPango 0.4.1 mapbox-earcut 0.12.11 mapclassify 2.4.3 Markdown 3.3.6 markdown-it-py 2.1.0 MarkupSafe 2.1.1 marshmallow 3.17.0 marshmallow-enum 1.5.1 matplotlib 3.6.3 matplotlib-inline 0.1.3 matplotlib-venn 0.11.7 mccabe 0.6.1 mdit-py-plugins 0.3.0 mdurl 0.1.1 mecab-python3 1.0.5 mechanize 0.4.7 meld 3.20.4 meld3 1.0.2 memory-profiler 0.60.0 mendeleev 0.10.0 mercantile 1.2.1 mercurial 6.1.1 Mesa 1.0.0 meshcat 0.3.2 meson 0.63.0 metaconfig 0.1.4a1 metakernel 0.29.0 mgwr 2.1.2 mip 1.14.0 missingno 0.5.1 mistune 2.0.4 ml-dtypes 0.2.0 mlrose 1.3.0 mlxtend 0.20.0 mobilechelonian 0.5 mock 4.0.3 mockito 1.3.3 moderngl 5.6.4 moderngl-window 2.4.1 molmass 2021.6.18 momepy 0.5.3 monty 2022.4.26 more-itertools 5.0.0 moviepy 1.0.3 mpi4py 3.1.3 mpld3 0.5.8 mpmath 0.0.0 msgpack 1.0.3 mshr 2019.2.0.dev0 msrest 0.7.1 multidict 6.0.2 multimethod 1.8 multipledispatch 0.6.0 multiprocess 0.70.13 multitasking 0.0.11 munch 2.5.0 murmurhash 1.0.7 music 0.7b2 music21 7.3.3 mxnet 1.9.1 mygene 3.2.2 mypy 1.3.0 mypy-extensions 1.0.0 mysqlclient 1.4.6 mzcli 3.0.0 nameparser 1.1.1 natsort 8.0.2 nbclassic 0.4.8 nbclient 0.6.3 nbconvert 7.2.7 nbdiff 1.0.3 nbdime 3.1.1 nbfinder 1.0.2 nbformat 5.7.0 nbval 0.10.0 negspacy 1.0.3 nest-asyncio 1.5.5 netCDF4 1.5.8 netifaces 0.11.0 networkx 2.8.3 NEURON 8.2.0 nglview 3.0.3 nibabel 4.0.1 nilearn 0.9.1 nine 1.1.0 ninja 1.10.2.3 nipype 1.8.3 nltk 3.7 nmslib 2.1.1 noaa-sdk 0.1.21 nose 1.3.7 nose2 0.9.2 notebook 6.5.2 notebook-shim 0.1.0 notedown 1.5.1 npTDMS 1.5.0 ntlm-auth 1.5.0 num2words 0.5.10 numba 0.57.0 numcodecs 0.10.2 numexpr 2.8.4 numpy 1.22.1 numpy-stl 2.17.1 numpydoc 1.4.0 numpyro 0.12.1 nvidia-cublas-cu11 11.10.3.66 nvidia-cuda-cupti-cu11 11.7.101 nvidia-cuda-nvrtc-cu11 11.7.99 nvidia-cuda-runtime-cu11 11.7.99 nvidia-cudnn-cu11 8.5.0.96 nvidia-cufft-cu11 10.9.0.58 nvidia-curand-cu11 10.2.10.91 nvidia-cusolver-cu11 11.4.0.1 nvidia-cusparse-cu11 11.7.4.91 nvidia-nccl-cu11 2.14.3 nvidia-nvtx-cu11 11.7.91 oauth2client 4.1.3 oauthlib 3.2.0 obspy 1.3.0 oct2py 5.6.0 octave_kernel 0.35.1 odfpy 1.4.2 odo 0.5.0 olefile 0.46 openai 0.27.7 opencv-contrib-python 4.6.0.66 opencv-python 4.6.0.66 openmdao 3.19.0 OpenPIV 0.24.2 openpyxl 3.0.9 opentimestamps 0.4.1 opentimestamps-client 0.7.0 openTSNE 0.6.2 opt-einsum 3.3.0 optlang 1.5.2 orange-canvas-core 0.1.27 orange-widget-base 4.17.0 Orange3 3.32.0 Orange3-Associate 1.1.9 ordered-set 4.1.0 orjson 3.9.0 ortools 9.6.2534 osbot-aws 0.6.51 osbot-browser 0.3.1 osbot-jupyter 0.4.2 oscrypto 1.3.0 osqp 0.6.2.post5 OWSLib 0.25.0 packaging 23.0 palettable 3.3.0 pamela 1.0.0 Panda3D 1.10.11 panda3d-simplepbr 0.10 panda3d-viewer 0.4.1 pandas 2.0.2 pandas-bokeh 0.5.5 pandas-datareader 0.10.0 pandas-profiling 3.6.6 pandas-stubs 1.5.2.221213 pandasql 0.7.3 pandoc-attributes 0.1.7 pandocfilters 1.5.0 panel 0.14.2 papermill 2.3.4 param 1.12.2 parameter-sherpa 1.0.6 paramiko 2.9.3 paramz 0.9.5 parse 1.6.6 parsedatetime 2.4 parsel 1.6.0 parso 0.7.1 partd 1.2.0 passlib 1.7.4 Paste 3.5.0 PasteDeploy 2.1.1 pastel 0.2.1 PasteScript 2.0.2 patchy 2.6.0 pathos 0.2.9 pathspec 0.9.0 pathy 0.10.1 patiencediff 0.2.1 patsy 0.5.2 pbr 5.8.0 pdfCropMargins 1.0.9 pdfkit 1.0.0 pdfminer.six 20191110 pdpipe 0.3.0 PeakUtils 1.3.3 pefile 2022.5.30 pendulum 2.1.2 pep517 0.12.0 pep8 1.7.1 periodictable 1.6.1 persistent 4.6.4 petsc4py 3.15.1 pexpect 4.8.0 pgmagick 0.7.6 pgmpy 0.1.19 pgspecial 2.0.1 phik 0.12.2 pick 0.6.4 pickleshare 0.7.5 Pillow 9.5.0 Pint 0.22 pip 23.1.2 pip-tools 6.8.0 pip-upgrader 1.4.15 pipdeptree 2.3.3 pipenv 2023.6.2 pipx 1.2.0 pivottablejs 0.9.0 pkgconfig 1.5.5 pkginfo 1.8.2 plaster 1.0 plaster-pastedeploy 0.5 platformdirs 3.2.0 playwright 1.30.0 plotchecker 0.2.0 plotly 5.14.1 plotly-express 0.4.1 PLTable 1.0.2 pluggy 0.13.0 ply 3.11 pmdarima 1.8.5 pods 0.1.13 pointpats 2.2.0 poliastro 0.17.0 pomegranate 0.14.8 portalocker 2.7.0 portend 3.0.0 powerline-status 2.8.2 pox 0.3.1 ppft 1.7.6.5 praw 7.1.4 prawcore 1.5.0 preshed 3.0.6 pretext 1.6.0 prettytable 0.7.2 prince 0.7.1 proglog 0.1.10 progressbar 2.5 progressbar2 4.0.0 prometheus-client 0.14.1 prompt-toolkit 3.0.28 property-cached 1.6.4 prophet 1.1 Protego 0.2.1 proto-plus 1.22.2 protobuf 4.23.2 prov 2.0.0 ProxyTypes 0.10.0 psutil 5.9.0 psycopg 3.0.15 psycopg2 2.9.3 ptyprocess 0.7.0 pudb 2020.1 PuLP 2.5.1 pure-eval 0.2.2 pwlf 2.2.1 py 1.10.0 py-cpuinfo 5.0.0 py3dns 3.2.1 py7zr 0.11.3+dfsg pyaes 1.6.1 pyaml 21.10.1 pyarrow 10.0.1 pyasn1 0.4.8 pyasn1-modules 0.2.8 pybedtools 0.9.0 pyberny 0.6.3 pybids 0.15.2 pybind11 2.6.1 pybtex 0.24.0 pycairo 1.20.1 pycddlib 2.1.6 pychm 0.8.6 pycodestyle 2.10.0 pycodestyle_magic 0.5 pycparser 2.21 pycryptodome 3.15.0 pycryptodomex 3.11.0 pyct 0.4.8 pycurl 7.44.1 pydantic 1.8.2 pydash 5.1.0 pydata-google-auth 1.7.0 pydataset 0.2.0 pydeck 0.7.1 pydens 1.0.2 pydicom 2.3.0 PyDispatcher 2.0.5 pydocstyle 6.1.1 pyDOE 0.3.8 pyDOE2 1.3.0 pydot 1.4.2 pydot-ng 2.0.0 pydub 0.25.1 pydyf 0.6.0 pyee 9.0.4 pyephem 9.99 pyerfa 2.0.0.1 pyfair 0.1a12 pyFFTW 0.13.0 pyfiglet 0.8.post1 pyflakes 2.4.0 pyfolio 0.9.2 pyfunctional 1.4.3 pygam 0.8.0 pygame 2.1.2 pygeos 0.12.0 pygg 0.1.13 pygit2 1.6.1 PyGithub 1.55 pyglet 1.5.26 Pygments 2.13.0 PyGObject 3.42.1 pygraphviz 1.9 pygsheets 2.0.5 pyhdfe 0.1.0 pyinotify 0.9.6 PyJWT 2.3.0 pykerberos 1.1.14 PyLaTeX 1.4.1 pyLDAvis 3.3.1 pylev 1.4.0 pylibacl 0.6.0 pylint 2.14.5 pyls-black 0.4.6 pyls-spyder 0.4.0 pymatgen 2022.7.25 pymc3 3.11.5 PyMeeus 0.5.11 pymia 0.1.9 pymongo 4.2.0 pymorton 1.0.5 pymp-pypi 0.5.0 Pympler 1.0.1 PyNaCl 1.5.0 pyneqsys 0.5.7 pyngrok 5.1.0 pynndescent 0.5.7 pynvim 0.4.2 pyodesys 0.14.1 Pyomo 6.4.1 pyopencl 2021.2.13 PyOpenGL 3.1.5 pyOpenSSL 21.0.0 pyparsing 3.0.9 pyPdf 1.13 PyPDF2 2.5.0 pyphen 0.12.0 pypoman 0.5.4 pyppeteer 1.0.2 pyproj 3.3.1 PyQt5 5.15.6 PyQt5-sip 12.9.1 pyqtgraph 0.12.3 PyQtWebEngine 5.15.5 pyquery 1.4.3 pyramid 2.0 pyreadstat 1.1.9 pyro-api 0.1.2 pyro-ppl 1.8.4 Pyro4 4.82 pyrr 0.10.3 pyrsistent 0.18.1 pysal 2.7.0 pysam 0.19.1 pysbd 0.3.4 pyscf 2.1.1 pyScss 1.3.7 pysha3 1.0.2 pyshp 2.3.0 pysimdjson 5.0.2 pysmi 0.3.2 pysnmp 4.4.12 PySocks 1.7.1 pyspark-kernel 0.3.0 PySpice 1.5 pystache 0.6.0 pystan 3.6.0 pysvn 1.9.15 pyswarms 1.3.0 pytest 7.1.3 pytest-arraydiff 0.5.0 pytest-astropy 0.9.0 pytest-astropy-header 0.2.0 pytest-base-url 1.4.2 pytest-cov 3.0.0 pytest-cover 3.0.0 pytest-doctestplus 0.11.2 pytest-filter-subpackage 0.1.1 pytest-forked 1.4.0 pytest-html 3.1.1 pytest-ipynb 1.1.1 pytest-metadata 2.0.2 pytest-mock 3.8.2 pytest-openfiles 0.5.0 pytest-param 0.1.1 pytest-remotedata 0.3.3 pytest-repeat 0.9.1 pytest-timeout 2.1.0 pytest-variables 2.0.0 pytest-watch 4.2.0 pytest-xdist 2.5.0 pytheos 0.0.1.dev30 python-apt 2.4.0+ubuntu1 python-bitcoinlib 0.10.2 python-casacore 3.4.0 python-dateutil 2.8.2 python-debian 0.1.43ubuntu1 python-distutils-extra 2.39 python-djvulibre 0.8.4 python-docx 0.8.11 python-gitlab 2.10.1 python-gnupg 0.4.8 python-igraph 0.9.11 python-json-logger 2.0.4 python-jsonrpc-server 0.4.0 python-language-server 0.36.2 python-Levenshtein 0.12.2 python-libsbml 5.19.6 python-louvain 0.16 python-lsp-jsonrpc 1.0.0 python-lsp-server 1.3.3 python-lzo 1.12 python-memcached 1.58 python-multipart 0.0.5 python-osc 1.8.0 python-potr 1.0.2 python-pptx 0.6.21 python-slugify 6.1.2 python-sonic 0.4.3 python-termstyle 0.1.10 python-twitter 3.5 python-uinput 0.11.2 python-utils 3.3.3 pythran 0.10.0 pythreejs 2.3.0 pytimeparse 1.1.8 pytools 2021.2.8 pytutor 1.0.0 pytype 2023.6.2 pytz 2023.3 pytzdata 2020.1 pyudorandom 1.0.0 pyvis 0.2.1 pyvista 0.35.2 pyviz-comms 2.2.0 pyvo 1.3 PyWavelets 1.3.0 pyxattr 0.7.2 pyxdg 0.27 PyYAML 5.4.1 pyzmq 24.0.1 qasync 0.23.0 QDarkStyle 2.8.1 qdldl 0.1.5.post2 qgrid 1.3.1 qiskit 0.42.1 qiskit-aer 0.12.0 qiskit-ibmq-provider 0.20.2 qiskit-terra 0.23.3 qrcode 7.3.1 QScintilla 2.11.6 QtAwesome 1.1.1 qtconsole 5.3.1 QtPy 2.1.0 Quandl 3.7.0 quantecon 0.5.3 quantities 0.13.0 QuantLib 1.27 QuantStats 0.0.59 queuelib 1.6.2 quilt3 5.0.0 qutip 4.7.0 ranger-fm 1.9.3 rapidfuzz 2.13.2 rasterio 1.3.0 rasterstats 0.19.0 ratelim 0.1.6 rawpy 0.17.1 rdflib 6.1.1 rdkit-pypi 2022.3.4 recommonmark 0.7.1 rednose 0.4.1 regex 2021.11.10 releases 1.6.3 rencode 1.0.6 repoze.lru 0.7 reproject 0.8 requests 2.28.2 requests-cache 0.9.7 requests-file 1.5.1 requests-futures 1.0.0 requests-html 0.10.0 requests-ntlm 1.1.0 requests-oauthlib 1.3.1 requests-toolbelt 0.9.1 resolvelib 0.8.1 retworkx 0.11.0 rfc3986 1.5.0 rich 11.2.0 richdem 0.3.4 rise 5.7.1 roman 3.3 rope 0.22.0 Routes 2.5.1 rpy2 3.5.12 rsa 4.7.2 Rtree 0.9.7 ruamel.yaml 0.17.21 ruamel.yaml.clib 0.2.6 runipy 0.1.5 rustworkx 0.12.1 rvlib 0.0.6 s3transfer 0.6.0 SALib 1.4.5 schedule 1.1.0 scikit-bio 0.5.7 scikit-fuzzy 0.4.2 scikit-image 0.19.3 scikit-learn 1.2.2 scikit-MDR 0.4.4 scikit-optimize 0.9.0 scikit-posthocs 0.7.0 scikit-rf 0.23.1 scikit-surprise 1.1.1 scipy 1.10.1 scispacy 0.5.1 SCons 4.0.1 scooby 0.6.0 scoop 0.7.1.1 scour 0.38.2 Scrapy 2.6.2 screed 1.0.5 screeninfo 0.8 scs 3.2.0 seaborn 0.12.2 SecretStorage 3.3.1 segregation 2.3.1 seirsplus 1.0.9 selenium 3.141.0 semantic-version 2.8.5 semver 2.13.0 Send2Trash 1.8.0 sentence-transformers 2.2.2 sentencepiece 0.1.97 sep 1.2.1 serpent 1.40 serverfiles 0.3.1 service-identity 21.1.0 setproctitle 1.2.2 setuptools 67.8.0 setuptools-git 1.2 setuptools-scm 6.4.2 sgmllib3k 1.0.0 sgp4 2.21 sh 1.14.2 Shapely 1.8.2 shiny 0.3.3 shortuuid 1.0.8 simanneal 0.5.0 simpervisor 0.4 simpleaudio 1.0.4 simplejson 3.17.6 SimPy 2.3.1 single-version 1.5.1 six 1.16.0 skia-pathops 0.7.2 sklearn 0.0 sklearn-pandas 2.2.0 sklearn-porter 0.7.4 skrebate 0.62 sktime 0.15.0 skutil 0.0.18 skyfield 1.45 slepc4py 3.15.1 slycot 0.5.2 smart-open 5.2.1 smmap 5.0.0 sniffio 1.2.0 snowballstemmer 2.2.0 snowflake-connector-python 3.0.1 snuggs 1.4.7 sortedcontainers 2.1.0 SoundFile 0.10.3.post1 soupsieve 2.3.1 sourceinspect 0.0.4 sox 1.4.1 spacy 3.5.3 spacy-legacy 3.0.12 spacy-loggers 1.0.3 spaghetti 1.6.6 sparqlkernel 1.3.0 SPARQLWrapper 1.8.5 SpeechRecognition 3.8.1 spglib 1.16.2 spglm 1.0.8 sphere 0.0.0 Sphinx 6.2.1 sphinx-gallery 0.11.0 sphinx-rtd-theme 1.2.1 sphinx-sitemap 2.5.0 sphinxcontrib-applehelp 1.0.2 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 2.0.0 sphinxcontrib-jquery 2.0.0 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.5 sphinxcontrib-websupport 1.2.4 spint 1.0.7 splot 1.1.5.post1 spopt 0.4.1 spreg 1.2.4 spur 0.3.21 spvcm 0.3.0 spyder 4.2.1 spyder-kernels 1.10.2 SQLAlchemy 1.4.39 sqlparse 0.3.1 squarify 0.4.3 srsly 2.4.4 srt 3.5.2 ssh-import-id 5.11 stack-data 0.5.0 stapler 1.0.0 starlette 0.20.4 statsmodels 0.13.5 stevedore 4.0.0 stopit 1.1.2 strct 0.0.32 streamlit 1.22.0 strictyaml 1.6.1 suds-community 1.1.2 sunlight 1.1.5 supervisor 4.2.1 sure 2.0.0 svsound 0.0.6 swiglpk 4.65.1 sym 0.3.5 symengine 0.9.2 sympy 1.9 syncer 1.3.0 tables 3.7.0 tableschema 1.20.2 tabulate 0.8.10 tabulator 1.53.5 taichi 1.0.4 tangled-up-in-unicode 0.2.0 tblib 1.7.0 tdigest 0.5.2.2 Tempita 0.5.2 templateflow 0.8.1 tempora 4.1.2 tenacity 8.2.2 teneto 0.5.3 tensorboard 2.12.0 tensorboard-data-server 0.7.0 tensorboard-plugin-wit 1.8.1 tensorflow 2.12.0 tensorflow-estimator 2.12.0 tensorflow-io-gcs-filesystem 0.26.0 tensorflow-probability 0.20.1 tensorly 0.7.0 termcolor 1.1.0 terminado 0.15.0 terminaltables 3.1.10 tesserocr 2.5.2 testpath 0.6.0 testresources 2.0.1 testtools 2.5.0 texsurgery 0.6.3 text-unidecode 1.3 textblob 0.17.1 textdistance 4.2.2 textstat 0.7.3 texttable 1.6.4 textwrap3 0.9.2 Theano-PyMC 1.1.2 thinc 8.1.9 threadpoolctl 3.1.0 three-merge 0.1.1 thrift 0.16.0 tifffile 2022.5.4 tikzplotlib 0.10.1 timml 6.0.1 tinycss2 1.1.1 tinydb 4.7.0 tldextract 3.3.1 tmuxp 1.11.1 tobler 0.9.0 tokenizers 0.13.2 toml 0.10.2 tomli 2.0.1 tomlkit 0.11.1 toolz 0.12.0 torch 2.0.1 torchaudio 2.0.1+cpu torchvision 0.15.2 tornado 6.2 tox 3.21.4 TPOT 0.11.7 tqdm 4.65.0 traitlets 5.6.0 traits 6.3.2 traittypes 0.2.1 transformers 4.24.0 translationstring 1.4 trimesh 3.12.9 triton 2.0.0 tweedledum 1.1.1 tweepy 4.10.1 Twisted 22.4.0 twitter 1.19.3 typeguard 2.13.3 typer 0.4.2 types-pytz 2022.7.0.0 typing_extensions 4.6.3 typing-inspect 0.7.1 tzdata 2023.3 tzlocal 2.1 tzwhere 3.0.3 u-msgpack-python 2.7.1 ubuntu-advantage-tools 8001 uc-micro-py 1.0.1 ufoLib2 0.13.1 ujson 5.4.0 umap-learn 0.5.3 unattended-upgrades 0.1 uncertainties 3.1.7 unicodecsv 0.14.1 unicodedata2 14.0.0 Unidecode 1.3.4 UNKNOWN 0.0.0 update-checker 0.18.0 uritemplate 3.0.1 uritools 3.0.2 url-normalize 1.4.3 urllib3 1.26.11 urwid 2.1.2 userpath 1.8.0 uvicorn 0.18.2 vaderSentiment 3.3.2 validators 0.20.0 vega-datasets 0.9.0 vega3 0.13.0 venusian 3.0.0 vine 5.0.0 virtualenv 20.23.0 virtualenv-clone 0.5.7 virtualenvwrapper 4.8.4 visions 0.7.5 vpnotebook 0.1.3 vtk 9.2.0rc2 w3lib 1.22.0 wadllib 1.3.6 Wand 0.6.7 wasabi 0.9.1 watchdog 2.1.9 watermark 2.3.1 wcwidth 0.2.5 weasyprint 59.0 webargs 8.2.0 webcolors 1.12 webencodings 0.5.1 WebOb 1.8.6 websocket-client 1.5.1 websockets 10.3 websockify 0.10.0 Werkzeug 2.3.3 wget 3.2 wheel 0.37.1 whois 0.8 Whoosh 2.7.4 widgetsnbextension 3.6.1 wordcloud 1.8.2.2 wquantiles 0.6 wrapt 1.13.3 ws4py 0.4.2 wslink 1.6.6 wurlitzer 3.0.2 wxPython 4.0.7 xarray 2022.6.0 xarray-einstats 0.3.0 xdg 5 xgboost 1.6.1 xlrd 2.0.1 XlsxWriter 3.0.8 xlwt 1.3.0 xmlsec 1.3.12 xpra 3.1 xyzservices 2022.6.0 yapf 0.33.0 yarl 1.7.2 ydata-profiling 4.0.0 yfinance 0.1.74 zc.lockfile 2.0 zeep 4.1.0 zeroconf 0.38.3 zict 2.2.0 zipp 1.0.0 zope.deprecation 4.4.0 zope.interface 5.4.0 zopfli 0.2.1
model = sm.tsa.SimpleExpSmoothing(time_series_data).fit()
--------------------------------------------------------------------------- NameError Traceback (most recent call last) /tmp/ipykernel_1174/355211648.py in <cell line: 1>() ----> 1 model = sm.tsa.SimpleExpSmoothing(time_series_data).fit() NameError: name 'sm' is not defined

After the model is fit, we can use the forecast() function to generate values for future time periods. We will generate values for the next 12 months.

forecast_values = model.forecast(steps=12)

Finally, we can create a plot to display the original time series data and the forecasted values. We will use the matplotlib library for this.

import matplotlib.pyplot as plt plt.plot(time_series_data, label='Original Time-Series Data') plt.plot(forecast_values, label='Forecasted Values') plt.legend() plt.show()

The plot generated by the above code will show the original time series data and the forecasted values for the next 12 months.