Skip to content

Commit

Permalink
Deploying to gh-pages from @ 338d3d4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie256 committed Sep 19, 2023
1 parent 399af6d commit dc9c4ec
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 36 deletions.
20 changes: 6 additions & 14 deletions _modules/whylogs/api/writer/whylabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ <h1>Source code for whylogs.api.writer.whylabs</h1><div class="highlight"><pre>

<span class="n">FIVE_MINUTES_IN_SECONDS</span> <span class="o">=</span> <span class="mi">60</span> <span class="o">*</span> <span class="mi">5</span>
<span class="n">DAY_IN_SECONDS</span> <span class="o">=</span> <span class="mi">60</span> <span class="o">*</span> <span class="mi">60</span> <span class="o">*</span> <span class="mi">24</span>
<span class="n">WEEK_IN_SECONDS</span> <span class="o">=</span> <span class="n">DAY_IN_SECONDS</span> <span class="o">*</span> <span class="mi">7</span>
<span class="n">FIVE_YEARS_IN_SECONDS</span> <span class="o">=</span> <span class="n">DAY_IN_SECONDS</span> <span class="o">*</span> <span class="mi">365</span> <span class="o">*</span> <span class="mi">5</span>
<span class="n">logger</span> <span class="o">=</span> <span class="n">logging</span><span class="o">.</span><span class="n">getLogger</span><span class="p">(</span><span class="vm">__name__</span><span class="p">)</span>

Expand Down Expand Up @@ -1021,19 +1020,12 @@ <h1>Source code for whylogs.api.writer.whylabs</h1><div class="highlight"><pre>
<span class="sa">f</span><span class="s2">&quot;About to upload a profile with a dataset_timestamp that is in the future: &quot;</span>
<span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">time_delta_seconds</span><span class="si">}</span><span class="s2">s old.&quot;</span>
<span class="p">)</span>
<span class="k">elif</span> <span class="n">time_delta_seconds</span> <span class="o">&gt;</span> <span class="n">WEEK_IN_SECONDS</span><span class="p">:</span>
<span class="k">if</span> <span class="n">time_delta_seconds</span> <span class="o">&gt;</span> <span class="n">FIVE_YEARS_IN_SECONDS</span><span class="p">:</span>
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;A profile being uploaded to WhyLabs has a dataset_timestamp of(</span><span class="si">{</span><span class="n">dataset_timestamp</span><span class="si">}</span><span class="s2">) &quot;</span>
<span class="sa">f</span><span class="s2">&quot;compared to current datetime: </span><span class="si">{</span><span class="n">utc_now</span><span class="si">}</span><span class="s2">. Uploads of profiles older than 5 years &quot;</span>
<span class="s2">&quot;might not be monitored in WhyLabs and may take up to 24 hours to show up.&quot;</span>
<span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">logger</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;A profile being uploaded to WhyLabs has a dataset_timestamp of </span><span class="si">{</span><span class="n">dataset_timestamp</span><span class="si">}</span><span class="s2"> &quot;</span>
<span class="sa">f</span><span class="s2">&quot;which is older than 7 days compared to </span><span class="si">{</span><span class="n">utc_now</span><span class="si">}</span><span class="s2">. These profiles should be processed &quot;</span>
<span class="sa">f</span><span class="s2">&quot;within 24 hours.&quot;</span>
<span class="p">)</span>
<span class="k">if</span> <span class="n">time_delta_seconds</span> <span class="o">&gt;</span> <span class="n">FIVE_YEARS_IN_SECONDS</span><span class="p">:</span>
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;A profile being uploaded to WhyLabs has a dataset_timestamp of(</span><span class="si">{</span><span class="n">dataset_timestamp</span><span class="si">}</span><span class="s2">) &quot;</span>
<span class="sa">f</span><span class="s2">&quot;compared to current datetime: </span><span class="si">{</span><span class="n">utc_now</span><span class="si">}</span><span class="s2">. Uploads of profiles older than 5 years &quot;</span>
<span class="s2">&quot;might not be monitored in WhyLabs and may take up to 24 hours to show up.&quot;</span>
<span class="p">)</span>

