Skip to content

Commit

Permalink
fixed minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bckenstler committed Aug 16, 2017
1 parent 1f701b9 commit 7a3b397
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
24 changes: 19 additions & 5 deletions deeplearning2/densenet-keras.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -180,7 +182,9 @@
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -569,6 +573,7 @@
"cell_type": "code",
"execution_count": 21,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -649,7 +654,9 @@
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -697,6 +704,7 @@
"cell_type": "code",
"execution_count": 26,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -779,6 +787,7 @@
"cell_type": "code",
"execution_count": 28,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -900,6 +909,7 @@
"cell_type": "code",
"execution_count": 30,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -981,6 +991,7 @@
"cell_type": "code",
"execution_count": 32,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -1047,6 +1058,7 @@
"cell_type": "code",
"execution_count": 34,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -1123,7 +1135,9 @@
{
"cell_type": "code",
"execution_count": 35,
"metadata": {},
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -1174,7 +1188,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.0"
"version": "3.6.2"
}
},
"nbformat": 4,
Expand Down
17 changes: 2 additions & 15 deletions deeplearning2/imagenet_process.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
},
"outputs": [],
"source": [
"model = word2vec.Word2Vec.load_word2vec_format(w2v_path+'.bin', binary=True)\n",
"model = word2vec.KeyedVectors.load_word2vec_format(w2v_path+'.bin', binary=True)\n",
"model.save_word2vec_format(w2v_path+'.txt', binary=False)"
]
},
Expand Down Expand Up @@ -1421,19 +1421,6 @@
"lm.compile('adam','cosine_proximity')"
]
},
{
"cell_type": "code",
"execution_count": 65,
"metadata": {
"collapsed": false,
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
"v = np.concatenate([vecs, vecs])"
]
},
{
"cell_type": "code",
"execution_count": 68,
Expand All @@ -1455,7 +1442,7 @@
}
],
"source": [
"lm.evaluate(features_last, v, verbose=0)"
"lm.evaluate(features_last, vecs, verbose=0)"
]
},
{
Expand Down

0 comments on commit 7a3b397

Please sign in to comment.