Skip to content

bbaserdem/Radix-Addition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Radix Addition

This is a toy package on utilizing pytorch to teach a RNN binary addition task. The addition task is to add several numbers represented in some base (not just binary, counterintuitively) strings. For two binary numbers; it would look like;

15 + 27 = 42
( 15) 0 0 1 1 1 1
( 27) 0 1 1 0 1 1
(+__)------------
( 42) 1 0 1 0 1 0

The each n-ary digit is input starting from the lowest

Notes

To make poetry use pytorch official sources, I used the following commands

$ poetry source add --priority explicit pytorch_cpu https://download.pytorch.org/whl/cpu
$ poetry add --source pytorch_cpu torch torchvision

About

A demo of ML by performing base-N string addition.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors