Skip to content

Commit d65a0ab

Browse files
authored
Merge pull request #29 from zenml-io/bugfix/sklearn-version
Pin sklearn version
2 parents 4f9d89b + 39052e5 commit d65a0ab

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ jobs:
5656
with:
5757
stack-name: ${{ matrix.stack-name }}
5858
python-version: ${{ matrix.python-version }}
59-
ref-zenml: ${{ inputs.ref-zenml || 'feature/followup-run-metadata' }}
59+
ref-zenml: ${{ inputs.ref-zenml || 'develop' }}
6060
ref-template: ${{ inputs.ref-template || github.ref }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Once you have ZenML installed, you can initialize a new project using this templ
1414

1515
```bash
1616
zenml init --template <short_name_of_template>
17-
# example: zenml init --template template-nlp
17+
# example: zenml init --template nlp
1818
```
1919

2020
Running the command above will result in input prompts being shown to you. If you would like to rely on default values for the ZenML project template - you can add --template-with-defaults to the same command, like this:
2121

2222
```bash
2323
zenml init --template <short_name_of_template> --template-with-defaults
24-
# example: zenml init --template template-nlp --template-with-defaults
24+
# example: zenml init --template nlp --template-with-defaults
2525
```
2626

2727

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ copier
22
jinja2-time
33
pyyaml-include<2.0
44
datasets>=2.12.0,<3.0.0
5+
# Starting with version 1.6.0 this is incompatible with the metrics computation of the datasets library
6+
scikit-learn<1.6.0

template/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ torchvision
22
gradio
33
zenml[server]>=0.56.3
44
datasets>=2.12.0,<3.0.0
5+
scikit-learn<1.6.0

template/utils/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def compute_metrics(eval_pred: Tuple[np.ndarray, np.ndarray]) -> Dict[str, float
1717
"""
1818
logits, labels = eval_pred
1919
predictions = np.argmax(logits, axis=-1)
20-
# calculate the mertic using the predicted and true value
20+
# calculate the metric using the predicted and true value
2121
accuracy = load_metric("accuracy", trust_remote_code=True).compute(
2222
predictions=predictions, references=labels
2323
)

0 commit comments

Comments
 (0)