Skip to content

Commit

Permalink
Merge branch 'main' into serving_edited
Browse files Browse the repository at this point in the history
  • Loading branch information
mignev authored Jul 20, 2021
2 parents f4fa748 + f9b5c83 commit 5659dad
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
16 changes: 8 additions & 8 deletions deployment/ludwig.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ If you want know more about the deployment process or all of the features please
<br /><br /><br />


## Model Deployment for Data Scientists
## <a id="how-to-deploy-jupyter-notebook-environment"></a> Model Deployment for Data Scientists

We know that Jupyter Notebook is your favorite tool for experimentations and innovations. Having this in mind we would love to share with you a ready-to-use basic but powerful DeepNote workflow combining the Experimentation and Deployment process in just 2 simple steps.

Expand All @@ -78,7 +78,7 @@ Designed with simplicity in mind, TeachbaleHub provides you with free-of-charge

<br /><br /><br />

## Advanced Deployment Guide
## <a id="how-to-deploy-advanced-deployment-guide"></a> Advanced Deployment Guide

We have enriched the Deployment with many options to ensure a seamless and clear process.

Expand All @@ -96,7 +96,7 @@ The schema validation feature eliminates any involuntary mistakes and errors whe

#### Structure

The Deploment Schema contains two parameters `features` and the `ndarray` mapping.
The Deploment Schema contains the `features` parameter.

```python
deployment.schema({
Expand Down Expand Up @@ -201,7 +201,7 @@ deployment.samples(

Deployment Context is quite useful for the time when you need to add some information that **brings more transparency for the whole team** about the training environment, versioning of the dataset, versions of the packages in the model deployment environment, servers and etc. It's also effective for easily tracking changes, version of the training data, or environments where the deployment was made. All of this helps you with reproducing the models every time.

```
```python
deployment.context({
"branch": "main",
"github_commit": "9e91a9d16eecf9e44935788ea777549de4377408",
Expand All @@ -211,8 +211,8 @@ deployment.context({
"python": platform.python_version(),
"local_hostname": platform.node(),
"os_info": platform.version()
})```
})
```

### Deployment Deploy (required)

Expand All @@ -233,7 +233,7 @@ deployment.deploy(
)
```

## CI/CD Automations Helpers
## <a id="how-to-deploy-ci-cd-automation-helpers"></a> CI/CD Automations Helpers

Here are a couple of useful functions that can assist in automating your model deployment in your CI/CD systems.

Expand Down Expand Up @@ -315,7 +315,7 @@ deployment.rollback(10)
```


### Other Examples
### <a id="how-to-deploy-other-examples"></a> Other Examples

For the full list of features and examples checkout the following links:

Expand Down
12 changes: 6 additions & 6 deletions deployment/sklearn.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ If you want know more about the deployment process or all of the features please

<br /><br /><br />

## Model Deployment for Data Scientists
## <a id="how-to-deploy-jupyter-notebook-environment"></a> Model Deployment for Data Scientists

We know that Jupyter Notebook is a favorite tool for experimentations and innovations. Having this in mind we would love to share with you a ready-to-use basic but powerful DeepNote workflow combining the Experimentation and Deployment process in just 2 simple steps.

Expand All @@ -79,7 +79,7 @@ Designed with simplicity in mind, TeachbaleHub provides you with free-of-charge

<br /><br /><br />

## Advanced Deployment Guide
## <a id="how-to-deploy-advanced-deployment-guide"></a> Advanced Deployment Guide

The Deployment process in TeachableHub is quite automated and seamless, but it also offers many additional options that help you and your team to keep a neat workflow and speak the same language.

Expand Down Expand Up @@ -222,7 +222,7 @@ deployment.samples(

Deployment Context is quite useful for the time when you need to add some information that **brings more transparency for the whole team** about the training environment, versioning of the dataset, versions of the packages in the model deployment environment, servers and etc. It's also effective for easily tracking changes, version of the training data, or environments where the deployment was made. All of this helps you with reproducing the models every time.

```
```python
deployment.context({
"author": "John Doe",
"github_commit": "9e91a9d16eecf9e44935788ea777549de4377408",
Expand All @@ -245,15 +245,15 @@ Congrats, you're almost done! 😊 This is the final stop of the required deploy
> `activate` - This option set to 'true' automatically activates the newly deployed model as the latest version of the environment to which it's deployed. Keep in mind that it might be dangerous to execute in the production environment directly. However, it's entirely okay for experiments or staging environments.
```
```python
deployment.deploy(
summary="What is this deployment about", # required
description="You can use it as changelog.", # optional
activate=True # optional, defualt: false
)
```

## CI/CD Automations Helpers
## <a id="how-to-deploy-ci-cd-automation-helpers"></a> CI/CD Automations Helpers

Here are a couple of useful functions that can assist in automating your model deployment in your CI/CD systems.

Expand Down Expand Up @@ -335,7 +335,7 @@ deployment.rollback(10)
```


### Other Examples
### <a id="how-to-deploy-other-examples"></a> Other Examples

For the full list of features and examples checkout the following links:

Expand Down
8 changes: 5 additions & 3 deletions serving/docs.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# How to make Predictions

## <a id="how-to-predict-getting-started"></a> Getting Started
<a id="how-to-predict-getting-started"></a>

## Getting Started
Teachables are powerful machine learning models deployed as an API, entirely documented, available to be consumed by any server-side or client-side application. Teachables are easily integrated with any platform via the TeachableHub REST API or the Python SDK.

### 1. Setup Serving Keys
Expand Down Expand Up @@ -64,6 +65,8 @@ print(predictions)

<br/><br/>

<a id="how-to-predict-advanced-prediction-guide"></a>

# Advanced Predictions Guide

The Serving process is quite straightforward and seamless. However, TeachbleHub also offers a variety of options for the times you need to fine-tune and order the predictions.
Expand Down Expand Up @@ -165,9 +168,8 @@ The SDK raise the following exceptions:
| `UnauthorizedError` | Wrong Serving Key or configuration |

<a id="how-to-predict-rest-api"></a>
# REST API

{{serving_api_base_url}}
# REST API

> You can play around with your teachables via the [TeachbaleHub's Serving API Swagger UI](https://serve-teachablehub-dev.scalabl.cloud/docs#/predictions/predict__user___teachable__predict__post) or following the examples below.
Expand Down

0 comments on commit 5659dad

Please sign in to comment.