Tuesday 10 November 2015

Pong Game In python

This is very easy if you are intermediate in python and good in basic physics and basic maths.
You need to know basics of reflection, velocity, acceleration, and basics mathematics in order to calculate collision .When boundary of pong just touches wall or paddle are situation of collision. rest of thing is just basic python.

We need to increase velocity of pong with time so we add some constant small  acceleration that is being triggered after some small time interval . why small because if we use large acceleration or time then change in velocity will be sudden, so speed of pong increase suddenly.

Saturday 7 November 2015

Using SVM Classifier

Support vector Machine (SVM) is one of most famous machine learning tool for classification problem. This is supervised learning technique .Read More
SVM Margin
 we are going to see how to use SVM classifier in python.

Our Demonstration uses digit dataset . This dataset uses 64 feature vector to identify handwritten digit [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] . It means this 64 feature extracted from Handwritten digit used to classify handwritten digit in 9 classes .

So Again we gonna use skilearn Python Package .

Friday 6 November 2015

Using Naive Bayes classifier

This is most basic classifier, It uses concept of probability in order to predict the class of input feature data . Read More

We gonna see how to use Naive Bayes Classifier very easily using python.
Bayes rule
Bayes rule

Prerequisite:

  • Python 2
  • sklearn [Python Module]
  • Numpy  [Python Module]

We are going to apply this algorithm on Iris dataset .

Blogger Widgets