Skip to content

Commit 03e8eac

Browse files
committed
fix parser on readme
1 parent a4b3a42 commit 03e8eac

3 files changed

Lines changed: 29 additions & 29 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@ The PyDTNN framework comes with a utility launcher called
262262
Default: `categorical_cross_entropy`.
263263
- `--loss-eps`: Value for numerical stability. Default: 1e-08.
264264
- `--loss-weights`: List modifiers separated by a comma to indicate the weights of every class. If
265-
the value is `None` it will use the default dataset`s value; if the dataset has
265+
the value is `None` it will use the default datasets value; if the dataset has
266266
not a default value, all classes will weight `1`. Example, with 3 classes:
267-
`0.4,1.8,0.2'. Default: ().
267+
`0.4,1.8,0.2`. Default: ().
268268
- `--use-loss-weights`, `--no-use-loss-weights`: True if use the loss-weights parameter, False to set all classes' weights with
269269
the same value. Default: False.
270270
- `--metrics`: List of comma-separated metrics that are evaluated on each trained batch:

pydtnn/utils/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ def __init__(self) -> None:
919919
default=ModelBase.loss_weights,
920920
help=(
921921
"List modifiers separated by a comma to indicate the weights of every class."
922-
" If the value is 'None' it will use the default dataset's value; "
922+
" If the value is 'None' it will use the default datasets value; "
923923
" if the dataset has not a default value, all classes will weight '1'."
924924
" Example, with 3 classes: '0.4,1.8,0.2'."
925925
f" Default: {ModelBase.loss_weights!r}."

pyproject.toml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -154,32 +154,6 @@ per-file-ignores = [
154154
M = "pydtnn.utils.flake8_metrics:MetricsChecker"
155155
T = "pydtnn.utils.flake8_pyright:PyrightChecker"
156156

157-
[tool.autopep8]
158-
max-line-length = 100
159-
ignore = [
160-
"E501"
161-
]
162-
163-
[tool.coverage.run]
164-
branch = true
165-
source_pkgs = [
166-
"pydtnn"
167-
]
168-
169-
[tool.coverage.report]
170-
include = [
171-
"*/pydtnn/*"
172-
]
173-
omit = [
174-
"*/pydtnn/converters/*",
175-
"*/pydtnn/datasets/*",
176-
"*/pydtnn/libs/*",
177-
"*/pydtnn/models/*",
178-
"*/pydtnn/tests/*",
179-
"*/pydtnn/tracers/*",
180-
"*/pydtnn/utils/*"
181-
]
182-
183157
[tool.pyright]
184158
venv = ".venv"
185159
venvPath = "."
@@ -234,3 +208,29 @@ reportPropertyTypeMismatch = "warning"
234208
reportAssertAlwaysTrue = "error"
235209
reportInvalidStringEscapeSequence = "error"
236210
reportSelfClsParameterName = "error"
211+
212+
[tool.autopep8]
213+
max-line-length = 100
214+
ignore = [
215+
"E501"
216+
]
217+
218+
[tool.coverage.run]
219+
branch = true
220+
source_pkgs = [
221+
"pydtnn"
222+
]
223+
224+
[tool.coverage.report]
225+
include = [
226+
"*/pydtnn/*"
227+
]
228+
omit = [
229+
"*/pydtnn/converters/*",
230+
"*/pydtnn/datasets/*",
231+
"*/pydtnn/libs/*",
232+
"*/pydtnn/models/*",
233+
"*/pydtnn/tests/*",
234+
"*/pydtnn/tracers/*",
235+
"*/pydtnn/utils/*"
236+
]

0 commit comments

Comments
 (0)