Showing posts from May, 2017

How to exploit Singleton class with Reflection API and Its prevention

Singleton design pattern is intended to create only one instance of given class in context of given class loader (class loader which loads this given class). i.e: One instance per class loader. This post will discuss how to exploit a Singleton class w…

Linear classifier using least square approach in Pyhton

Sample Data:-   Use following data set 1 and data set-2 for classifier using least square approach Data Set -1 Data Set -2 Problem statement  :- Sample program to find the linear classifier using least square approach. import sys import …

Perceptron Learning - Implement online perceptron algorithm in python

The perceptron is a linear classifier, therefore it will never get to the state with all the input vectors classified correctly if the training set D is not linearly separable, i.e. if the positive examples can not be separated from the negative examp…

Load More
That is All