Skip to content

Instantly share code, notes, and snippets.

@carlomazzaferro
Created March 27, 2020 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlomazzaferro/41c13d73067c08f9a7c2f5b148eccbe0 to your computer and use it in GitHub Desktop.
Save carlomazzaferro/41c13d73067c08f9a7c2f5b148eccbe0 to your computer and use it in GitHub Desktop.
Prophet's Memory Usage
from fbprophet import Prophet
import io
import requests
url = "https://raw.githubusercontent.com/facebook/prophet/master/examples/example_wp_log_peyton_manning.csv"
s = requests.get(url).content
df = pandas.read_csv(io.StringIO(s.decode('utf-8')))
m = Prophet()
m.fit(df)
# get size implementation: https://stackoverflow.com/a/30316760/2896045
print(f'Model size: {getsize(m) * 1E-6} MB')
# Model size: 2039.259994 MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment