I love equations! Lately, I have been thinking of improving some of the blogs by adding some cool formulas and math explanations. Maybe I am the only one who gets hyped about this, but I think it would be cool.
However, I haven't been able to use markdown equations here in hive. I started digging a bit on the internet and it seems like it is actually possible to do - so you might as well end up learning some math behind machine learning algorithms in my blog pretty soon!
The way to go about this is to use the Google Charts API which still works but it is deprecated, so I am still searching for a better alternatives - leave a comment below if you have any better ideas!
For now, I think I live by using this API, I have made a couple of examples of the equations:
Cost function:
Linear regression:
If you want to replicate these results you simply need to do the following:
=\sum_{i=1}^{n}m_{i}x_{i}%2Bb)
https://images.hive.blog/800x800/
is for the image rendered sizehttps://chart.googleapis.com/chart?cht=tx&chl=
API call (formula type-image and specify to render)f(x)=\sum_{i=1}^{n}m_{i}x_{i}%2Bb
the formula with some URL encoding types such as %2B for the + symbol. In the cost function I encoded %28 and %29 respectively for the parenthesis.
I think it is pretty cool!