An Illustration of Software 2.0

Converting integers into Roman numerals

4 -> IV
1193 -> MCXCIII
548 -> DXLVIII
3616 -> MMMDCXVI
21 -> XXI
Success
$ head data/train.txt
3250 MMMCCL
1298 MCCXCVIII
758 DCCLVIII
784 DCCLXXXIV
2738 MMDCCXXXVIII
765 DCCLXV
1845 MDCCCXLV
3723 MMMDCCXXIII
1104 MCIV
2470 MMCDLXX
Epoch: 49
{
"train": {
"loss": "0.013",
"metric": "0.782"
},
"valid": {
"loss": "0.020",
"metric": "0.822"
}
}
0.82
4 -> I (IV)
1193 -> MCXCIII (MCXCIII)
548 -> DXLVIII (DXLVIII)
3616 -> MMMDCXVI (MMMDCXVI)
21 -> CXX (XXI)

Converting Roman numerals into integers

Epoch: 40
{
"train": {
"loss": "0.011",
"metric": "0.892"
},
"valid": {
"loss": "0.009",
"metric": "0.926"
}
}
0.88
IV -> 4 (4)
MCXCIII -> 1193 (1193)
DXLVIII -> 548 (548)
MMMDCXVI -> 3616 (3616)
XXI -> 21 (21)

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store