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

Fix example notebooks #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
31 changes: 18 additions & 13 deletions examples/multivariate_time_series_classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -23,7 +23,7 @@
"\n",
"from sklearn.model_selection import GridSearchCV\n",
"from sktime.datasets import load_basic_motions\n",
"from sktime_dl.deeplearning import CNNClassifier\n",
"from sktime_dl.classification import CNNClassifier\n",
"\n",
"sns.set_style('whitegrid') "
]
Expand All @@ -38,7 +38,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -344,7 +344,7 @@
"3... "
]
},
"execution_count": 6,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -357,7 +357,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand All @@ -366,7 +366,7 @@
"array(['badminton', 'running', 'standing', 'walking'], dtype='<U9')"
]
},
"execution_count": 7,
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -386,7 +386,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand All @@ -395,7 +395,7 @@
"0.975"
]
},
"execution_count": 8,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -418,16 +418,18 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"WARNING:tensorflow:5 out of the last 5 calls to <function Model.make_predict_function.<locals>.predict_function at 0x7f92202dbd08> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details.\n",
"WARNING:tensorflow:6 out of the last 6 calls to <function Model.make_predict_function.<locals>.predict_function at 0x7f920c450a60> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has experimental_relax_shapes=True option that relaxes argument shapes that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details.\n",
"Best cross-validation accuracy: 0.30\n",
"Test set score: 0.95\n",
"Best parameters: {'avg_pool_size': 3, 'kernel_size': 7}\n"
"Test set score: 0.97\n",
"Best parameters: {'avg_pool_size': 3, 'kernel_size': 9}\n"
]
}
],
Expand All @@ -445,10 +447,13 @@
],
"metadata": {
"file_extension": ".py",
"interpreter": {
"hash": "f3450e8c3d94667823cbd249e39f48751496baf296bd9f48014f45b9f5879e48"
},
"kernelspec": {
"display_name": "Python 3.7.5 64-bit ('sktime_env': conda)",
"language": "python",
"name": "python37564bitsktimeenvconda32171b479f94475faca0770add1f14dc"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -460,7 +465,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.5"
"version": "3.6.15"
},
"mimetype": "text/x-python",
"name": "python",
Expand Down
Loading