Water for the Martian


Image courtesy: The Telegraph

I got sick in my graduation week. And I missed my graduation. But every cloud has a silver lining. I could finish the book I was reading and finish another in few days. I could read as I wish after quite some time since the usual work was too tiring for me. Latter one I read was The Martian. It was not the most complete and sophisticated sci-fi I have ever read, rather it was simple and fun. The book did an impressive job in keeping me engaged with Mark Watney on Martian surface which had no water. I look forward for the movie, but usually the movie of a book is just the tip of an iceberg. This is how I reviewed The Martian on Goodreads.

The MartianThe Martian by Andy Weir
My rating: 4 of 5 stars

It’s been sometime since I finished a book in one go (and I had time for that). The Martian did that! If you think this is another boring/exhausting science fiction specially because it is ‘hard science fiction’, it’s not! Mark Watney is a pretty fun guy to be with.

Yesterday NASA announced that they have found liquid water on Mars under certain circumstances. Whatever the circumstances, I feel sorry for the poor guy Watney, he had a rough time preserving water for his 549 sol days.

Science is a wonderful thing. No matter from which corner of the world you are, science will show you an amazing world if you show some passion towards it. I remember Pathfinder finding its way on red planet surface. I was curious, but my age kept me away from being too curious. More recently Curiosity made me far more curious about the whole cause of space travel. It ended up Curiosity (and Mars Science Laboratory) landing in the slide deck of a presentation I did for upper school students on power of code. It might not be the most relevant example, but I really wanted to share this scientific masterpiece with them to arouse their curiosity. It was not a total waste.

Elon Musk (again!) was recently called as a super villain by Stephen Colbert just because he has a fast way to warm up Mars to make it livable for humans. Having few organizations working on the first step of Mars colonization, sending humans to Mars in near future, I feel yesterday’s announcement is timely. May be the media and public attention is yet to come, but we should appreciate every person who is behind, creating our future while sacrificing their own. Let it be man on the moon or water on Mars, these things don’t happen overnight. It’s easy for us to watch a press conference streamed over web. Yet again what we watch is the tip of an iceberg. Underneath there’s work done by thousands people for hundreds of days, may be for generations. We were born here on planet earth, probably humankind is not destined to die here. Let’s enjoy the moment. Mars is being nice to us!


Colombo Machine Intelligence Meetup: Let’s get together and talk!


I have been talking a lot about machine learning lately. It’s no coincidence things happened that way, machine learning is what I am getting paid for and it is something that I really look forward to.

As I wrote somewhere else, machine learning is taking over the world. Luckily it’s not machines taking over. One thing might lead to another but we can discuss it later, hopefully we have some time. Machine intelligence (I prefer the term machine intelligence over artificial intelligence or machine learning for the mere reason; it sounds like both) is becoming a part of our lives day by day. It was inevitable and finally it is happening. From research to business, fiction to news. But as a country our preparedness for this new wave of technology is questionable. Do we have a dedicated community or a place to meet and discuss about this prevailing topic anywhere in Sri Lanka? We have few closed spaces. But not an open space to talk about, share or learn.

When I was an intern at my current workplace one year ago, this idea hit me with a sudden awe; why don’t we have a meetup for machine intelligence yet!? For those who are not familiar with meetup.com, this is how Wikipedia introduces it.

“Meetup is an online social networking portal that facilitates offline group meetings in various localities around the world. Meetup allows members to find and join groups unified by a common interest, such as politics, books, games, movies, health, pets, careers or hobbies.”

