Skip to content

Commit

Permalink
Merge pull request #23 from zenml-io/bugfix/example-requirements
Browse files Browse the repository at this point in the history
Fix example
  • Loading branch information
schustmi authored Sep 23, 2024
2 parents 16bc5e4 + 50a0b2c commit 081cccc
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ jobs:
with:
stack-name: ${{ matrix.stack-name }}
python-version: ${{ matrix.python-version }}
ref-zenml: ${{ inputs.ref-zenml || 'feature/PRD-566-dependency-cleanup' }}
ref-zenml: ${{ inputs.ref-zenml || 'develop' }}
ref-template: ${{ inputs.ref-template || github.ref }}
8 changes: 4 additions & 4 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Along the way we will also show you how to:

You can use Google Colab to see ZenML in action, no signup / installation required!

<a href="https://colab.research.google.com/github/zenml-io/zenml/blob/main/examples/quickstart/quickstart.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
<a href="https://colab.research.google.com/github/zenml-io/zenml/blob/main/examples/mlops_starter/quickstart.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>

## :computer: Run Locally

Expand All @@ -36,7 +36,7 @@ pip install "zenml[server]"

# clone the ZenML repository
git clone https://github.com/zenml-io/zenml.git
cd zenml/examples/quickstart
cd zenml/examples/mlops_starter
```

Now we're ready to start. You have two options for running the quickstart locally:
Expand All @@ -45,13 +45,13 @@ Now we're ready to start. You have two options for running the quickstart locall
```bash
pip install notebook
jupyter notebook
# open notebooks/quickstart.ipynb
# open quickstart.ipynb
```

#### Option 2 - Execute the whole ML pipeline from a Python script:
```bash
# Install required zenml integrations
zenml integration install sklearn -y
zenml integration install sklearn pandas -y

# Initialize ZenML
zenml init
Expand Down
1 change: 1 addition & 0 deletions template/configs/feature_engineering.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ settings:
docker:
required_integrations:
- sklearn
- pandas
requirements:
- pyarrow

Expand Down
1 change: 1 addition & 0 deletions template/configs/inference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ settings:
docker:
required_integrations:
- sklearn
- pandas
requirements:
- pyarrow

Expand Down
1 change: 1 addition & 0 deletions template/configs/training_rf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ settings:
docker:
required_integrations:
- sklearn
- pandas
requirements:
- pyarrow

Expand Down
1 change: 1 addition & 0 deletions template/configs/training_sgd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ settings:
docker:
required_integrations:
- sklearn
- pandas
requirements:
- pyarrow

Expand Down
2 changes: 1 addition & 1 deletion template/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"required!\n",
"\n",
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](\n",
"https://colab.research.google.com/github/zenml-io/zenml/blob/main/examples/quickstart/quickstart.ipynb)"
"https://colab.research.google.com/github/zenml-io/zenml/blob/main/examples/mlops_starter/quickstart.ipynb)"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions template/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ zenml[server]>=0.50.0
notebook
scikit-learn
pyarrow
pandas

0 comments on commit 081cccc

Please sign in to comment.