Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Aug 7, 2024
1 parent 840b8e5 commit 1473d5b
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
077d3623
ef5c9dc5
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://vetiver.rstudio.com
https://vetiver.posit.co
2 changes: 1 addition & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h2 class="anchored" data-anchor-id="how-can-i-tell-if-i-am-on-the-right-track-w
<h2 class="anchored" data-anchor-id="how-does-vetiver-compare-to-other-mlops-tools">How does vetiver compare to other MLOps tools?</h2>
<section id="vetiver-is-a-focused-framework-for-data-practitioners" class="level3">
<h3 class="anchored" data-anchor-id="vetiver-is-a-focused-framework-for-data-practitioners">😌 vetiver is a <strong>focused</strong> framework for data <strong>practitioners</strong></h3>
<p>The vetiver framework does not aim to be an all-in-one solution for all parts of the MLOps life cycle. Instead, vetiver provides tooling to <a href="https://vetiver.rstudio.com/get-started/version.html">version</a>, <a href="https://vetiver.rstudio.com/get-started/deploy.html">deploy</a>, and <a href="https://vetiver.rstudio.com/get-started/monitor.html">monitor</a> ML models. This focus allows vetiver to provide a better user experience and composability as organizations mature in their MLOps needs. Tools like MLFlow and managed cloud offerings like SageMaker and AzureML are designed to be comprehensive; this can be the right choice in some situations but comes with usability challenges and a steeper learning curve.</p>
<p>The vetiver framework does not aim to be an all-in-one solution for all parts of the MLOps life cycle. Instead, vetiver provides tooling to <a href="https://vetiver.posit.co/get-started/version.html">version</a>, <a href="https://vetiver.posit.co/get-started/deploy.html">deploy</a>, and <a href="https://vetiver.posit.co/get-started/monitor.html">monitor</a> ML models. This focus allows vetiver to provide a better user experience and composability as organizations mature in their MLOps needs. Tools like MLFlow and managed cloud offerings like SageMaker and AzureML are designed to be comprehensive; this can be the right choice in some situations but comes with usability challenges and a steeper learning curve.</p>
<p>The vetiver framework is built to be used by practitioners like data scientists and data analysts, the people who develop models. We believe that the person who develops a model is the right person to operationalize that model. This is in contrast to MLFlow, which is most comfortable for a software engineering persona (rather than data analysis persona).</p>
</section>
<section id="vetiver-supports-both-python-and-r" class="level3">
Expand Down
2 changes: 1 addition & 1 deletion get-started/deploy.html
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ <h2 class="anchored" data-anchor-id="prepare-a-dockerfile">Prepare a Dockerfile<
<ul>
<li><p>When you build such a Docker container <a href="https://docs.docker.com/engine/reference/commandline/build/">with <code>docker build</code></a>, all the packages needed to make a prediction with your model are installed into the container.</p></li>
<li><p>When you run the Docker container, you can pass in environment variables (for authentication to your pins board, for example) with <code>docker run --env-file .Renviron</code>.</p></li>
<li><p>Learn more about <a href="https://vetiver.rstudio.com/learn-more/deploy-with-docker.html">deploying with Docker</a>.</p></li>
<li><p>Learn more about <a href="https://vetiver.posit.co/learn-more/deploy-with-docker.html">deploying with Docker</a>.</p></li>
</ul>
</div>
</div>
Expand Down
44 changes: 21 additions & 23 deletions get-started/monitor.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@
<link rel="stylesheet" href="../styles.css">
<meta property="og:title" content="MLOps with vetiver - Monitor">
<meta property="og:description" content="">
<meta property="og:image" content="https://vetiver.rstudio.com/get-started/monitor_files/figure-html/unnamed-chunk-9-1.png">
<meta property="og:image" content="https://vetiver.posit.co/get-started/monitor_files/figure-html/unnamed-chunk-9-1.png">
<meta property="og:site-name" content="MLOps with vetiver">
<meta property="og:image:height" content="1152">
<meta property="og:image:width" content="1344">
<meta name="twitter:title" content="MLOps with vetiver - Monitor">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="https://vetiver.rstudio.com/get-started/monitor_files/figure-html/unnamed-chunk-9-1.png">
<meta name="twitter:image" content="https://vetiver.posit.co/get-started/monitor_files/figure-html/unnamed-chunk-9-1.png">
<meta name="twitter:image-height" content="1152">
<meta name="twitter:image-width" content="1344">
<meta name="twitter:card" content="summary_large_image">
Expand Down Expand Up @@ -329,7 +329,7 @@ <h2 class="anchored" data-anchor-id="compute-metrics">Compute metrics</h2>
<div class="cell">
<div class="sourceCode cell-code" id="cb3"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(vetiver)</span>
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(tidyverse)</span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>cars <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(<span class="st">"https://vetiver.rstudio.com/get-started/new-cars.csv"</span>)</span>
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a>cars <span class="ot">&lt;-</span> <span class="fu">read_csv</span>(<span class="st">"new-cars.csv"</span>)</span>
<span id="cb3-4"><a href="#cb3-4" aria-hidden="true" tabindex="-1"></a>original_cars <span class="ot">&lt;-</span> <span class="fu">slice</span>(cars, <span class="dv">1</span><span class="sc">:</span><span class="dv">14</span>)</span>
<span id="cb3-5"><a href="#cb3-5" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb3-6"><a href="#cb3-6" aria-hidden="true" tabindex="-1"></a>original_metrics <span class="ot">&lt;-</span></span>
Expand Down Expand Up @@ -358,33 +358,31 @@ <h2 class="anchored" data-anchor-id="compute-metrics">Compute metrics</h2>
<span id="cb5-4"><a href="#cb5-4" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> sklearn <span class="im">import</span> metrics</span>
<span id="cb5-5"><a href="#cb5-5" aria-hidden="true" tabindex="-1"></a><span class="im">from</span> datetime <span class="im">import</span> timedelta</span>
<span id="cb5-6"><a href="#cb5-6" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a>cars <span class="op">=</span> pd.read_csv(<span class="st">"https://vetiver.rstudio.com/get-started/new-cars.csv"</span>)</span>
<span id="cb5-7"><a href="#cb5-7" aria-hidden="true" tabindex="-1"></a>cars <span class="op">=</span> pd.read_csv(<span class="st">"new-cars.csv"</span>)</span>
<span id="cb5-8"><a href="#cb5-8" aria-hidden="true" tabindex="-1"></a>original_cars <span class="op">=</span> cars.iloc[:<span class="dv">14</span>, :].copy()</span>
<span id="cb5-9"><a href="#cb5-9" aria-hidden="true" tabindex="-1"></a>original_cars[<span class="st">"preds"</span>] <span class="op">=</span> v.model.predict(</span>
<span id="cb5-10"><a href="#cb5-10" aria-hidden="true" tabindex="-1"></a> original_cars.drop(columns<span class="op">=</span>[<span class="st">"date_obs"</span>, <span class="st">"mpg"</span>])</span>
<span id="cb5-11"><a href="#cb5-11" aria-hidden="true" tabindex="-1"></a>)</span>
<span id="cb5-12"><a href="#cb5-12" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-13"><a href="#cb5-13" aria-hidden="true" tabindex="-1"></a>metric_set <span class="op">=</span> [metrics.mean_absolute_error, </span>
<span id="cb5-14"><a href="#cb5-14" aria-hidden="true" tabindex="-1"></a> metrics.mean_squared_error, </span>
<span id="cb5-15"><a href="#cb5-15" aria-hidden="true" tabindex="-1"></a> metrics.r2_score]</span>
<span id="cb5-16"><a href="#cb5-16" aria-hidden="true" tabindex="-1"></a> </span>
<span id="cb5-17"><a href="#cb5-17" aria-hidden="true" tabindex="-1"></a>td <span class="op">=</span> timedelta(weeks <span class="op">=</span> <span class="dv">1</span>)</span>
<span id="cb5-18"><a href="#cb5-18" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-19"><a href="#cb5-19" aria-hidden="true" tabindex="-1"></a>original_metrics <span class="op">=</span> vetiver.compute_metrics(</span>
<span id="cb5-20"><a href="#cb5-20" aria-hidden="true" tabindex="-1"></a> data <span class="op">=</span> original_cars, </span>
<span id="cb5-21"><a href="#cb5-21" aria-hidden="true" tabindex="-1"></a> date_var <span class="op">=</span> <span class="st">"date_obs"</span>, </span>
<span id="cb5-22"><a href="#cb5-22" aria-hidden="true" tabindex="-1"></a> period <span class="op">=</span> td, </span>
<span id="cb5-23"><a href="#cb5-23" aria-hidden="true" tabindex="-1"></a> metric_set <span class="op">=</span> metric_set, </span>
<span id="cb5-24"><a href="#cb5-24" aria-hidden="true" tabindex="-1"></a> truth <span class="op">=</span> <span class="st">"mpg"</span>, </span>
<span id="cb5-25"><a href="#cb5-25" aria-hidden="true" tabindex="-1"></a> estimate <span class="op">=</span> <span class="st">"preds"</span></span>
<span id="cb5-26"><a href="#cb5-26" aria-hidden="true" tabindex="-1"></a>)</span>
<span id="cb5-27"><a href="#cb5-27" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-28"><a href="#cb5-28" aria-hidden="true" tabindex="-1"></a>original_metrics</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<span id="cb5-13"><a href="#cb5-13" aria-hidden="true" tabindex="-1"></a>metric_set <span class="op">=</span> [metrics.mean_absolute_error, metrics.mean_squared_error, metrics.r2_score]</span>
<span id="cb5-14"><a href="#cb5-14" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-15"><a href="#cb5-15" aria-hidden="true" tabindex="-1"></a>td <span class="op">=</span> timedelta(weeks<span class="op">=</span><span class="dv">1</span>)</span>
<span id="cb5-16"><a href="#cb5-16" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-17"><a href="#cb5-17" aria-hidden="true" tabindex="-1"></a>original_metrics <span class="op">=</span> vetiver.compute_metrics(</span>
<span id="cb5-18"><a href="#cb5-18" aria-hidden="true" tabindex="-1"></a> data<span class="op">=</span>original_cars,</span>
<span id="cb5-19"><a href="#cb5-19" aria-hidden="true" tabindex="-1"></a> date_var<span class="op">=</span><span class="st">"date_obs"</span>,</span>
<span id="cb5-20"><a href="#cb5-20" aria-hidden="true" tabindex="-1"></a> period<span class="op">=</span>td,</span>
<span id="cb5-21"><a href="#cb5-21" aria-hidden="true" tabindex="-1"></a> metric_set<span class="op">=</span>metric_set,</span>
<span id="cb5-22"><a href="#cb5-22" aria-hidden="true" tabindex="-1"></a> truth<span class="op">=</span><span class="st">"mpg"</span>,</span>
<span id="cb5-23"><a href="#cb5-23" aria-hidden="true" tabindex="-1"></a> estimate<span class="op">=</span><span class="st">"preds"</span>,</span>
<span id="cb5-24"><a href="#cb5-24" aria-hidden="true" tabindex="-1"></a>)</span>
<span id="cb5-25"><a href="#cb5-25" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb5-26"><a href="#cb5-26" aria-hidden="true" tabindex="-1"></a>original_metrics</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code> index n metric estimate
0 2022-03-24 7 mean_absolute_error 3.564286
1 2022-03-24 7 mean_squared_error 14.804849
2 2022-03-24 7 r2_score 0.226989
0 2022-03-24 7 mean_absolute_error 3.221429
1 2022-03-24 7 mean_squared_error 12.419460
2 2022-03-24 7 r2_score 0.351538
3 2022-03-31 7 mean_absolute_error 1.930228
4 2022-03-31 7 mean_squared_error 7.125374
5 2022-03-31 7 r2_score 0.788933</code></pre>
Expand Down
8 changes: 4 additions & 4 deletions get-started/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ <h2 class="anchored" data-anchor-id="store-and-version-your-model">Store and ver
<pre><code># A tibble: 2 × 3
version created hash
&lt;chr&gt; &lt;dttm&gt; &lt;chr&gt;
1 20240806T192623Z-1088e 2024-08-06 19:26:23 1088e
2 20240806T192624Z-22f3e 2024-08-06 19:26:24 22f3e</code></pre>
1 20240807T190624Z-1088e 2024-08-07 19:06:24 1088e
2 20240807T190626Z-4299d 2024-08-07 19:06:26 4299d</code></pre>
</div>
</div>
</div>
Expand All @@ -382,8 +382,8 @@ <h2 class="anchored" data-anchor-id="store-and-version-your-model">Store and ver
<div class="sourceCode cell-code" id="cb9"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>model_board.pin_versions(<span class="st">"cars_mpg"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stdout">
<pre><code> created hash version
0 2024-08-06 19:26:23 c71a6 20240806T192623Z-c71a6
1 2024-08-06 19:26:25 dd502 20240806T192625Z-dd502</code></pre>
0 2024-08-07 19:06:25 c71a6 20240807T190625Z-c71a6
1 2024-08-07 19:06:26 ac418 20240807T190626Z-ac418</code></pre>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@
<link rel="stylesheet" href="styles.css">
<meta property="og:title" content="">
<meta property="og:description" content="">
<meta property="og:image" content="https://vetiver.rstudio.com/images/ml_ops_cycle.png">
<meta property="og:image" content="https://vetiver.posit.co/images/ml_ops_cycle.png">
<meta property="og:site-name" content="MLOps with vetiver">
<meta property="og:image:height" content="1080">
<meta property="og:image:width" content="1920">
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="https://vetiver.rstudio.com/images/ml_ops_cycle.png">
<meta name="twitter:image" content="https://vetiver.posit.co/images/ml_ops_cycle.png">
<meta name="twitter:image-height" content="1080">
<meta name="twitter:image-width" content="1920">
<meta name="twitter:card" content="summary_large_image">
Expand Down
4 changes: 2 additions & 2 deletions learn-more/deploy-with-docker.html
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ <h2 class="anchored" data-anchor-id="version-your-model">Version your model</h2>
</div>
</div>
</div>
<p>Here we are using <code>board_connect()</code>, but you can use other boards such as <code>board_s3()</code>. <a href="https://vetiver.rstudio.com/get-started/version.html">Read more</a> about how to store and version your vetiver model.</p>
<p>Here we are using <code>board_connect()</code>, but you can use other boards such as <code>board_s3()</code>. <a href="https://vetiver.posit.co/get-started/version.html">Read more</a> about how to store and version your vetiver model.</p>
<div class="callout callout-style-default callout-note callout-titled">
<div class="callout-header d-flex align-content-center" data-bs-toggle="collapse" data-bs-target=".callout-1-contents" aria-controls="callout-1" aria-expanded="false" aria-label="Toggle callout">
<div class="callout-icon-container">
Expand Down Expand Up @@ -523,7 +523,7 @@ <h2 class="anchored" data-anchor-id="build-and-run-your-dockerfile">Build and ru
</section>
<section id="make-predictions-from-docker-container" class="level2">
<h2 class="anchored" data-anchor-id="make-predictions-from-docker-container">Make predictions from Docker container</h2>
<p>Running a Docker container locally is a great way to test that you can <a href="https://vetiver.rstudio.com/get-started/deploy.html#predict-from-your-model-endpoint">make predictions from your endpoint</a> as expected, using R or Python.</p>
<p>Running a Docker container locally is a great way to test that you can <a href="https://vetiver.posit.co/get-started/deploy.html#predict-from-your-model-endpoint">make predictions from your endpoint</a> as expected, using R or Python.</p>
<div class="tabset-margin-container"></div><div class="panel-tabset" data-group="language">
<ul class="nav nav-tabs" role="tablist"><li class="nav-item" role="presentation"><a class="nav-link active" id="tabset-6-1-tab" data-bs-toggle="tab" data-bs-target="#tabset-6-1" role="tab" aria-controls="tabset-6-1" aria-selected="true">Python</a></li><li class="nav-item" role="presentation"><a class="nav-link" id="tabset-6-2-tab" data-bs-toggle="tab" data-bs-target="#tabset-6-2" role="tab" aria-controls="tabset-6-2" aria-selected="false">R</a></li></ul>
<div class="tab-content" data-group="language">
Expand Down
10 changes: 5 additions & 5 deletions learn-more/metrics-metadata.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions learn-more/model-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@
<link rel="stylesheet" href="../styles.css">
<meta property="og:title" content="MLOps with vetiver - Model cards for transparent, responsible reporting">
<meta property="og:description" content="">
<meta property="og:image" content="https://vetiver.rstudio.com/images/vetiver-social.jpeg">
<meta property="og:image" content="https://vetiver.posit.co/images/vetiver-social.jpeg">
<meta property="og:site-name" content="MLOps with vetiver">
<meta name="twitter:title" content="MLOps with vetiver - Model cards for transparent, responsible reporting">
<meta name="twitter:description" content="">
<meta name="twitter:image" content="https://vetiver.rstudio.com/images/vetiver-social.jpeg">
<meta name="twitter:image" content="https://vetiver.posit.co/images/vetiver-social.jpeg">
<meta name="twitter:card" content="summary_large_image">
</head>

Expand Down Expand Up @@ -279,7 +279,7 @@ <h2 class="anchored" data-anchor-id="what-is-a-model-card">What is a “Model Ca
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a>v <span class="ot">&lt;-</span> <span class="fu">vetiver_model</span>(cars_lm, <span class="st">"cars_linear"</span>)</span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a><span class="fu">vetiver_pin_write</span>(model_board, v)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stderr">
<pre><code>Creating new version '20240806T192607Z-7301a'
<pre><code>Creating new version '20240807T190609Z-7301a'
Writing to pin 'cars_linear'

Create a Model Card for your published model
Expand Down Expand Up @@ -309,7 +309,7 @@ <h2 class="anchored" data-anchor-id="what-is-a-model-card">What is a “Model Ca
with vetiver.model_card()
Writing pin:
Name: 'cars_linear'
Version: 20240806T192610Z-c71a6</code></pre>
Version: 20240807T190612Z-c71a6</code></pre>
</div>
</div>
<p>To silence this message,</p>
Expand Down
2 changes: 1 addition & 1 deletion robots.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sitemap: https://vetiver.rstudio.com/sitemap.xml
Sitemap: https://vetiver.posit.co/sitemap.xml
Loading

0 comments on commit 1473d5b

Please sign in to comment.