Skip to content

Commit aa4891f

Browse files
committed
fix failed unittest
1 parent b3100e1 commit aa4891f

File tree

6 files changed

+290
-181
lines changed

6 files changed

+290
-181
lines changed

compare.ipynb

+15-3
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,26 @@
2020
"cell_type": "code",
2121
"execution_count": 1,
2222
"metadata": {},
23-
"outputs": [],
23+
"outputs": [
24+
{
25+
"name": "stderr",
26+
"output_type": "stream",
27+
"text": [
28+
"/Users/william/miniconda3/envs/nn2/lib/python3.6/site-packages/tensorflow_addons/utils/ensure_tf_install.py:44: UserWarning: You are currently using a nightly version of TensorFlow (2.4.0-dev20200804). \n",
29+
"TensorFlow Addons offers no support for the nightly versions of TensorFlow. Some things might work, some other might not. \n",
30+
"If you encounter a bug, do not file an issue on GitHub.\n",
31+
" UserWarning,\n"
32+
]
33+
}
34+
],
2435
"source": [
2536
"import numpy as np\n",
2637
"\n",
2738
"## Import from local directory\n",
2839
"import sys\n",
2940
"sys.path.insert(0, './fnn')\n",
30-
"from models import LSTMEmbedding, MLPEmbedding, ETDEmbedding, AMIEmbedding, TICAEmbedding, FNN\n",
41+
"from models import LSTMEmbedding, MLPEmbedding, ETDEmbedding, AMIEmbedding, TICAEmbedding\n",
42+
"from regularizers import FNN\n",
3143
"\n",
3244
"import matplotlib.pyplot as plt\n",
3345
"from mpl_toolkits.mplot3d import axes3d\n",
@@ -55,7 +67,7 @@
5567
{
5668
"data": {
5769
"text/plain": [
58-
"[<matplotlib.lines.Line2D at 0x1538c7f28>]"
70+
"[<matplotlib.lines.Line2D at 0x150ada748>]"
5971
]
6072
},
6173
"execution_count": 2,

demos.ipynb

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"## Import from local directory\n",
3131
"import sys\n",
3232
"sys.path.insert(0, './fnn')\n",
33-
"from models import LSTMEmbedding, MLPEmbedding, FNN\n",
33+
"from models import LSTMEmbedding, MLPEmbedding\n",
34+
"from regularizers import FNN\n",
3435
"\n",
3536
"plt.rcParams['lines.linewidth'] = .1\n",
3637
"plt.rcParams['axes.prop_cycle'] = plt.cycler(color=\"k\") \n",
@@ -62,7 +63,7 @@
6263
{
6364
"data": {
6465
"text/plain": [
65-
"[<matplotlib.lines.Line2D at 0x15cbdbb00>]"
66+
"[<matplotlib.lines.Line2D at 0x15ce04b70>]"
6667
]
6768
},
6869
"execution_count": 2,

exploratory.ipynb

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"## Import from local directory\n",
2929
"import sys\n",
3030
"sys.path.insert(0, './fnn')\n",
31-
"from models import LSTMEmbedding, MLPEmbedding, FNN\n",
31+
"from models import LSTMEmbedding, MLPEmbedding\n",
32+
"from regularizers import FNN\n",
3233
"\n",
3334
"import matplotlib.pyplot as plt\n",
3435
"from mpl_toolkits.mplot3d import axes3d\n",

0 commit comments

Comments
 (0)