-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from IBM/docs
Docs
- Loading branch information
Showing
14 changed files
with
270 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: gh-pages | ||
on: | ||
push: | ||
branches: | ||
- docs | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
- uses: actions/cache@v3 | ||
with: | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install mkdocs-material mkdocstrings-python | ||
- run: mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 International Business Machines | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## mlflow_watsonml.WatsonMLDeploymentClient | ||
|
||
::: mlflow_watsonml.deploy.WatsonMLDeploymentClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Getting started | ||
|
||
## Setting up Credentials | ||
|
||
The best way to setup the credentials is to create a `.env` file and load it as environment variables. | ||
|
||
!!! note | ||
|
||
ONLY USE THE CASE THAT APPLIES TO YOU IN YOUR .env FILE | ||
COPYING ALL CASES CAN OVERWRITE CREDENTIALS AND MAY LEAD TO UNEXPECTED CONNECTION | ||
|
||
Refer to the following links for setting up the credentials - | ||
|
||
### [Cloud Pak for Data as a Service](https://ibm.github.io/watson-machine-learning-sdk/setup_cloud.html#authentication) | ||
|
||
- Case 0: Using a WML Credentials JSON file | ||
``` | ||
WML_CREDENTIALS_FILE="/path/to/wml_credentials.json" | ||
``` | ||
|
||
- Case 1: Using API Key | ||
``` | ||
APIKEY="<wml api key>" | ||
LOCATION="<deployment location>" | ||
URL="https://${LOCATION}.ml.cloud.ibm.com" | ||
``` | ||
|
||
- Case 2: Using Token | ||
``` | ||
TOKEN="<wml token>" | ||
LOCATION="<deployment location>" | ||
URL="https://${LOCATION}.ml.cloud.ibm.com" | ||
``` | ||
|
||
### [Cloud Pak for Data](https://ibm.github.io/watson-machine-learning-sdk/setup_cpd.html#authentication) | ||
- Case 3: Using Username and Password | ||
``` | ||
USERNAME="<CP4D Account Username>" | ||
PASSWORD="<CP4D Account Password>" | ||
URL="<CP4D Web URL>" | ||
INSTANCE_ID="openshift" | ||
VERSION="4.6" | ||
``` | ||
|
||
|
||
- Case 4: Using Username and API Key | ||
``` | ||
USERNAME="<CP4D Account Username>" | ||
APIKEY="<CP4D Account API Key>" | ||
URL="<CP4D Web URL>" | ||
INSTANCE_ID="openshift" | ||
VERSION="4.6" | ||
``` | ||
|
||
- Case 5: Using Access Token from CP4D notebook environment | ||
``` | ||
TOKEN=${USER_ACCESS_TOKEN} | ||
URL="<CP4D Web URL>" | ||
INSTANCE_ID="openshift" | ||
VERSION="4.6" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
hide: | ||
- navigation | ||
--- | ||
# Mlflow-WatsonML | ||
--- | ||
|
||
A plugin that integrates IBM's [WatsonML](https://ibm.github.io/watson-machine-learning-sdk/) with [mlflow](https://mlflow.org). | ||
```mlflow_watsonml``` enables users to deploy mlflow models into IBM Cloud. | ||
|
||
Command line APIs of the plugin (also accessible through mlflow's python package) makes the deployment process seamless. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Getting started | ||
|
||
## Installation | ||
|
||
### with pip <small>recommended</small> | ||
|
||
Mlflow-WatsonML is published as a [Python package](https://pypi.org/project/mlflow-watsonml/) and can be installed with | ||
`pip`, ideally by using a virtual environment. Open up a terminal and install | ||
Mlflow-WatsonML with: | ||
|
||
``` bash | ||
pip install mlflow-watsonml | ||
``` | ||
|
||
### with git | ||
|
||
Mlflow-WatsonML can be directly used from [GitHub](https://github.com/IBM/mlflow-watsonml) by cloning the repository into a subfolder of your project root which might be useful if you want to use the very latest version: | ||
|
||
```bash | ||
git clone https://github.com/IBM/mlflow-watsonml.git | ||
``` | ||
|
||
Next, install the library and it's dependencies with: | ||
|
||
```bash | ||
pip install -e mlflow-watsonml | ||
``` | ||
|
||
|
||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
site_name: Mlflow-WatsonML | ||
repo_url: https://github.com/IBM/mlflow-watsonml | ||
repo_name: IBM/mlflow-watsonml | ||
copyright: Copyright © 2023 - 2024 IBM Research | ||
theme: | ||
name: material | ||
icon: | ||
repo: fontawesome/brands/github | ||
features: | ||
- navigation.instant | ||
- navigation.instant.progress | ||
- navigation.instant.prefetch | ||
- navigation.tabs | ||
- navigation.tabs.sticky | ||
- navigation.footer | ||
- content.code.copy | ||
font: | ||
text: IBM Plex Sans | ||
code: IBM Plex Mono | ||
palette: | ||
# Palette toggle for automatic mode | ||
- media: "(prefers-color-scheme)" | ||
toggle: | ||
icon: material/brightness-auto | ||
name: Switch to light mode | ||
|
||
# Palette toggle for light mode | ||
- media: "(prefers-color-scheme: light)" | ||
scheme: default | ||
primary: blue | ||
toggle: | ||
icon: material/brightness-7 | ||
name: Switch to dark mode | ||
|
||
# Palette toggle for dark mode | ||
- media: "(prefers-color-scheme: dark)" | ||
scheme: slate | ||
primary: blue | ||
toggle: | ||
icon: material/brightness-4 | ||
name: Switch to system preference | ||
|
||
plugins: | ||
- mkdocstrings: | ||
default_handler: python | ||
handlers: | ||
python: | ||
paths: [mlflow_watsonml] # search packages in the src folder | ||
options: | ||
docstring_style: numpy | ||
|
||
extra: | ||
consent: | ||
title: Cookie consent | ||
description: >- | ||
We use cookies to recognize your repeated visits and preferences, as well | ||
as to measure the effectiveness of our documentation and whether users | ||
find what they're searching for. With your consent, you're helping us to | ||
make our documentation better. | ||
social: | ||
- icon: fontawesome/solid/paper-plane | ||
link: mailto:dhruv.shah@ibm.com | ||
|
||
markdown_extensions: | ||
- toc: | ||
permalink: true | ||
- admonition | ||
- pymdownx.details | ||
- pymdownx.superfences | ||
|
||
nav: | ||
- Home: index.md | ||
- Getting Started: | ||
- Installation: install.md | ||
- Set Up Credentials: credentials.md | ||
- User Guide: user_guide.md | ||
- API Reference: api_reference.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from mlflow_watsonml.deploy import WatsonMLDeploymentClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters