Skip to content
This repository was archived by the owner on Mar 31, 2022. It is now read-only.

Commit 6b0c8d4

Browse files
authored
(#53) Swap the optimization strategy:
* Use the limit on one external iteration instead of 10 internal ones; * Add the plot of a realization of the Gaussian process after optimization; * Add the plot of the original time series to the _models_ notebooks; * Extend the documentation; * Make plot headings uniform.
1 parent 2d9d057 commit 6b0c8d4

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

docs/convert.jl

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ md_lines_preamble = Dict{Int, String}(
6060

6161
7 => """
6262
Gaussian processes are cool, of course, but the models they will use will require
63-
initial values. Some of these have already been identified before (mean and
63+
initial values. Some of these have already been determined before (mean and
6464
variance), but we will also need an estimate of the period. Let's go the classic
6565
way and make this estimate by determining the peak position on the Lomb-Scargle
6666
periodogram.
@@ -73,7 +73,8 @@ md_lines_preamble = Dict{Int, String}(
7373
9 => """
7474
Yeah, close the plot. It's just good practice. This ends the preamble to this
7575
object, and we can now proceed with tests of different models for Gaussian
76-
processes. Click on any of the model IDs in the sidebar to continue.
76+
processes. Click on any of the model IDs in the sidebar to continue. If you're not
77+
sure what they mean, check out the [`IDs`](@ref IDs) page.
7778
""",
7879
]
7980
)
@@ -87,8 +88,8 @@ md_lines_kernel = Dict{Int, String}(
8788

8889
2 => """
8990
Let's define a function for calculating the negative log marginal likelihood and an
90-
auxiliary function for unpacking the tuple of parameters. See the `IDs` page on the
91-
sidebar for decrypting model IDs.
91+
auxiliary function for unpacking the tuple of parameters. See the [`IDs`](@ref IDs)
92+
page on the sidebar for decrypting model IDs.
9293
""",
9394

9495
3 => """
@@ -99,9 +100,25 @@ md_lines_kernel = Dict{Int, String}(
99100
""",
100101

101102
4 => """
102-
Finally, let's optimize the negative log marginal likelihood function. This process
103-
can take quite a lot of time (it was likely aborted manually at some point), so the
104-
output of the optimizer is very large and therefore placed under the spoiler.
103+
Let's optimize the negative log marginal likelihood function. This process
104+
can take quite a lot of time, so the output of the optimizer is very large and
105+
therefore placed under the spoiler. Don't mind the failure, by the way. It's
106+
because of the prohibition of the BFGS solver from getting out of the pits.
107+
""",
108+
109+
5 => """
110+
Now let's create a plot similar to the previous one using a set of parameters
111+
obtained during the optimization process.
112+
""",
113+
114+
6 => """
115+
We can now compare this realization of the Gaussian process with the original
116+
time series for similarity of characteristics. This is for a test of matching our
117+
subjective opinion of similarity with the objective result of the solver.
118+
""",
119+
120+
7 => """
121+
This ends the notebook about this model. There are others on the sidebar.
105122
""",
106123
]
107124
)
@@ -191,7 +208,7 @@ for (index, notebook) in enumerate(notebooks)
191208
if inside_output_block
192209

193210
# Condition of placing the end of a spoiler (before a block of code)
194-
if about_kernel && code_block == 4
211+
if about_kernel && code_block == 5
195212
lines[index - 1] = """
196213
```
197214
```@raw html

docs/src/ids.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# [Object and model identifiers](@id IDs)
22

3+
This page lists all the objects and models used in this study.
4+
35
### Objects
46

57
* [KIC 1430163](https://archive.stsci.edu/kepler/data_search/search.php?target=1430163&action=Search&outputformat=HTML_Table):

docs/src/index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ and white noise. That is, these are models of a quasi-periodic process. See the
3030

3131
Well, there's a section on the sidebar with all the notebooks, maybe that's worth checking
3232
out.
33+
34+
### Wait, notebooks?
35+
36+
Yes, Jupyter Notebooks converted to HTML pages. Their two main types in this work are
37+
_preambles_, which contain data about an object, and _models_, which contain the process
38+
of modeling a given time series. Accordingly, they are organized by these identifiers.

notebooks/KIC1430163/EQP/EQP.ipynb

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

notebooks/KIC1430163/KIC1430163.ipynb

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)