Skip to content

Instantly share code, notes, and snippets.

View danbri's full-sized avatar

Dan Brickley danbri

View GitHub Profile
TellyClub:graphlabapi danbri$ export BOOST_ROOT=../boost_1_46_0/boost/libs/
TellyClub:graphlabapi danbri$ ./configure --bootstrap
cmake detected in /usr/local/bin/cmake. Skipping cmake installation.
Probing for boost...
Probing in ../boost_1_46_0/boost/libs/
Probing in /Users/danbri/working/graphlab/graphlabapi/deps
Existing installation of boost found in /Users/danbri/working/graphlab/graphlabapi/deps
Boost Found!
Probing for Kyoto Cabinet...
KC_ROOT not defined. Probing in usual directories...
TellyClub:graphlabapi danbri$ ./configure --bootstrap
cmake detected in /usr/local/bin/cmake. Skipping cmake installation.
Probing for boost...
Probing in ../boost_1_46_0/boost/libs/
Probing in /Users/danbri/working/graphlab/graphlabapi/deps
Existing installation of boost found in /Users/danbri/working/graphlab/graphlabapi/deps
Boost Found!
Probing for Kyoto Cabinet...
KC_ROOT not defined. Probing in usual directories...
Kyoto Cabinet Found!
TellyClub:debug danbri$ make -j 4
[ 0%] Copying runtests.sh
[ 0%] Built target runtests.sh
[ 1%] Built target graphlab_dist2
[ 40%] Built target graphlab
[ 79%] Built target graphlab_pic
[ 79%] [ 79%] Building CXX object tests/CMakeFiles/disk_graph_test.cxxtest.dir/disk_graph_test.cxx.o
[ 79%] Building CXX object tests/CMakeFiles/dc_consensus_test.dir/dc_consensus_test.o
[ 79%] Built target anytests_loader
Built target anytests
TellyClub:danbri danbri$ wget http://www.graphlab.ml.cmu.edu/movielens
--2011-06-22 09:11:30-- http://www.graphlab.ml.cmu.edu/movielens
Resolving www.graphlab.ml.cmu.edu... 128.2.204.146
Connecting to www.graphlab.ml.cmu.edu|128.2.204.146|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14403024 (14M) [text/plain]
Saving to: `movielens'
100%[==============================================================================>] 14,403,024 412K/s in 39s w
a few test runs
in mode 0, first run was with 0.8,
Final result. Obj=305652, TRAIN RMSE= 0.7663 VALIDATION RMSE= 1.2225.
then 0.9 train/test ratio
Final result. Obj=356242, TRAIN RMSE= 0.7842 VALIDATION RMSE= 1.1875.
pmf 2010beebzbin 7 --ncpus=8 --float=true --lambda=0.065 --scheduler="round_robin(max_iterations=10)"
INFO: pmf.cpp(main:1285): PMF/ALS/SVD++/SGD Code written By Danny Bickson, CMU
Send bug reports and comments to [email protected]
WARNING: pmf.cpp(main:1287): Code compiled with GL_NO_MULT_EDGES flag - this mode does not support multiple edges between user and movie in different times
Setting run mode SVD (LANCZOS)
INFO: pmf.cpp(main:1335): SVD (LANCZOS) starting
TellyClub:goldenorb danbri$ sh go.sh
11/06/29 22:28:33 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.3.3-1073969, built on 02/23/2011 22:27 GMT
11/06/29 22:28:33 INFO zookeeper.ZooKeeper: Client environment:host.name=192.168.1.7
11/06/29 22:28:33 INFO zookeeper.ZooKeeper: Client environment:java.version=1.6.0_24
11/06/29 22:28:33 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Apple Inc.
11/06/29 22:28:33 INFO zookeeper.ZooKeeper: Client environment:java.home=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
11/06/29 22:28:33 INFO zookeeper.ZooKeeper: Client environment:java.class.path=lib/.:/Users/danbri/tmp/goldenorb/target/classes/*:lib/*:target/org.goldenorb-core-0.1.0-SNAPSHOT.jar:/Users/danbri/.m2/repository/org/apache/zookeeper/zookeeper/3.3.3/zookeeper-3.3.3.jar:/Users/danbri/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar:/Users/danbri/.m2/repository/org/apache/hadoop/hadoop-core/0.20.2/hadoop-core-0.20.2.jar:/Users/danbri/.m2/repository/commons-cli/comm
function [LAP] = laplacian(A1);
A2 = A1 * -1; # adj. matrix where -1 shows a link
N = length(A2);
Z = zeros(N);
S = abs(sum(A2));
for K = 1:N;
Z(K,K)=S(K);
end
LAP = A2+Z;
# http://en.wikipedia.org/wiki/Laplacian_matrix
WP = [ 0 1 0 0 1 0 ;
1 0 1 0 1 0 ;
0 1 0 1 0 0 ;
0 0 1 0 1 1 ;
1 1 0 1 0 0 ;
0 0 0 1 0 0 ];
L1 = laplacian(WP)
n = 1000;
x = randperm(n);
gs = 450;
group1 = x(1:gs);
group2 = x(gs+1:end);
p_group1 = 0.5;
p_group2 = 0.4;
p_between = 0.1;