Giter VIP home page Giter VIP logo

attention_tasks's Introduction

Attention tasks

Original tasks: https://github.com/greentfrapp/attention-primer

DL framework: pytorch

Task 1: counter

The task is to write a count of the number of elements of a fixed-size sequence consisting of characters A, B, C

[A, B, B, C] ->  { A:1, B:2, C:1 }
[A, B, B, A] ->  { A:2, B:2, C:0 }

Task 2: counter+diff

The task is to write a count of the number of elements of a sequence of a fixed size consisting of characters A, B, C and the absolute difference of counters A - B

[A, B, B, C] ->  { A:1, B:2, C:1, A_DIFF_B: 1 }
[A, B, B, A] ->  { A:2, B:2, C:0, A_DIFF_B: 0 }

Task 3: signal

The task is to write a count of the number of first element (not including this element) in a sequence of a fixed size consisting of the characters A, B, C

[A, B, B, C] ->  { A:0 }
[B, B, A, C] ->  { B:1 }

Task 4: signal2

The task is to write a count of the number of first elements (not including this element itself) in a fixed-size sequence consisting of the characters A, B, C

[A, B, B, C] ->  { A:0, B: 1, C: 0 }
[C, B, B, B, A, B, C] ->  { C: 0, B: 2: B: 2 }

Task 5: translation

The taks is to write a translator from German to English using IWSLT 2016 de-en dataset

attention_tasks's People

Contributors

tttzof351 avatar

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.