Code Monkey home page Code Monkey logo

Comments (5)

mjmnzg avatar mjmnzg commented on July 2, 2024

Hello, I have the same problem. Can you say me if you fixed it? Thanks.

from nips2015_vrnn.

MistQue avatar MistQue commented on July 2, 2024

Hi, i rewrite the code of slices function of iamondb.py in path /nips2015_vrnn/datasets

  def slices(self, start, end):
      batches = [mat[start:end] for mat in self.data]
      label_batches = [mat[start:end] for mat in self.labels]
      #mask = self.create_mask(batches[0].swapaxes(0, 1))
      len_batches = len(batches[0].shape)
      if(len_batches <= 1):
        mask = self.create_mask(batches[0])
      else:
        mask = self.create_mask(batches[0].swapaxes(0, 1))
      batches = [self.zero_pad(batch) for batch in batches]
      #label_mask = self.create_mask(label_batches[0].swapaxes(0, 1))
      len_label_batches = len(label_batches[0].shape)
      if(len_label_batches <= 1):
        label_mask = self.create_mask(label_batches[0])
      else:
        label_mask = self.create_mask(label_batches[0].swapaxes(0, 1))
      label_batches = [self.zero_pad(batch) for batch in label_batches]

      if self.cond:
          return totuple([batches[0], mask, label_batches[0], label_mask])
      else:
          return totuple([batches[0], mask])

from nips2015_vrnn.

mjmnzg avatar mjmnzg commented on July 2, 2024

Thank very much for your help! It works! Now, I'm happy.
Best regards!.

from nips2015_vrnn.

DongGuangchang avatar DongGuangchang commented on July 2, 2024

Dear Xin Yang
I saw that you used Mr. Yaseen's program about the recurrent neural networkhttps on the site ://github.com/uyaseen/theano-recurrence/issues/1,I also used this procedure, but encountered some problems, would like to ask you.
I encountered some difficulties when debugging your program on recurrent neural networks:
first, it has a error when debugging sample.py . ERROR (theano.sandbox.cuda): nvcc compiler not found on $PATH. Check your nvcc installation and try again.
data size: 49388, vocab size: 75
train(..)
load_data(..)
[Train] # of rows: 987
... transferring data to the GPU
Traceback (most recent call last):
... building the model
File "F:/DL-File/RNN/theano-recurrence-b9b8a82410be005d5a3121345e8d62c5ca547982/train.py", line 145, in
n_h=100, use_existing_model=True, n_epochs=600)
File "F:/DL-File/RNN/theano-recurrence-b9b8a82410be005d5a3121345e8d62c5ca547982/train.py", line 50, in train
rec_params = pkl.load(f)
EOFError


Second, it has a error when debugging train.py .
ValueError: When compiling the inner function of scan the following error has been encountered: The initial state (outputs_info in scan nomenclature) of variable IncSubtensor{Set;:int64:}.0 (argument number 2) has dtype int32, while the result of the inner function (fn) has dtype int64. This can happen if the inner function of scan results in an upcast or downcast.
I hope you help explain the reasons for the above mistakes。Thank you very much!
Thanks,
Liang Dong

from nips2015_vrnn.

gissemari avatar gissemari commented on July 2, 2024

I'm having the same error but I would like to know why the swap/mask is done so I can apply the correction with any other concern.

from nips2015_vrnn.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.