Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
melodic
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
Container Registry
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
melodic
Commits
cad25240
Commit
cad25240
authored
17 years ago
by
Christian Beckmann
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
762a99c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
meldata.cc
+4
-1
4 additions, 1 deletion
meldata.cc
melica.cc
+2
-2
2 additions, 2 deletions
melica.cc
meloptions.h
+5
-0
5 additions, 0 deletions
meloptions.h
with
11 additions
and
3 deletions
meldata.cc
+
4
−
1
View file @
cad25240
...
...
@@ -209,7 +209,10 @@ namespace Melodic{
tmpData
=
process_file
(
opts
.
inputfname
.
value
().
at
(
ctr
),
numfiles
);
if
(
opts
.
debug
.
value
())
save4D
(
tmpData
/
numfiles
,
string
(
"preproc_dat"
)
+
num2str
(
ctr
+
1
));
alldat
+=
tmpData
/
numfiles
;
if
(
tmpData
.
Ncols
()
==
alldat
.
Ncols
()
&&
tmpData
.
Nrows
()
==
alldat
.
Nrows
())
alldat
+=
tmpData
/
numfiles
;
else
message
(
"Data dimensions do not match - ignoring "
+
opts
.
inputfname
.
value
().
at
(
ctr
)
<<
endl
);
}
//update mask
...
...
This diff is collapsed.
Click to expand it.
melica.cc
+
2
−
2
View file @
cad25240
...
...
@@ -114,13 +114,13 @@ namespace Melodic{
Matrix
temp
(
melodat
.
get_dewhite
()
*
redUMM
);
temp
=
melodat
.
expand_dimred
(
temp
);
temp
=
krapprox
(
temp
,
int
(
temp
.
Nrows
()
/
melodat
.
get_numfiles
()));
minAbsSin2
=
1
-
diag
(
corrcoef
(
temp
,
rank1_old
)).
Minimum
();
minAbsSin2
=
1
-
diag
(
abs
(
corrcoef
(
temp
,
rank1_old
))
)
.
Minimum
();
rank1_old
=
temp
;
temp
=
melodat
.
reduce_dimred
(
temp
);
redUMM
=
melodat
.
get_white
()
*
temp
;
message
(
" change : "
<<
abs
(
minAbsSin2
)
<<
endl
);
if
(
abs
(
minAbsSin2
)
<
0.01
&&
abs
(
minAbsSin
)
<
opts
.
epsilon
.
value
()){
break
;}
if
(
abs
(
minAbsSin2
)
<
opts
.
epsilonS
.
value
()
&&
abs
(
minAbsSin
)
<
opts
.
epsilon
.
value
()){
break
;}
}
}
while
(
(
itt_ctr2
<
newmaxitts
/
opts
.
maxNumItt
.
value
())
&&
...
...
This diff is collapsed.
Click to expand it.
meloptions.h
+
5
−
0
View file @
cad25240
...
...
@@ -65,6 +65,7 @@ class MelodicOptions {
Option
<
string
>
segment
;
Option
<
bool
>
tsmooth
;
Option
<
float
>
epsilon
;
Option
<
float
>
epsilonS
;
Option
<
int
>
maxNumItt
;
Option
<
int
>
maxRestart
;
Option
<
int
>
rank1interval
;
...
...
@@ -212,6 +213,9 @@ class MelodicOptions {
epsilon
(
string
(
"--eps,--epsilon"
),
0.0005
,
string
(
"minimum error change"
),
false
,
requires_argument
),
epsilonS
(
string
(
"--epsS,--epsilonS"
),
0.03
,
string
(
"minimum error change for rank-1 approximation in TICA"
),
false
,
requires_argument
),
maxNumItt
(
string
(
"--maxit"
),
500
,
string
(
"
\t
maximum number of iterations before restart"
),
false
,
requires_argument
),
...
...
@@ -376,6 +380,7 @@ class MelodicOptions {
options
.
add
(
segment
);
options
.
add
(
tsmooth
);
options
.
add
(
epsilon
);
options
.
add
(
epsilonS
);
options
.
add
(
maxNumItt
);
options
.
add
(
maxRestart
);
options
.
add
(
rank1interval
);
...
...
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