Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin sklearn version #29

Merged
merged 3 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ jobs:
with:
stack-name: ${{ matrix.stack-name }}
python-version: ${{ matrix.python-version }}
ref-zenml: ${{ inputs.ref-zenml || 'feature/followup-run-metadata' }}
ref-zenml: ${{ inputs.ref-zenml || 'develop' }}
ref-template: ${{ inputs.ref-template || github.ref }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Once you have ZenML installed, you can initialize a new project using this templ

```bash
zenml init --template <short_name_of_template>
# example: zenml init --template template-nlp
# example: zenml init --template nlp
```

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:

```bash
zenml init --template <short_name_of_template> --template-with-defaults
# example: zenml init --template template-nlp --template-with-defaults
# example: zenml init --template nlp --template-with-defaults
```


Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ copier
jinja2-time
pyyaml-include<2.0
datasets>=2.12.0,<3.0.0
# Starting with version 1.6.0 this is incompatible with the metrics computation of the datasets library
scikit-learn<1.6.0
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 @@ torchvision
gradio
zenml[server]>=0.56.3
datasets>=2.12.0,<3.0.0
scikit-learn<1.6.0
2 changes: 1 addition & 1 deletion template/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def compute_metrics(eval_pred: Tuple[np.ndarray, np.ndarray]) -> Dict[str, float
"""
logits, labels = eval_pred
predictions = np.argmax(logits, axis=-1)
# calculate the mertic using the predicted and true value
# calculate the metric using the predicted and true value
accuracy = load_metric("accuracy", trust_remote_code=True).compute(
predictions=predictions, references=labels
)
Expand Down
Loading