<span class="k">if</span> <span class="n">stamp</span> <span class="o">&lt;=</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span>
Expand Down
5 changes: 0 additions & 5 deletions _sources/api/whylogs/api/writer/whylabs/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Attributes

whylogs.api.writer.whylabs.FIVE_MINUTES_IN_SECONDS
whylogs.api.writer.whylabs.DAY_IN_SECONDS
whylogs.api.writer.whylabs.WEEK_IN_SECONDS
whylogs.api.writer.whylabs.FIVE_YEARS_IN_SECONDS
whylogs.api.writer.whylabs.logger
whylogs.api.writer.whylabs.KNOWN_CUSTOM_PERFORMANCE_METRICS
Expand All @@ -38,10 +37,6 @@ Attributes
.. py:data:: WEEK_IN_SECONDS
.. py:data:: FIVE_YEARS_IN_SECONDS
Expand Down
15 changes: 3 additions & 12 deletions api/whylogs/api/writer/whylabs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -467,16 +467,13 @@ <h3>Attributes<a class="headerlink" href="#attributes" title="Permalink to this
<tr class="row-even"><td><p><a class="reference internal" href="#whylogs.api.writer.whylabs.DAY_IN_SECONDS" title="whylogs.api.writer.whylabs.DAY_IN_SECONDS"><code class="xref py py-obj docutils literal notranslate"><span class="pre">DAY_IN_SECONDS</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#whylogs.api.writer.whylabs.WEEK_IN_SECONDS" title="whylogs.api.writer.whylabs.WEEK_IN_SECONDS"><code class="xref py py-obj docutils literal notranslate"><span class="pre">WEEK_IN_SECONDS</span></code></a></p></td>
<tr class="row-odd"><td><p><a class="reference internal" href="#whylogs.api.writer.whylabs.FIVE_YEARS_IN_SECONDS" title="whylogs.api.writer.whylabs.FIVE_YEARS_IN_SECONDS"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FIVE_YEARS_IN_SECONDS</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#whylogs.api.writer.whylabs.FIVE_YEARS_IN_SECONDS" title="whylogs.api.writer.whylabs.FIVE_YEARS_IN_SECONDS"><code class="xref py py-obj docutils literal notranslate"><span class="pre">FIVE_YEARS_IN_SECONDS</span></code></a></p></td>
<tr class="row-even"><td><p><a class="reference internal" href="#whylogs.api.writer.whylabs.logger" title="whylogs.api.writer.whylabs.logger"><code class="xref py py-obj docutils literal notranslate"><span class="pre">logger</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="#whylogs.api.writer.whylabs.logger" title="whylogs.api.writer.whylabs.logger"><code class="xref py py-obj docutils literal notranslate"><span class="pre">logger</span></code></a></p></td>
<td><p></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="#whylogs.api.writer.whylabs.KNOWN_CUSTOM_PERFORMANCE_METRICS" title="whylogs.api.writer.whylabs.KNOWN_CUSTOM_PERFORMANCE_METRICS"><code class="xref py py-obj docutils literal notranslate"><span class="pre">KNOWN_CUSTOM_PERFORMANCE_METRICS</span></code></a></p></td>
<tr class="row-odd"><td><p><a class="reference internal" href="#whylogs.api.writer.whylabs.KNOWN_CUSTOM_PERFORMANCE_METRICS" title="whylogs.api.writer.whylabs.KNOWN_CUSTOM_PERFORMANCE_METRICS"><code class="xref py py-obj docutils literal notranslate"><span class="pre">KNOWN_CUSTOM_PERFORMANCE_METRICS</span></code></a></p></td>
<td><p></p></td>
</tr>
</tbody>
Expand All @@ -492,11 +489,6 @@ <h3>Attributes<a class="headerlink" href="#attributes" title="Permalink to this
<span class="sig-prename descclassname"><span class="pre">whylogs.api.writer.whylabs.</span></span><span class="sig-name descname"><span class="pre">DAY_IN_SECONDS</span></span><a class="headerlink" href="#whylogs.api.writer.whylabs.DAY_IN_SECONDS" title="Permalink to this definition">#</a></dt>
<dd></dd></dl>