This may not be the most innovative idea you have ever heard. But it works surprisingly well despite its not-for-free model. We already have over 50 meetups in Sri Lanka on various topics. Naturally, most of them are related to technology. Tech folks catch up sooner than others. Personally, I would like to see meetups on other non-tech topics as well. One year back in time we had meetups for almost every buzzword technology: from big data to cloud computing to IoT. Now we have meetups for lesser known topics as well, such as Go language and Bitcoin. Yet no shadow of anything related to machine learning, artificial intelligence or data science. I shared this idea with few other machine intelligence enthusiasts I personally knew back then. They showed a huge interest in both initiating and contributing. And I became a member of the WSO2 Machine Learner team. Still it took almost a year to materialize. Finally, we have a meetup on machine intelligence and this is how we introduce it.

“This meetup is for all researchers, industry experts, academics, students and enthusiasts who are passionate about this astounding field, MACHINE INTELLIGENCE. Want to learn more about machine intelligence theory and applications? Looking for your next research idea in AI? Looking for colleagues for your machine learning start up? Want to share your AI/ML knowledge and experience with wannabe experts? Trying to figure out best tools and and technologies for your analytics task? You think machine intelligence will be the next big thing? This is the place for you! Let’s get together and talk!”

Within few days the group has attracted a few dozen of members even before spreading the word around. It is fair to assume that what we are trying to do was missing in the picture. We hope to achieve several goals through this meetup.

  • Create a collaborative platform for machine intelligence industry and researchers.
  • Encourage and support ongoing and new research in machine learning and artificial intelligence.
  • Share knowledge and recent advancements of machine intelligence.
  • Introducing opportunities and resources to the followers of this field.
  • Create a platform to network with experts and enthusiasts.

Above might sound somewhat serious, but we will be simply talking, sharing and learning. We already have individuals who are working in machine learning, artificial intelligence and data science at different levels. Most of the leading IT companies in Sri Lanka have started launching machine learning features in their products, others following with R&D. Academics and researchers have been working in the field of AI for a while. Students from both state and private universities are greatly interested in learning the basics and getting involved. But all these individuals and groups seem to be working in their own spaces, in isolation. Missing element here was the common platform to collaborate. A meetup fits into this gap perfectly, at least for now. It provides a space, most importantly offline, to meet and collaborate with peers who are involved and interested in the same field. We are planning to focus on all the aspects of machine intelligence including theoretical concepts, research, tools, applications and opportunities. We will be having our first meetup event very soon. And we will have no boundaries, only the genuine interest in learning and popularizing this next big wave of technology. I’ll just drop an interview with Elon Musk a.k.a. real life Iron Man below and you will know what I’m talking.

All machine intelligence enthusiasts, unite!


WSO2 Machine Learner: Machine Learning for Everyone

Machine learning is everywhere. If you do not agree, you have not noticed. It is everywhere. It’s inside your smartphone, web browser, smart watch if you use one, car very soon, and the list goes on making it simply everywhere. Machine learning has become one of the things which decides the future of mankind in one way or another. There was a time when artificial intelligence, the superset of machine learning, was something we read in science fiction. But not anymore.

Never heard of what I am talking? Do a simple Google search and you will end up with thousands of definitions, tutorials, articles and maybe some news on recent ML startup acquisitions. Google itself uses machine learning to bring all that to your web browser. So what is WSO2 Machine Learner? Why you should care?


WSO2 is one of the leading middleware companies in the world with a very unique business model. Let’s keep details aside, I’ll just say that they (or we) develop products that are free and open source. We offer a complete stack of middleware products which are used by top enterprises of the world for integration to API management to real-time analytics. WSO2 Machine Learner is the newest addition to the stack to make machine learning closer to everyone. When we say everyone we mean it. If you feel like trying out the product even before reading the rest of this post, go try it out! If you think you should look at the code and even make some changes to it, go fork it from Github!

Spaces: Community and tools

Glad you decided to continue. In this post I would like to take a step back from my developer role and look at our own product from a typical ML user’s perspective. You might be a researcher, developer or even a CEO who is interested in trying out machine learning in your next venture. Reading this will give you an idea why WSO2 Machine Learner can be one of the best choices you make when it comes to machine learning.

