Skip to content
Open
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
rev: v2.4.3
hooks:
- id: codespell
additional_dependencies: ["tomli"]
Expand All @@ -29,13 +29,13 @@ repos:
.*\.ipynb
)$
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.14.3"
rev: "v0.17.2"
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.15.0
rev: v2.16.0
hooks:
- id: pretty-format-toml
args: [--autofix, --no-sort]
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ from dvclive import Live
params = {"learning_rate": 0.002, "optimizer": "Adam", "epochs": 20}

with Live() as live:

# log a parameters
for param in params:
live.log_param(param, params[param])
Expand All @@ -64,8 +63,8 @@ with Live() as live:
offset = random.uniform(0.2, 0.1)
for epoch in range(1, params["epochs"]):
fuzz = random.uniform(0.01, 0.1)
accuracy = 1 - (2 ** - epoch) - fuzz - offset
loss = (2 ** - epoch) + fuzz + offset
accuracy = 1 - (2**-epoch) - fuzz - offset
loss = (2**-epoch) + fuzz + offset

# log metrics to studio
live.log_metric("accuracy", accuracy)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ keywords = [
]
license = "Apache-2.0"
license-files = ["LICENSE"]
maintainers = [{name = "Iterative", email = "support@dvc.org"}]
authors = [{name = "Iterative", email = "support@dvc.org"}]
maintainers = [{ name = "Iterative", email = "support@dvc.org" }]
authors = [{ name = "Iterative", email = "support@dvc.org" }]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
Expand Down
Loading