Created
March 27, 2020 12:53
-
-
Save carlomazzaferro/41c13d73067c08f9a7c2f5b148eccbe0 to your computer and use it in GitHub Desktop.
Prophet's Memory Usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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