Skip to content

Commit

Permalink
build based on a4fad68
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Apr 10, 2024
1 parent 6ea4367 commit d68e93a
Show file tree
Hide file tree
Showing 14 changed files with 90 additions and 90 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-05T15:39:03","documenter_version":"1.3.0"}}
{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-04-10T15:51:39","documenter_version":"1.3.0"}}
2 changes: 1 addition & 1 deletion dev/index.html

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions dev/lib/functions/index.html

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions dev/man/aggregation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
Row │ Date Value
<span class="sgr90"> DateTime Float64
─────┼────────────────────────────────
1 │ 2014-01-01T00:00:00 0.804561
2 │ 2014-01-01T00:05:00 0.0357766
3 │ 2014-01-01T00:10:00 0.805844
4 │ 2014-01-01T00:15:00 0.087234
5 │ 2014-01-01T00:20:00 0.563243
6 │ 2014-01-01T00:25:00 0.641452
7 │ 2014-01-01T00:30:00 0.526159
8 │ 2014-01-01T00:35:00 0.684173
9 │ 2014-01-01T00:40:00 0.575456
10 │ 2014-01-01T00:45:00 0.614177</span></span></code></pre><h2 id="DateValgator"><a class="docs-heading-anchor" href="#DateValgator">DateValgator</a><a id="DateValgator-1"></a><a class="docs-heading-anchor-permalink" href="#DateValgator" title="Permalink"></a></h2><p>Let&#39;s apply the aggregator and try diffent groupings: hourly vs half hourly vs daily aggregates of the data.</p><pre><code class="language-julia hljs">using TSML
1 │ 2014-01-01T00:00:00 0.573884
2 │ 2014-01-01T00:05:00 0.844533
3 │ 2014-01-01T00:10:00 0.581939
4 │ 2014-01-01T00:15:00 0.48463
5 │ 2014-01-01T00:20:00 0.668158
6 │ 2014-01-01T00:25:00 0.885289
7 │ 2014-01-01T00:30:00 0.881523
8 │ 2014-01-01T00:35:00 0.851777
9 │ 2014-01-01T00:40:00 0.880195
10 │ 2014-01-01T00:45:00 0.0383288</span></span></code></pre><h2 id="DateValgator"><a class="docs-heading-anchor" href="#DateValgator">DateValgator</a><a id="DateValgator-1"></a><a class="docs-heading-anchor-permalink" href="#DateValgator" title="Permalink"></a></h2><p>Let&#39;s apply the aggregator and try diffent groupings: hourly vs half hourly vs daily aggregates of the data.</p><pre><code class="language-julia hljs">using TSML

hourlyagg = DateValgator(Dict(:dateinterval =&gt; Dates.Hour(1)))
halfhourlyagg = DateValgator(Dict(:dateinterval =&gt; Dates.Minute(30)))
Expand All @@ -29,25 +29,25 @@
dailyres = fit_transform!(dailyagg,df)</code></pre><p>The first 5 rows of half-hourly, hourly, and daily aggregates:</p><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; first(halfhourlyres,5)</code><code class="nohighlight hljs ansi" style="display:block;"><span class="sgr1">5×2 DataFrame
Row │ Date Value
<span class="sgr90"> DateTime Float64?
─────┼───────────────────────────────
1 │ 2014-01-01T00:00:00 0.804561
2 │ 2014-01-01T00:30:00 0.526159
3 │ 2014-01-01T01:00:00 0.235296
4 │ 2014-01-01T01:30:00 0.450721
5 │ 2014-01-01T02:00:00 0.0514711</span></span></code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; first(hourlyres,5)</code><code class="nohighlight hljs ansi" style="display:block;"><span class="sgr1">5×2 DataFrame
─────┼───────────────────────────────
1 │ 2014-01-01T00:00:00 0.573884
2 │ 2014-01-01T00:30:00 0.881523
3 │ 2014-01-01T01:00:00 0.678097
4 │ 2014-01-01T01:30:00 0.580916
5 │ 2014-01-01T02:00:00 0.620842</span></span></code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; first(hourlyres,5)</code><code class="nohighlight hljs ansi" style="display:block;"><span class="sgr1">5×2 DataFrame
Row │ Date Value
<span class="sgr90"> DateTime Float64?
─────┼───────────────────────────────
1 │ 2014-01-01T00:00:00 0.602347
2 │ 2014-01-01T01:00:00 0.594817
3 │ 2014-01-01T02:00:00 0.320339
4 │ 2014-01-01T03:00:00 0.570641
5 │ 2014-01-01T04:00:00 0.535168</span></span></code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; first(dailyres,5)</code><code class="nohighlight hljs ansi" style="display:block;"><span class="sgr1">5×2 DataFrame
1 │ 2014-01-01T00:00:00 0.625049
2 │ 2014-01-01T01:00:00 0.674655
3 │ 2014-01-01T02:00:00 0.571333
4 │ 2014-01-01T03:00:00 0.741202
5 │ 2014-01-01T04:00:00 0.277196</span></span></code><br/><code class="language-julia-repl hljs" style="display:block;">julia&gt; first(dailyres,5)</code><code class="nohighlight hljs ansi" style="display:block;"><span class="sgr1">5×2 DataFrame
Row │ Date Value
<span class="sgr90"> DateTime Float64?
─────┼───────────────────────────────
1 │ 2014-01-01T00:00:00 0.504819
2 │ 2014-01-02T00:00:00 0.515762
3 │ 2014-01-03T00:00:00 0.484013
4 │ 2014-01-04T00:00:00 0.547538
5 │ 2014-01-05T00:00:00 0.557711</span></span></code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../dateproc/">« Date PreProcessing</a><a class="docs-footer-nextpage" href="../imputation/">Imputation »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Friday 5 April 2024 15:39">Friday 5 April 2024</span>. Using Julia version 1.10.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
1 │ 2014-01-01T00:00:00 0.535325
2 │ 2014-01-02T00:00:00 0.47691
3 │ 2014-01-03T00:00:00 0.574036
4 │ 2014-01-04T00:00:00 0.531759
5 │ 2014-01-05T00:00:00 0.466941</span></span></code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../dateproc/">« Date PreProcessing</a><a class="docs-footer-nextpage" href="../imputation/">Imputation »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Wednesday 10 April 2024 15:51">Wednesday 10 April 2024</span>. Using Julia version 1.10.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
42 changes: 21 additions & 21 deletions dev/man/dateproc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
x = DataFrame(Date=dat,Value=vals)</code></pre><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; first(x,5)</code><code class="nohighlight hljs ansi" style="display:block;"><span class="sgr1">5×2 DataFrame
Row │ Date Value
<span class="sgr90"> DateTime Float64
─────┼───────────────────────────────
1 │ 2017-01-01T00:00:00 0.388087
2 │ 2017-01-02T00:00:00 0.132098
3 │ 2017-01-03T00:00:00 0.452514
4 │ 2017-01-04T00:00:00 0.799095
5 │ 2017-01-05T00:00:00 0.0897081</span></span></code></pre><h2 id="Dateifier"><a class="docs-heading-anchor" href="#Dateifier">Dateifier</a><a id="Dateifier-1"></a><a class="docs-heading-anchor-permalink" href="#Dateifier" title="Permalink"></a></h2><p>Let us create an instance of <code>Dateifier</code> passing the size of row, stride, and steps ahead to predict:</p><pre><code class="language-julia hljs">mtr = Dateifier(Dict(:ahead=&gt;24,:size=&gt;24,:stride=&gt;5))
─────┼───────────────────────────────
1 │ 2017-01-01T00:00:00 0.455862
2 │ 2017-01-02T00:00:00 0.289942
3 │ 2017-01-03T00:00:00 0.132556
4 │ 2017-01-04T00:00:00 0.278202
5 │ 2017-01-05T00:00:00 0.603747</span></span></code></pre><h2 id="Dateifier"><a class="docs-heading-anchor" href="#Dateifier">Dateifier</a><a id="Dateifier-1"></a><a class="docs-heading-anchor-permalink" href="#Dateifier" title="Permalink"></a></h2><p>Let us create an instance of <code>Dateifier</code> passing the size of row, stride, and steps ahead to predict:</p><pre><code class="language-julia hljs">mtr = Dateifier(Dict(:ahead=&gt;24,:size=&gt;24,:stride=&gt;5))
res = fit_transform!(mtr,x)</code></pre><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; first(res,5)</code><code class="nohighlight hljs ansi" style="display:block;"><span class="sgr1">5×8 DataFrame
Row │ year month day hour week dow doq qoy
<span class="sgr90"> Int64 Int64 Int64 Int64 Int64 Int64 Int64 Int64
Expand All @@ -35,22 +35,22 @@
valuematrix = fit_transform!(mtr,X)
datematrix = fit_transform!(dtr,X)
mlfeatures = hcat(datematrix,valuematrix)</code></pre><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; first(mlfeatures,5)</code><code class="nohighlight hljs ansi" style="display:block;"><span class="sgr1">5×14 DataFrame
Row │ year month day hour week dow doq qoy x1 x2
<span class="sgr90"> Int64 Int64 Int64 Int64 Int64 Int64 Int64 Int64 Float64 Floa
Row │ year month day hour week dow doq qoy x1 x2
<span class="sgr90"> Int64 Int64 Int64 Int64 Int64 Int64 Int64 Int64 Float64 Float
─────┼──────────────────────────────────────────────────────────────────────────
1 │ 2018 1 28 0 4 7 28 1 0.585663 0.60
2 │ 2018 1 26 0 4 5 26 1 0.512697 0.38
3 │ 2018 1 24 0 4 3 24 1 0.904015 0.57
4 │ 2018 1 22 0 4 1 22 1 0.312296 0.59
5 │ 2018 1 20 0 3 6 20 1 0.0498143 0.08
1 │ 2018 1 28 0 4 7 28 1 0.725661 0.049
2 │ 2018 1 26 0 4 5 26 1 0.229976 0.252
3 │ 2018 1 24 0 4 3 24 1 0.896331 0.302
4 │ 2018 1 22 0 4 1 22 1 0.437988 0.267
5 │ 2018 1 20 0 3 6 20 1 0.944583 0.323
</span><span class="sgr36"> 5 columns omitted</span></span></code></pre><p>Another way is to use the symbolic pipeline to describe the transformation and concatenation in just one line of expression.</p><pre><code class="language-julia hljs">ppl = dtr + mtr
features = fit_transform!(ppl,X)</code></pre><pre><code class="language-julia-repl hljs" style="display:block;">julia&gt; first(features,5)</code><code class="nohighlight hljs ansi" style="display:block;"><span class="sgr1">5×14 DataFrame
Row │ year month day hour week dow doq qoy x1 x2
<span class="sgr90"> Int64 Int64 Int64 Int64 Int64 Int64 Int64 Int64 Float64 Floa
Row │ year month day hour week dow doq qoy x1 x2
<span class="sgr90"> Int64 Int64 Int64 Int64 Int64 Int64 Int64 Int64 Float64 Float
─────┼──────────────────────────────────────────────────────────────────────────
1 │ 2018 1 28 0 4 7 28 1 0.585663 0.60
2 │ 2018 1 26 0 4 5 26 1 0.512697 0.38
3 │ 2018 1 24 0 4 3 24 1 0.904015 0.57
4 │ 2018 1 22 0 4 1 22 1 0.312296 0.59
5 │ 2018 1 20 0 3 6 20 1 0.0498143 0.08
</span><span class="sgr36"> 5 columns omitted</span></span></code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../valueproc/">« Value PreProcessing</a><a class="docs-footer-nextpage" href="../aggregation/">Aggregation »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Friday 5 April 2024 15:39">Friday 5 April 2024</span>. Using Julia version 1.10.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
1 │ 2018 1 28 0 4 7 28 1 0.725661 0.049
2 │ 2018 1 26 0 4 5 26 1 0.229976 0.252
3 │ 2018 1 24 0 4 3 24 1 0.896331 0.302
4 │ 2018 1 22 0 4 1 22 1 0.437988 0.267
5 │ 2018 1 20 0 3 6 20 1 0.944583 0.323
</span><span class="sgr36"> 5 columns omitted</span></span></code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../valueproc/">« Value PreProcessing</a><a class="docs-footer-nextpage" href="../aggregation/">Aggregation »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Wednesday 10 April 2024 15:51">Wednesday 10 April 2024</span>. Using Julia version 1.10.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/man/imputation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@
23 │ 2015-11-01T00:00:00 0.482642
24 │ 2015-12-01T00:00:00 0.498927
25 │ 2016-01-01T00:00:00 0.485564
</span><span class="sgr36"> 10 rows omitted</span></span></code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../aggregation/">« Aggregation</a><a class="docs-footer-nextpage" href="../../lib/functions/">Types and Functions »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Friday 5 April 2024 15:39">Friday 5 April 2024</span>. Using Julia version 1.10.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
</span><span class="sgr36"> 10 rows omitted</span></span></code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../aggregation/">« Aggregation</a><a class="docs-footer-nextpage" href="../../lib/functions/">Types and Functions »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.3.0 on <span class="colophon-date" title="Wednesday 10 April 2024 15:51">Wednesday 10 April 2024</span>. Using Julia version 1.10.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>

0 comments on commit d68e93a

Please sign in to comment.