"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "notebooks/saturating_forecasts.ipynb" between
prophet-1.1.tar.gz and prophet-1.1.1.tar.gz

About: Prophet is a tool for producing high quality forecasts for time series data that has multiple seasonality with linear or non-linear growth.

saturating_forecasts.ipynb  (prophet-1.1):saturating_forecasts.ipynb  (prophet-1.1.1)
skipping to change at line 13 skipping to change at line 13
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 1, "execution_count": 1,
"metadata": { "metadata": {
"block_hidden": true "block_hidden": true
}, },
"outputs": [], "outputs": [],
"source": [ "source": [
"%load_ext rpy2.ipython\n", "%load_ext rpy2.ipython\n",
"%matplotlib inline\n", "%matplotlib inline\n",
"\n",
"from prophet import Prophet\n", "from prophet import Prophet\n",
"import pandas as pd\n", "import pandas as pd\n",
"import logging\n", "import logging\n",
"logging.getLogger('prophet').setLevel(logging.ERROR)\n",
"import warnings\n", "import warnings\n",
"\n",
"logging.getLogger('prophet').setLevel(logging.ERROR)\n",
"warnings.filterwarnings(\"ignore\")" "warnings.filterwarnings(\"ignore\")"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 2,
"metadata": { "metadata": {
"block_hidden": true "block_hidden": true
}, },
"outputs": [ "outputs": [
skipping to change at line 62 skipping to change at line 64
"Prophet allows you to make forecasts using a [logistic growth](https://en.w ikipedia.org/wiki/Logistic_function) trend model, with a specified carrying capa city. We illustrate this with the log number of page visits to the [R (programmi ng language)](https://en.wikipedia.org/wiki/R_%28programming_language%29) page o n Wikipedia:" "Prophet allows you to make forecasts using a [logistic growth](https://en.w ikipedia.org/wiki/Logistic_function) trend model, with a specified carrying capa city. We illustrate this with the log number of page visits to the [R (programmi ng language)](https://en.wikipedia.org/wiki/R_%28programming_language%29) page o n Wikipedia:"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 3,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"%%R\n", "%%R\n",
"df <- read.csv('../examples/example_wp_log_R.csv')" "df <- read.csv('https://raw.githubusercontent.com/facebook/prophet/main/exa mples/example_wp_log_peyton_manning.csv')"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 2,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"df = pd.read_csv('../examples/example_wp_log_R.csv')" "df = pd.read_csv('https://raw.githubusercontent.com/facebook/prophet/main/e xamples/example_wp_log_peyton_manning.csv')"
] ]
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"We must specify the carrying capacity in a column `cap`. Here we will assum e a particular value, but this would usually be set using data or expertise abou t the market size." "We must specify the carrying capacity in a column `cap`. Here we will assum e a particular value, but this would usually be set using data or expertise abou t the market size."
] ]
}, },
{ {
skipping to change at line 297 skipping to change at line 299
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"To use a logistic growth trend with a saturating minimum, a maximum capacit y must also be specified." "To use a logistic growth trend with a saturating minimum, a maximum capacit y must also be specified."
] ]
} }
], ],
"metadata": { "metadata": {
"kernelspec": { "kernelspec": {
"display_name": "Python 3", "display_name": "Python 3 (ipykernel)",
"language": "python", "language": "python",
"name": "python3" "name": "python3"
}, },
"language_info": { "language_info": {
"codemirror_mode": { "codemirror_mode": {
"name": "ipython", "name": "ipython",
"version": 3 "version": 3
}, },
"file_extension": ".py", "file_extension": ".py",
"mimetype": "text/x-python", "mimetype": "text/x-python",
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.8.3" "version": "3.8.10"
} }
}, },
"nbformat": 4, "nbformat": 4,
"nbformat_minor": 1 "nbformat_minor": 4
} }
 End of changes. 8 change blocks. 
6 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)