<dl class="py data">
<dt class="sig sig-object py" id="whylogs.api.writer.whylabs.WEEK_IN_SECONDS">
<span class="sig-prename descclassname"><span class="pre">whylogs.api.writer.whylabs.</span></span><span class="sig-name descname"><span class="pre">WEEK_IN_SECONDS</span></span><a class="headerlink" href="#whylogs.api.writer.whylabs.WEEK_IN_SECONDS" title="Permalink to this definition">#</a></dt>
<dd></dd></dl>

<dl class="py data">
<dt class="sig sig-object py" id="whylogs.api.writer.whylabs.FIVE_YEARS_IN_SECONDS">
<span class="sig-prename descclassname"><span class="pre">whylogs.api.writer.whylabs.</span></span><span class="sig-name descname"><span class="pre">FIVE_YEARS_IN_SECONDS</span></span><a class="headerlink" href="#whylogs.api.writer.whylabs.FIVE_YEARS_IN_SECONDS" title="Permalink to this definition">#</a></dt>
Expand Down Expand Up @@ -806,7 +798,6 @@ <h3>Attributes<a class="headerlink" href="#attributes" title="Permalink to this
<li><a class="reference internal" href="#attributes">Attributes</a><ul>
<li><a class="reference internal" href="#whylogs.api.writer.whylabs.FIVE_MINUTES_IN_SECONDS">FIVE_MINUTES_IN_SECONDS</a></li>
<li><a class="reference internal" href="#whylogs.api.writer.whylabs.DAY_IN_SECONDS">DAY_IN_SECONDS</a></li>
<li><a class="reference internal" href="#whylogs.api.writer.whylabs.WEEK_IN_SECONDS">WEEK_IN_SECONDS</a></li>
<li><a class="reference internal" href="#whylogs.api.writer.whylabs.FIVE_YEARS_IN_SECONDS">FIVE_YEARS_IN_SECONDS</a></li>
<li><a class="reference internal" href="#whylogs.api.writer.whylabs.logger">logger</a></li>
<li><a class="reference internal" href="#whylogs.api.writer.whylabs.KNOWN_CUSTOM_PERFORMANCE_METRICS">KNOWN_CUSTOM_PERFORMANCE_METRICS</a></li>
Expand Down
6 changes: 2 additions & 4 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -8020,8 +8020,6 @@ <h2>W</h2>
<li><a href="api/whylogs/datasets/configs/index.html#whylogs.datasets.configs.WeatherConfig">WeatherConfig (class in whylogs.datasets.configs)</a>
</li>
<li><a href="api/whylogs/datasets/weather/index.html#whylogs.datasets.weather.WeatherDatasetIterator">WeatherDatasetIterator (class in whylogs.datasets.weather)</a>
</li>
<li><a href="api/whylogs/api/writer/whylabs/index.html#whylogs.api.writer.whylabs.WEEK_IN_SECONDS">WEEK_IN_SECONDS (in module whylogs.api.writer.whylabs)</a>
</li>
<li><a href="api/whylogs/core/metrics/maths/index.html#whylogs.core.metrics.maths.welford_online_variance_m2">welford_online_variance_m2() (in module whylogs.core.metrics.maths)</a>
</li>
Expand Down Expand Up @@ -8759,15 +8757,15 @@ <h2>W</h2>
<li><a href="api/whylogs/core/model_performance_metrics/regression_metrics/index.html#module-whylogs.core.model_performance_metrics.regression_metrics">module</a>
</li>
</ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li>
whylogs.core.predicate_parser

<ul>
<li><a href="api/whylogs/core/predicate_parser/index.html#module-whylogs.core.predicate_parser">module</a>
</li>
</ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li>
whylogs.core.preprocessing

Expand Down
Binary file modified objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit dc9c4ec

Please sign in to comment.