Everything should be made as simple as possible, but not simpler. (Albert Einstein)
Showing posts with label recommender. Show all posts
Showing posts with label recommender. Show all posts

Saturday, September 24, 2016

Recommender Demo, "lenskit-hello" via Intellij Idea, Step by Step

For advanced programmer, it's easy. But a beginner might get a headache ;) 
Here is step by step: 

Prerequisites: Gradle, Intellij Idea. (and JDK for sure).

Sunday, October 4, 2015

Singular Value Decomposition and Dimensionality Reduction, Using R and Cat Image for Illustration Purposes

Singular Value Decomposition and Dimensionality Reduction, Using R and Cat Image for Illustration Purposes, by Soesilo Wijono,

SVD (singular value decomposition) is an important method used in data science, especially data mining. It can be used, e.g., in dimensionality reduction for recommender system.
Imagine online store, e.g. Amazon, to have million of items, and million of users. In order to perform algorithm for the recommender system, matrix to be used would have million by million dimension. Which is very expensive computation.
Theory for dimensionality reduction is everywhere, so we won’t repeat it again in here. Just remember the basic equation:
X = U A V.T
U matrix has dimension of n x n.
V matrix has dimension of d x d.
A matrix is diagonal matrix with dimension of n x d.
(T represents matrix transpose.)
We want to reduce the dimension of X matrix.
This is an illustration of the method by using a PNG cat image. To help understanding the method visually. In which we’ll use image raw data. In real world, the image data can be replaced by any data, e.g. items x users matrix used in an recommender system, etc.

Thursday, September 3, 2015

Demo of Recommender System with LensKit and Intellij Idea

Requirements: 
If they're not installed yet, then install Maven and LensKit inside a directory. 
Set environment variable M2_HOME, point it to the Maven directory. E.g. "C:\java\apache-maven-3.3.3" in Windows.
Add path of the LensKit's and Maven's binary directories, 
C:\java\lenskit-2.2\bin;%M2_HOME%\bin;%JAVA_HOME%\bin