Skip to content

Commit

Permalink
Update sklearn.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mignev authored Jun 23, 2021
1 parent 1d03512 commit f8121c2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions deployment/sklearn.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ deployment.deploy(

The are couple of useful functions that can help you when you are automating your model deployment in your CI/CD systems.

## `.successful()`
### `.successful()`

The `successful` method return a boolen result whether or not the deployment is created on the TeachableHub platform. Please keed in mind that the deployment need to be verfied successfuly as well in order to be served by the TeachableHub's Serving API.

Expand All @@ -230,7 +230,7 @@ if deployment.successful():
notify_the_team_on_slack(deployment_version=deployment.version())
```

## `.verified(reload=False)`
### `.verified(reload=False)`

After every deployment based on your `.samples({...})` explained above, TeachableHub is verifing whether or not the deployment is configured correctly and woking as expected.

Expand All @@ -244,7 +244,7 @@ for check in range(10):
```


## Retrieving existing Deployment
### Retrieving existing Deployment

TODO: to make it work no existing deployments, for example before the first deployment in any of the environments.

Expand All @@ -260,39 +260,39 @@ deployment = TeachableDeployment(

```

## `.reload()`
### `.reload()`

This option is to retrieve the latest updated deployment state from the TeachableHub platform.

```python
deployment.reload()
```

## `.object()`
### `.object()`

Using the raw deployment object from the TeachableHub API.

```python
deployment.object()
```

## `.version()`
### `.version()`

The version as an integer of the current deployment object.

```python
deployment.version()
```

## `.activate()`
### `.activate()`

Make the current deployment the latest version for it's environment. Important note, the current deployment should be successfuly verified to be activated.

```python
deployment.activate()
```

## `.rollback()`
### `.rollback()`

Revert to this deployment as you latest version of the environment this deployment was deployed.

Expand Down

0 comments on commit f8121c2

Please sign in to comment.