A way to use equations in HIVE!
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}%2Bbthe 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!
Leave A way to use equations in HIVE! to:
Read more #stem posts
Best Posts From aicoding
We have not curated any of aicoding's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From aicoding
- A list of 2021 Resources - pt. 2
- A list of 2021 Resources - pt. 1
- Someone impersonating me!
- I finally got an e-book reader!
- More on data science...
- Learn Python: Best Resources
- Do you know about Ikigai?
- The beginners guide to join the future…
- Should I change HiveCoding to HiveAI?
- Don't worry, AI won't overtake the world... but it's worth watching🧠