Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MCDTS.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maximilian Gelbrecht
MCDTS.jl
Commits
7c8cd1e0
Commit
7c8cd1e0
authored
3 years ago
by
K. Hauke Kraemer
Browse files
Options
Downloads
Patches
Plain Diff
slight changes in "old" local_PRED and adjusted tests
parent
d49eaf39
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/optim_methods.jl
+10
-2
10 additions, 2 deletions
src/optim_methods.jl
test/base_test_complete.jl
+6
-5
6 additions, 5 deletions
test/base_test_complete.jl
with
16 additions
and
7 deletions
src/optim_methods.jl
+
10
−
2
View file @
7c8cd1e0
...
...
@@ -382,7 +382,11 @@ function zeroth_prediction_cost(Y::AbstractDataset{D, ET};
# select a random state space vector sample according to input samplesize
NN
=
length
(
Y
)
-
Tw
;
NNN
=
floor
(
Int
,
samplesize
*
NN
)
ns
=
sample
(
1
:
NN
,
NNN
;
replace
=
false
)
# the fiducial point indices
if
samplesize
<
1
ns
=
sample
(
1
:
NN
,
NNN
;
replace
=
false
)
# the fiducial point indices
else
ns
=
1
:
NN
# the fiducial point indices
end
vs
=
Y
[
ns
]
# the fiducial points in the data set
...
...
@@ -586,7 +590,11 @@ function linear_prediction_cost(Y::AbstractDataset{D, ET};
# select a random state space vector sample according to input samplesize
NN
=
length
(
Y
)
-
Tw
;
NNN
=
floor
(
Int
,
samplesize
*
NN
)
ns
=
sample
(
1
:
NN
,
NNN
;
replace
=
false
)
# the fiducial point indices
if
samplesize
<
1
ns
=
sample
(
1
:
NN
,
NNN
;
replace
=
false
)
# the fiducial point indices
else
ns
=
1
:
NN
# the fiducial point indices
end
vs
=
Y
[
ns
]
# the fiducial points in the data set
...
...
This diff is collapsed.
Click to expand it.
test/base_test_complete.jl
+
6
−
5
View file @
7c8cd1e0
...
...
@@ -186,11 +186,12 @@ println("\nTesting MCDTS complete tree, Lorenz Prediction:")
best_node
=
MCDTS
.
best_embedding
(
tree
)
τ_mcdts2
=
best_node
.
τs
L_mcdts2
=
best_node
.
L
@test
length
(
τ_mcdts2
)
==
4
@test
τ_mcdts2
[
2
]
==
3
@test
length
(
τ_mcdts2
)
==
5
@test
τ_mcdts2
[
2
]
==
4
@test
τ_mcdts2
[
3
]
==
1
@test
τ_mcdts2
[
4
]
==
2
@test
L_mcdts2
<
0.0000037
@test
τ_mcdts2
[
5
]
==
3
@test
L_mcdts2
<
0.00000383
# Prediction range-function, zeroth predictor mean-KL
...
...
@@ -308,8 +309,8 @@ println("\nTesting MCDTS complete tree, Lorenz Prediction:")
τ_mcdts
=
best_node
.
τs
L_mcdts
=
best_node
.
L
@test
length
(
τ_mcdts
)
==
3
@test
τ_mcdts
[
2
]
==
1
@test
τ_mcdts
[
3
]
==
5
@test
τ_mcdts
[
2
]
==
5
@test
τ_mcdts
[
3
]
==
1
@test
L_mcdts
<
0.01612
end
...
...
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