Wednesday, 3 February 2016

Switching to ML concepts

As I'm getting a lot of assignments these days I've decided to pause app development and first work on them and they are interesting too.

I'll be detailing about every algorithm which I've learnt and will be learning.
So, lets start with k means algorithm.

K means Algorithm -

Suppose we have been given data about something and we wish to find pattern in the given data like some clusters where we can group similar type of data together.
To achieve this objective we can use k means algorithm.
To use this algorithm we need to have the information about the number of groups/clusters will be there. Let this number is k.

The algorithm -
1. Input - set of points (x1,x2,...xn) of size say n
2. Randomly generate k numbers and assume them to be the centroids at the moment.
3. Repeat until convergence:
    for each point xi:
        Find nearest centroid Cj (Can use eucledian distance to find the nearest centroid)
        Assign the point xi to cluster j
    for each cluster j=i...k
        new centroid Cj = mean of all points xi assigned to cluster j in previous step
4.Stop when none of the cluster assignments change


Note - 
After each iteration centroid will change and get placed optimally(better position than before)
We need to stop updating the centroids when there is no change in the cluster arrangement i.e. if clusters are remaining same for 2 consecutive iterations.

Time Complexity of this algorithm - O(#iteration*#clusters*#instances*#dimensions)

I've implemented this on python - See

The problem was - Given 150 flower's data with (petal length,petal width,sepal length,sepal width) we need to group them into 3 clusters.

I hope this will be helpful.

In addition to this I've rolled out an update for Medicator app. Now the app covers over 125 diseases.
You can check it out here - Medicator

Monday, 25 January 2016

Medicator 2.0 Release

Earlier I had planned to release the update in the first week of february but changed my decision as I completed the work well before time.

Released the major update just 3 days back.

New features include -
1. Total of 100 diseases in the dictionary.
2. BMI calculator
3. Reference Charts for blood tests and urinalysis

In the next update I'll add more diseases.

Do have a look - Medicator 2.0

Tuesday, 19 January 2016

App Improvement

This week I was busy in adding more features to the medicator app. As of now its a very basic app but with some more features (which I don't want to reveal at the moment) it will be much more useful and complete.

You can expect this update to be rolled out in the first week of february.

At present I've changed my priority from game development to app development. First I want to focus only on this app and then I'll work on the game which I was building.I don't know how much time will I spend on this one but its a very good learning experience for me.

For first 2 days of the week which I spent on SpinIt . I learnt how to add swipe movement to the game screen by changing camera using lerp function in c# unity. I was having some problem in implementing it correctly but in the end I got it right. I am planning to redesign the levels and make them more interesting than just plain blocks.

I'll try my best to resume my game project just after completing the app.

Thank you.

Monday, 11 January 2016

Medicator Launched !

After making some changed to the android app I was making I published it on the google play store.

I've found that when we fall ill, sometimes we are not able to judge what kind of disease we might be having and we can't even search disease based on our symptoms. Now, no need to worry about that and now you don't even need to memorize the symptoms of common disease. Medicator will help you out. Medicator - Your own Virtual Doctor.

Let's talk about some of its features.
 
It has a checkup feature which can tell the user which kind of disease a patient might be suffering from. Currently, it supports only 5 diseases Malaria, Dengue, Typhoid, Jaundice and Stomach flu(Viral). I am planning to add 5 more diseases in the next update which I've planned to roll out by 1st Feb.


It also has a built in dictionary. This dictionary holds information regarding signs & symptoms, causes , diagnosis, prevention, treatment of various diseases. This can prove to be very handy. Currently it has 12 diseases and in the next update I may increase this number to 50 or 60.

You can try this app here ->  Medicator

 I was thinking of making a medical app like this for a long time especially after winning the app designing competition conducted by Google Developers Group last year in our college and here it is.
I know that this can be made much better , just wait for the updates they are on their way! 


I also uploaded a primitive version of my long term game project. In this game you have to collect the required number of coins and try to avoid red colored enemies or they will blast your lovely little green ball. You can play that game here - SpinIt . Currently it has only 3 levels to complete. I'll be adding loads of stuff into this one before publishing.

Developing something on your own is super exciting and when you see that your game or app is played/used by others it gives you huge satisfaction.

These days I am spending a lot of time in thinking about a good game or a fantastic app. If you have any suggestions or reviews and want to share with me you're always welcome.

Thank you for reading and do try these little creations of mine.

Thursday, 31 December 2015

Writing Again !

I stopped writing on this blog for around 1 year. I was trying to do a lot of things simultaneously and not able to handle them properly.

But now, I am starting to write again.

The year 2015 was like an eye opener for me. Got to learn a lot of things which includes basics of HTML, CSS, Machine Learning, Game Development. Python, Android App development, Git and Github.

For past 1 month I was busy in taking courses from coursera regarding these things and right now I am making an android app "Medicator" this includes a medical dictionary for various disease plus a quick check up feature which can tell what kind of disease a person might be suffering from. Its still in development and may get completed by the end of Jan 2016. I'm not so much excited about this.

The reason is that  I've started making games ;)

I've learnt the basics of unity game engine and want to make my own games.
I've made a game 'Box Shooter 3D'. Its a shooter game which starts with a 15 seconds timer, you've to shoot green boxes for score, shooting white boxes increase the time and shooting yellow boxes reduces it.  Here is the link if you want to play. This won't open in Chrome as Google has decided not to support unity plugin.

I've taken help from a game development course in order to build the basic part of this game and then I've increased the difficulty level because it was too easy without it. I'm planning to build more levels of this game.

There is one more game under development 'Spin It !' Its an exciting third person game. I want to make this one a major game with lots of stages and upgrades. This one will take a lot of time because I''ve very limited time during college but I am planning to deploy this in google play store before April at least . Let's see if I can meet this deadline.

Stay tuned for more updates. A very Happy New Year in advance !