Commit 02ada4fa authored by Andrew Cohen's avatar Andrew Cohen
Browse files

Merge remote-tracking branch 'origin/pubmed' into wikipedia_AND

parents e14d6f76 fc9b678e
......@@ -18,7 +18,7 @@ for i=1:length(words)
end
d(length(words),length(words))=0;
d(find(isinf(d)))=3;
d(find(isinf(d)))=1.2;
d=Regularize(d);
[kGap Gap S idx] = GapSpectral(d,6,1);
fprintf('kGap=%d\n',kGap);
......
tic
global QueryCache
if isempty(QueryCache)
QueryCache.Queries={};
QueryCache.Count=[];
end
global nQueryCount nCacheCount
nQueryCount=0;
nCacheCount=0;
words1={'Fermat','Hilbert', 'Godel', 'Riemann','Gauss'} % mathematicians
words2={'Einstein','Newton','Hawking','Bohr','Maxwell','Boltzmann',} %physicists
words3={'Freud','Pavlov','Skinner','Jung'} %psychologists
words4={'Turing','Lovelace','Knuth','Hopper'} % computer scientists
words5={'Darwin','Lamarck','Linnaeus','Mendel'} % biology
idxKey = [ones(1,length(words1)) 2*ones(1,length(words2)) 3*ones(1,length(words3)) 4*ones(1,length(words4)) 5*ones(1,length(words5))]
%
% [d]=GetDistances([words1,words2,words3,words4,words5],idxKey);
idx=getDistancesPairs([words1,words2,words3,words4,words5],idxKey);
......@@ -374,3 +374,107 @@ GetDistances::(pairs)
Barack Obama,Hillary Clinton,John Edwards,Joe Biden,Chris Dodd,Mike Gravel,John McCain,Mitt Romney,Mike Huckabee,Ron Paul,Fred Thompson,Alan Keyes,kGap=2
nQueryCount=66, nCacheCount=330
nCorrect=7
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 51 9.376
Pascal,Kolmogorov,Descartes,Einstein,Galileo,Kepler,nQueryCount=37, nCacheCount=155
[3 0;1 2]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 52 50.803
Pascal,Kolmogorov,Bohr,Einstein,Galileo,Kepler,nQueryCount=16, nCacheCount=176
[3 0;0 3]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 53 20.83
Pascal,Kolmogorov,Godel,Einstein,Galileo,Kepler,nQueryCount=16, nCacheCount=176
[3 0;1 2]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 54 51.807
Pascal,Kolmogorov,Godel,Einstein,Galileo,Kepler,Bohr,nQueryCount=22, nCacheCount=230
[2 1;3 1]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 56 19.528
Pascal,Kolmogorov,Godel,Einstein,Newton,Hawking,Bohr,nQueryCount=34, nCacheCount=218
[2 1;2 2]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 57 40.977
Fermat,Kolmogorov,Godel,Einstein,Newton,Hawking,Bohr,nQueryCount=20, nCacheCount=232
[3 0;0 4]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 15 58 23.537
Fermat,Kolmogorov,Godel,Riemann,Einstein,Newton,Hawking,Bohr,nQueryCount=28, nCacheCount=292
[4 0;0 4]
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 16 1 18.892
Fermat,Kolmogorov,Godel,Riemann,Einstein,Newton,Hawking,Bohr,Freud,Pavlov,Skinner,Jung,nQueryCount=95, nCacheCount=649
[4 0 0;0 4 0;0 0 4]
-------------------------
GetDistances::(pairs)
2014 11 20 16 1 55.968
Fermat,Kolmogorov,Godel,Riemann,Einstein,Newton,Hawking,Bohr,Freud,Pavlov,Skinner,Jung,kGap=1
nQueryCount=47, nCacheCount=349
nCorrect=6
-------------------------
GetDistances::(multiples) NW=5
2014 11 20 16 9 50.846
Fermat,Kolmogorov,Godel,Riemann,Einstein,Newton,Hawking,Bohr,Freud,Pavlov,Skinner,Jung,Turing,Lovelace,Knuth,Hopper,nQueryCount=135, nCacheCount=1209
[3 0 0 1;0 4 0 0;0 0 4 0;0 0 0 4]
-------------------------
GetDistances::(multiples) NW=5
2014 11 26 11 56 11.278
Fermat,Hilbert,Godel,Riemann,Gauss,Einstein,Newton,Hawking,Bohr,Maxwell,Boltzmann,Freud,Pavlov,Skinner,Jung,Turing,Lovelace,Knuth,Hopper,Darwin,Lamarck,Linnaeus,Mendel,nQueryCount=601, nCacheCount=2113
[4 0 0 1 0;0 6 0 0 0;0 0 4 0 0;0 0 0 4 0;0 0 0 0 4]
-------------------------
GetDistances::(pairs)
2014 11 26 11 58 7.632
Fermat,Hilbert,Godel,Riemann,Gauss,Einstein,Newton,Hawking,Bohr,Maxwell,Boltzmann,Freud,Pavlov,Skinner,Jung,Turing,Lovelace,Knuth,Hopper,Darwin,Lamarck,Linnaeus,Mendel,kGap=1
nQueryCount=235, nCacheCount=1283
nCorrect=17
-------------------------
GetDistances::(pairs)
2014 11 26 12 26 43.273
Fermat,Hilbert,Godel,Riemann,Gauss,Einstein,Newton,Hawking,Bohr,Maxwell,Boltzmann,Freud,Pavlov,Skinner,Jung,Turing,Lovelace,Knuth,Hopper,Darwin,Lamarck,Linnaeus,Mendel,kGap=1
nQueryCount=277, nCacheCount=1241
nCorrect=22
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment