Blog Archives

Machine Learning Ex 5.2 – Regularized Logistic Regression

October 25, 2011
By
Machine Learning Ex 5.2 – Regularized Logistic Regression

Now we move on to the second part of the Exercise 5.2, which requires to implement regularized logistic regression using Newton's Method.Plot the data:

Read more »

Machine Learning Ex 5.1 – Regularized Linear Regression

October 25, 2011
By
Machine Learning Ex 5.1 – Regularized Linear Regression

The first part of the Exercise 5.1 requires to implement a regularized version of linear regression.Adding regularization parameter can prevent the problem of over-fitting when fitting a high-order polynomial.Read More: 194 Words Totally

Read more »

Machine Learning Ex4 – Logistic Regression

October 24, 2011
By
Machine Learning Ex4 – Logistic Regression

Exercise 4 required implementing Logistic Regression using Newton's Method.The dataset in use is 80 students and their grades of 2 exams, 40 students were admitted to college and the other 40 students were not. We need to implement a binary classification model to estimates college admission based on the student's scores on...

Read more »

ggplot2 Version of Figures in “25 Recipes for Getting Started with R”

August 16, 2011
By
ggplot2 Version of Figures in “25 Recipes for Getting Started with R”

In order to provide an option to compare graphs produced by basic internal plot function and ggplot2, I recreated the figures in the book, 25 Recipes for Getting Started with R, with ggplot2.The code used to create the images is in separate paragraphs, allowing easy comparison.Read...

Read more »

the batman equation

August 13, 2011
By
the batman equation

HardOCP has an image with an equation which apparently draws the Batman logo.Read More: 1295 Words Totally

Read more »

ProjectEuler-Problem 46

June 21, 2011
By
ProjectEuler-Problem 46

It was proposed by Christian Goldbach that every odd composite number can be written as the sum of a prime and twice a square.9 = 7 + 21215 = 7 + 222Read More: 461 Words Totally

Read more »

R package DOSE released

June 12, 2011
By

Disease Ontology (DO) provides an open source ontology for the integration of biomedical data that is associated with human disease. DO analysis can lead to interesting discoveries that deserve further clinical investigation.DOSE was designed for semantic similarity measure and enrichment analysis.Read More: 619 Words Totally

Read more »

[Project Euler] – Problem 58

May 21, 2011
By
[Project Euler] – Problem 58

Starting with 1 and spiralling anticlockwise in the following way, a square spiral with side length 7 is formed.37 36 35 34 33 32 3138 17 16 15 14 13 30Read More: 597 Words Totally

Read more »

[Project Euler] – Problem 57

May 19, 2011
By

It is possible to show that the square root of two can be expressed as an infinite continued fraction.√ 2 = 1 + 1/(2 + 1/(2 + 1/(2 + … ))) = 1.414213…By expanding this for the first four iterations, we get:Read More: 547 Words Totally

Read more »

Machine Learning Ex3 – Multivariate Linear Regression

March 29, 2011
By
Machine Learning Ex3 – Multivariate Linear Regression

Part 1. Finding alpha.The first question to resolve in Exercise 3 is to pick a good learning rate alpha.This require making an initial selection, running gradient descent and observing the cost function.Read More: 221 Words Totally

Read more »