Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes to midas_demo.ipynb #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions midas_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"outputs": [],
"source": [
"from midas import Midas\n",
"from midas import MIDAS\n",
"from sklearn.preprocessing import MinMaxScaler\n",
"import numpy as np\n",
"import pandas as pd\n",
Expand Down Expand Up @@ -52,7 +52,7 @@
" return spike_in\n",
"\n",
"spike_in = spike_in_generation(data_0)\n",
"original value = data_0.iloc[50, 0]\n",
"original_value = data_0.iloc[50, 0]\n",
"data_0[spike_in == 1] = np.nan"
]
},
Expand Down Expand Up @@ -148,7 +148,7 @@
"metadata": {},
"outputs": [],
"source": [
"??Midas.generate_samples()"
"??MIDAS.generate_samples()"
]
},
{
Expand All @@ -157,7 +157,7 @@
"metadata": {},
"outputs": [],
"source": [
"??Midas"
"??MIDAS"
]
},
{
Expand Down Expand Up @@ -225,7 +225,7 @@
"print(\"Imputed values:\")\n",
"print(imputed_vals)\n",
"print(\"Imputation mean:\", np.mean(imputed_vals))\n",
"print(\"Imputation standard deviation:\", np.stddev(imputed_vals))"
"print(\"Imputation standard deviation:\", np.std(imputed_vals))"
]
},
{
Expand Down