codigo

Polynomial Regression

Polynomial Regression is a form of linear regression model but fits a non-linear relationship between the value X and Y. Basically we have to add new features to the final equation. But what features? It's simple we can add the X1 feature as new feature: X1^2 or X1^3. If we have some input features (X1,X2,X3) also we can add new features as X1*X2 or X1^2*X3^2. So, the polynomial regression model is:

As you can see in the following figure you can get a linear regression (red line) or you can get a non-linear regression (blue and  yellow) if you add more features to your equation. The type of curve of non-linear regression model depends of the grade of your polynomial. If the grade of the polynomial is near 1 the model fits to traditional linear regression model. Instead, if the grade of the polynomial is high the model fits to training points.

(more…)

By rocapal, ago
codigo

Multi-variable linear regression

I continue working with machine learning algorithms. In a previous post I talked about linear regression with one variable and I described different algorithms to predict hypothesis.

In this case, I'm playing with linear regression but, with some features. Linear regression only have one input feature and one output feature. For example, you can predict the price of a house give the house's size. But imagine that you want predict the price of a house using size and rooms features. When you have more than one input feature is called 'multi-variable linear regression'.

In the following figure we can see the two input features (size and rooms), the training data (red dots), and the predictions (blue dots). In this case, we can represent the information with a 3D model. If your model have more than three features you must research the way to represent all the data.

(more…)

By rocapal, ago
floss

Playing with machine learning: Linear Regression

Since two months ago I'm researching about machine learning and its algorithms. The goal is get a good unsupervised and clustering algorithm to analyze every android applications and predict what application you want to install or use in a particular time. The first step is learn and understand the theory of machine learning. For this,  I began to study the Machine Learning Course of Stanford. It's a great and practical course with videos and material to help understand the classes.

The first model that I have studied is linear regression. This model consist in have a relation between two or more variables. For example, in my example I have a training data about the prices of the houses and its size in square meters. This training data is used to build a linear regression model to predict the prices of the house give the size of the house. As you  can see in the following figure, the black dots show the training data (I did web crawling to get real data). The blue line represents the trend line of the model, and the red dots show the predicts for two size of houses.

(more…)

By rocapal, ago
android

The first prototype video of ESTUFA

ESTUFA is a framework that provides several ways to connect and re-use mobile applications (in previous post I already presented this idea). The system allow build “execution chains” to connect and plumb two applications. This project is based in the idea of re-use and compose new applications using components (in this Read more…

By rocapal, ago
android

Arduino & Android & ADK

The last Google I/O a new feature based in Android and Arduino was released. The ADK allows the communication between Android and Arduino using a USB connection. Google have developed a library called “USB Accessory” in Android and Arduino. So, this library help us to send and receive data through USB interface. Using Read more…

By rocapal, ago
android

New challenges about Android, AR and Arduino

During the next months I will work in three interesting topics. The first of them is the creation of a new architecture based in Android that allow communicate and integrate applications. The second  is the port of ARviewer to iPhone platform using phoneGap. And the last one is the very well-know Arduino and Read more…

By rocapal, ago
android

AR interface in Android using phoneGap

Since 6 months ago we have evaluated the possibility to implement a new AR interface (based in our project ARviewer) using phoneGap. phoneGap is a mobile framework based in HTML5/JS that allow execute the same source code HTML5 in differents mobile platforms (iphone, android, blackberry). It seem a good way Read more…

By rocapal, ago
android

LibreGeoSocial at SIMO network 2010

The last week we had the opportunity to present (one more time) our project LibreGeoSocial. The first, we want to thanks MadridOnRails to invite us for promote our group GSyC/LibreSoft and out research lines. This year, the SIMO only had one hall!! (8 years ago, the SIMO used ten halls). Read more…

By rocapal, ago
android

LibreGeoSocial is used in the Albacete’s Fair as Augmented Reality Tourist Guide

The “Junta de Comunidades de Castilla-La Mancha”, through the “Centre of Free Software (CESLCAM)”, has launched an innovative pilot project, GeoInfo CLM, which facilitates through mobile access information about Albacete and his fair.This project has born of LibreGeoSocial project developed by GSyC/LibreSoft group of the Universidad Rey Juan Carlos de Madrid. LibreGeoSocial Read more…

By rocapal, ago