Implementing my own algorithm

As mentioned several times in heroes of deeplearning interviews, it is said that we should implement our own algorithm to better understand deep learning. I decided to do so, and starting with a simple linear regression and gradient descent (in Rust).

How should I test my algorithm ?

Should I compare it to existing library ?

Thank you in advance.

You can check of course with already provided libraries but also on how well it performs on datasets…