Bayesian Probability As An Oscillator

Anyone who trades using Technical Analysis knows what indicators are for sure. There are plenty of them available. As trading is becoming more serious instead of a hobby for me, I have an itch I need to scratch. I want to easily determine when to long or short given a set of indicators using predetermined (naive) assumptions of values. Indicators Here’s a set of indicators I use for a strategy. I started with these indicators to write my Bayes Oscillator. ...

June 6, 2020 · Batista Harahap

Hacking DailySocial's News

DailySocial.net is a tech blog founded by Rama Mamuaya. I enjoy visiting DailySocial and reading about the Indonesian tech scene. But yet I’ve grown weary of filtering news to read. So why not hack a news classifier I thought. Core Computing It took 10 minutes to hack something up in Python. Why so fast you ask? Because text processing is second nature in Python. NLTK is good but TextBlob is great. I used a Naive Bayes Classifier algorithm provided by TextBlob. All I coded was a feature extractor catered to my likings. ...

March 20, 2014 · Batista Harahap

Naive Bayes Classifier - Revisited

During the last week, I’ve been following up work with a side project to do machine learning with Urbanesia’s comprehensive data. A lot of late night reading and fiddling with foreign codes were the highlights of my last week. Wanted to elaborate my implementations and how several kinds of technologies affect benchmarks particularly with classification performance. The repo for the codes is at Github here. During time span of the first batch of codes until now, I have made lots of changes to the codes and also the data store. I wasn’t sure at first, which database will bring the best performance. I’m testing on a fairly low spec hardware which is a Macbook Air Late 2011 with 4 GB DDR3, SSD and Intel Core i5 1.7GHz, this is nothing compared to a real server relatively. By the way, although relatively low spec, she’s got a name, it’s Claire. ...

October 16, 2012 · Batista Harahap

Simple Naive Bayes Classifier for PHP

Recently Hacker News is flooded with numerous articles discussing or at least mentioning Naive Bayes Classifier algorithm. It’s a basic algorithm to classify a set of words into a certain category (set) based on prior learning of words and its probabilities. It sounds simple enough but without actual technical guide book, it’s quite trivial since most of the information out there regarding it is too messy for newbies like myself. ...

February 27, 2012 · Batista Harahap