Skip to content

Commit 9dc3e53

Browse files
committed
adding model in PerformanceEvaluation docs and passing checks for that inside representation
1 parent 00ade1f commit 9dc3e53

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/resampling.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ struct.
476476
477477
- `measure`: vector of measures (metrics) used to evaluate performance
478478
479+
- `model`: model used to create the performance evaluation. In the case a
480+
tuning model, this is the best model found.
481+
479482
- `measurement`: vector of measurements - one for each element of
480483
`measure` - aggregating the performance measurements over all
481484
train/test pairs (folds). The aggregation method applied for a given

test/resampling.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,9 @@ end
794794
print(show_text)
795795
docstring_text = string(@doc(PerformanceEvaluation))
796796
for fieldname in fieldnames(PerformanceEvaluation)
797+
if fieldname == :model
798+
continue
799+
end
797800
@test contains(show_text, string(fieldname))
798801
# string(text::Markdown.MD) converts `-` list items to `*`.
799802
@test contains(docstring_text, " * `$fieldname`")

0 commit comments

Comments
 (0)