From a8578afe2844cdbcb0af870ecef1e30045b53149 Mon Sep 17 00:00:00 2001 From: ixaxaar Date: Sun, 29 Oct 2017 22:18:04 +0530 Subject: [PATCH 1/3] test travis build --- test/test_gru.py | 5 ++--- test/test_lstm.py | 5 ++--- test/test_rnn.py | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/test/test_gru.py b/test/test_gru.py index 9d75f8f..2213629 100644 --- a/test/test_gru.py +++ b/test/test_gru.py @@ -15,10 +15,9 @@ import sys import os import math import time -sys.path.append('./src/') -sys.path.insert(0, os.path.join('..', '..')) +sys.path.append('./dnc/') -from dnc.dnc import DNC +from dnc import DNC from test_utils import generate_data, criterion diff --git a/test/test_lstm.py b/test/test_lstm.py index c61c0b3..22292b5 100644 --- a/test/test_lstm.py +++ b/test/test_lstm.py @@ -15,10 +15,9 @@ import sys import os import math import time -sys.path.append('./src/') -sys.path.insert(0, os.path.join('..', '..')) +sys.path.append('./dnc/') -from dnc.dnc import DNC +from dnc import DNC from test_utils import generate_data, criterion diff --git a/test/test_rnn.py b/test/test_rnn.py index ba9b609..c9c7094 100644 --- a/test/test_rnn.py +++ b/test/test_rnn.py @@ -15,10 +15,9 @@ import sys import os import math import time -sys.path.append('./src/') -sys.path.insert(0, os.path.join('..', '..')) +sys.path.append('./dnc/') -from dnc.dnc import DNC +from dnc import DNC from test_utils import generate_data, criterion From 68ac78b8b7f695c7431429a0e4dee972ca8578cf Mon Sep 17 00:00:00 2001 From: ixaxaar Date: Sun, 29 Oct 2017 22:45:11 +0530 Subject: [PATCH 2/3] fix paths, "works on my computer syndrome" --- test/test_gru.py | 2 +- test/test_lstm.py | 2 +- test/test_rnn.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_gru.py b/test/test_gru.py index 2213629..027d957 100644 --- a/test/test_gru.py +++ b/test/test_gru.py @@ -15,7 +15,7 @@ import sys import os import math import time -sys.path.append('./dnc/') +sys.path.insert(0, '.') from dnc import DNC from test_utils import generate_data, criterion diff --git a/test/test_lstm.py b/test/test_lstm.py index 22292b5..db2858e 100644 --- a/test/test_lstm.py +++ b/test/test_lstm.py @@ -15,7 +15,7 @@ import sys import os import math import time -sys.path.append('./dnc/') +sys.path.insert(0, '.') from dnc import DNC from test_utils import generate_data, criterion diff --git a/test/test_rnn.py b/test/test_rnn.py index c9c7094..3df8b08 100644 --- a/test/test_rnn.py +++ b/test/test_rnn.py @@ -15,7 +15,7 @@ import sys import os import math import time -sys.path.append('./dnc/') +sys.path.insert(0, '.') from dnc import DNC from test_utils import generate_data, criterion From 76314723d98e9ad8b21e0215845f743ca5f14998 Mon Sep 17 00:00:00 2001 From: ixaxaar Date: Sun, 29 Oct 2017 22:53:28 +0530 Subject: [PATCH 3/3] add badges aww yeah --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 238c3a0..d863faa 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Differentiable Neural Computer, for Pytorch +[![Build Status](https://travis-ci.org/ixaxaar/pytorch-dnc.svg?branch=master)](https://travis-ci.org/ixaxaar/pytorch-dnc) [![PyPI version](https://badge.fury.io/py/dnc.svg)](https://badge.fury.io/py/dnc) + This is an implementation of [Differentiable Neural Computers](http://people.idsia.ch/~rupesh/rnnsymposium2016/slides/graves.pdf), described in the paper [Hybrid computing using a neural network with dynamic external memory, Graves et al.](https://www.nature.com/articles/nature20101) ## Install