Skip to main content

Posts

Showing posts from May, 2020

Tensorflow Type Error: Type already registered for SparseTensorValue

Tensorflow Type Error: Type already registered for SparseTensorValue "pywrap_tensorflow.RegisterType("SparseTensorValue", SparseTensorValue) TypeError: Type already registered for SparseTensorValue" -- this error pops up in your screen. Your code have been running properly just the last time and now its stuck. Want to figure out why? I have already done that for you. This has something to do with retaining variables due to internal code issues with spyder ide. So you are right, your code is just fine. Just go back and rerun your code once more, but before that, restart the kernel of spyder and it will run smooth.

Upvotocracy bot creation project (selenium + post api + webscraping)

Introduction to the project concept: After a long time with machine learning, I recently again got interested to use web-scraping for an exciting project. One of my friends, Anthony Ettinger has started a new exciting website called upvotocracy which is a reddit clone with a number of interesting changes in both voting, moderation(there is none in upvotocracy) and other things. So I have planned to create a bot to post automated contents to his site to increase my karma. And for now, this act is allowed and is not considered illegal. So I have planned to initially populate the thread FakeNews from the onion news using my bot. Later on we will focus on further progresses in the similar direction. Just to provide caution, this was a test project and posting actually using this process ended up in spamming the site unnecessarily; resulting me being heavily thrashed by the whole community. So don't try this on the actual platform. The goal of writing this post is to provide a knowled