diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d780cff..17a9178 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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"] @@ -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] diff --git a/README.md b/README.md index da0795f..27645e6 100644 --- a/README.md +++ b/README.md @@ -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]) @@ -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) diff --git a/pyproject.toml b/pyproject.toml index a880061..2abea13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",