Steemblr development update 09 - Trending Page Algorithm

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@snwolak·
0.000 HBD
Steemblr development update 09 - Trending Page Algorithm
<p class="md-block-unstyled">https://i.imgsafe.org/78/7834bb3c4e.png</p><p class="md-block-unstyled">Steemblr is open source microblogging platform powered by steem blockchain . It allows user to post and explore content which is smaller than a traditional blog.</p><p class="md-block-unstyled">You can check developer version here: https://steemblr.com</p><h2 class="md-block-header-two">Repository </h2><p class="md-block-unstyled">https://github.com/snwolak/steemblr</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_ml</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_api</p><p class="md-block-unstyled">https://github.com/snwolak/esync</p><h2 class="md-block-header-two">New Features</h2><h3 class="md-block-header-three">Trending page algorithm</h3><p class="md-block-unstyled">To decide which post should be defined as trending, I wrote script which rates post accordingly to this parameters:</p><p class="md-block-unstyled">- number of votes(net_votes),</p><p class="md-block-unstyled">- number of comments,</p><p class="md-block-unstyled">- value of the post.</p><p class="md-block-unstyled">Post will be defined as trending when above 80% rating is reached, if post reaches trending category its popularity state won&#x27;t be overwritten.</p><p class="md-block-unstyled">To made this work I used brain.js library, which allowed for simple and effective usage of machine learning.</p><p class="md-block-unstyled">The data script uses can be find here: https://github.com/snwolak/steemblr_ml/blob/master/dataset.json, it comes from various tags on steemit, in the future I would like to rate posts only from data which comes from posts made on steemblr. I also made simple interface for choosing and exporting data to json.</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_ml/commit/2e863fb15da62d74b5f0131313b4cb58b550d6bc</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_ml/commit/584b602ba108ee5ff49a01ba16afe419f446daec</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_ml/commit/c27f90d5a4a6f59c467e99323a3c0050e76e4e9e</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_ml/commit/28db4a81aea2b4e481371982d98a952e755df134</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_ml/commit/76e1647ead0da10ea3b4df032030fd0b38d0a6d3</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_ml/commit/296cc7b3144a1951497a72e566560acda9e3b1a5</p><h3 class="md-block-header-three">Implementation of the trending feature</h3><p class="md-block-unstyled">To ml script to be accesible I made express server with one route for rating, when post is synced with database esync is caling ML script to rate the post and then sends the data to cloud function. For the client side of things there was added now redux action to handle trending post, for now just in trending category, rest of the categories are showing new posts.</p><p class="md-block-unstyled">https://github.com/snwolak/esync/commit/585de4de556279b7309efbfbaff98933e204a9c0</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr/commit/35c4aff53c1f0ae7e3f63c50e4255597a68b02f1</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_api/commit/02d16bc67b5e2b1a6f5907ae7d1b1baed6f7000a</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_ml/blob/28db4a81aea2b4e481371982d98a952e755df134/index.js</p><p class="md-block-unstyled">https://github.com/snwolak/steemblr_ml/blob/296cc7b3144a1951497a72e566560acda9e3b1a5/index.js</p><h2 class="md-block-header-two">Github Account</h2><p class="md-block-unstyled">https://github.com/snwolak</p>
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,