There are different communities in machine learning. Mainly there are researchers who make this field what it is and decide its shape in future, developers who apply the theoretical work done by latter in practical problems using dedicated tools and there are industry people who look at this field as a new opportunity to grow their businesses. CXOs might fall into the last category. Interestingly in machine learning, these entities usually overlap, making highly research oriented CEOs and scientists developing industry solutions. Most of the top scientists in machine learning (and deep learning recently) are leading the industry towards catering more futuristic products to end user with AI/ML. At the same time top machine learning startups have been initiated mainly by the best researchers of this field.

To make all these a reality, we need tools. Tools which let all these entities work more efficiently and effortlessly. If you look at that space, where ML tools are scattered, once again you will notice more distinct regions. There are products that are very easy to use and intuitive, but most of the time they are not free. And there are products that are very powerful and extensible, but you will have to get your hands dirty (dig into code and make changes). Most of the tools used by researchers fall into this category. No disrespect, they have their reasons use them (I had my own). Another set of tools will give you an amazing set of visualizations with a very user friendly UI, but not enterprise ready. If you are looking for all of the above today, you will not end up with many choices. We truly hope that this will change soon. And instead of just of hoping we thought of building a one, to deliver most of them today and more in future.

How WSO2 Machine Learner helps?


WSO2 Machine Learner workflow

WSO2 Machine Learner is powered by Apache Spark, popular and powerful large scale data processing engine. All the machine learning algorithms available in WSO2 ML are running Spark engine at the product core. With the recent boost from IBM we can safely say that Spark is here to stay, at least for a while. All the widely used classification, regression and clustering algorithms are available in WSO2 ML with a user interface that will make you think machine learning is easy! Yes, our web based interface will let you smoothly flow through the complete machine learning life-cycle.

  1. Get data
  2. Explore/analyse
  3. Build models
  4. Evaluate
  5. Predict/deploy

No matter from which entity you are from out of the entities I mentioned above, you will find it more convenient to do machine learning using WSO2 ML at no cost. The product will guide through each of the step, involves in this process in an intuitive manner and let you look at what you did with a comprehensive set of visualizations. Why visualizations? Because they talk in a language we all understand and that language is closer to us than numbers. These visualizations range from simple tables to sophisticated charts which will make data talk by themselves. At the end of the day your need can be either a low level task such as building the best ML model for a given dataset or a high level task such as evaluating machine learning as an opportunity for your business; either way WSO2 ML will help you to decide on what to do and how to do it. No matter whether you are a newbie or an expert it will let you get your job done with most powerful data processing tools available today. And when we say enterprise ready, we mean seamless integration with other products offered by WSO2 for integration to API management. WSO2 ML can be also thought of as a one component of a complete analytics platform that includes batch, real-time and predictive analytics. We do not discriminate, if you are just starting here and looking for something to begin with, simply get the binary and you are good to go! If you are looking for an enterprise level analytics solution with the power of machine learning take a look at our platform and decide which tools will work for you. In both cases, it’s free and it’s the same product.

ROC curve and AUC

ROC curve and AUC

Confusion matrix for Iris dataset

Confusion matrix for Iris dataset

Predicted vs. actual chart

Predicted vs. actual chart

What to expect?

Machine learning as a field is not going to end soon. Or I may say this is just the beginning. We are fully aware of the potential of it and the direction it is heading towards. In the initial release of WSO2 Machine Learner we are offering an essential but a complete set of features for your machine learning tasks. Alike to this field itself, our first release is just the beginning. We will be adding more and more features to WSO2 ML with cutting edge tools and research. In immediate releases you can expect multilayer architecture support, extensive data pre-processing, recommender solutions, anomaly detection and PMML support. And that’s not the end, we see beyond. Keep tabs on us, we will let you know.

Thanks for reading and happy machine learning! 🙂

Hate reading documentations but want to know more? You can just Sneak Peek into WSO2 Machine Learner 1.0.