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

New task: Counting repetitions #49

Open
cornagli opened this issue Sep 10, 2019 · 0 comments
Open

New task: Counting repetitions #49

cornagli opened this issue Sep 10, 2019 · 0 comments

Comments

@cornagli
Copy link

cornagli commented Sep 10, 2019

Hi,
I am trying to figure out which is the DNC's potentiality. Apparently it looks quite powerful.

I am trying to implement a new task by myself relying on the pytorch-dnc implementation. I am interested in understanding if a DNC can solve it. I would really appreciate any feedback from you, thanks.

Task description

The task is to count the total number of repeated numbers in a list.

For example:

Input: [ 1, 2, 3] 
Output: [0]

Input: [ 1, 2, 3, 2, 4, 1, 5]
                  X     X     : Repetitions
Output: [2]

If a DNC is capable of solving this task, I am wondering if it can succeed in generalizing the example counting the repetitions of numbers never encountered during the training process.

Settings

Assuming that the DNC can solve the task (I suppose a simple LSTM net can), I would structure the data as follows:

  • Input: (1, random length, 1) tensor
  • Output: Either (1, random length, 1) tensor or scalar containing the sum of the repetitions
  • Loss: depending on the output structure, a square loss function element by element or between two scalars
  • DNC parameters: Currently it is obscure to me how to set the memory parameters (word size, number of words)

What do you think? Do you think that it would be feasible for the DNC to solve this specific task?

If you consider this task interesting, I can submit the effort I spent so far.

Thanks,
Alessandro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant