Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NWD
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
NWD
Commits
51b20dd3
Commit
51b20dd3
authored
Nov 26, 2014
by
Andrew Cohen
Browse files
Options
Downloads
Patches
Plain Diff
wiki scientists
parent
3e757678
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
getDistancesPairs.m
+1
-1
1 addition, 1 deletion
getDistancesPairs.m
goWikiScientists.m
+29
-0
29 additions, 0 deletions
goWikiScientists.m
results.txt
+96
-0
96 additions, 0 deletions
results.txt
with
126 additions
and
1 deletion
getDistancesPairs.m
+
1
−
1
View file @
51b20dd3
...
@@ -18,7 +18,7 @@ for i=1:length(words)
...
@@ -18,7 +18,7 @@ for i=1:length(words)
end
end
d(length(words),length(words))=0;
d(length(words),length(words))=0;
d(find(isinf(d)))=
3
;
d(find(isinf(d)))=
1.2
;
d=Regularize(d);
d=Regularize(d);
[kGap Gap S idx] = GapSpectral(d,6,1);
[kGap Gap S idx] = GapSpectral(d,6,1);
fprintf('kGap=%d\n',kGap);
fprintf('kGap=%d\n',kGap);
...
...
This diff is collapsed.
Click to expand it.
goWikiScientists.m
0 → 100644
+
29
−
0
View file @
51b20dd3
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
);
This diff is collapsed.
Click to expand it.
results.txt
+
96
−
0
View file @
51b20dd3
...
@@ -374,3 +374,99 @@ GetDistances::(pairs)
...
@@ -374,3 +374,99 @@ 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
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
nQueryCount=66, nCacheCount=330
nCorrect=7
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment