Skip to content

Commit

Permalink
adding model in PerformanceEvaluation docs and passing checks for tha…
Browse files Browse the repository at this point in the history
…t inside representation
  • Loading branch information
pebeto committed Aug 6, 2023
1 parent 00ade1f commit 9dc3e53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/resampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,9 @@ struct.
- `measure`: vector of measures (metrics) used to evaluate performance
- `model`: model used to create the performance evaluation. In the case a
tuning model, this is the best model found.
- `measurement`: vector of measurements - one for each element of
`measure` - aggregating the performance measurements over all
train/test pairs (folds). The aggregation method applied for a given
Expand Down
3 changes: 3 additions & 0 deletions test/resampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,9 @@ end
print(show_text)
docstring_text = string(@doc(PerformanceEvaluation))
for fieldname in fieldnames(PerformanceEvaluation)
if fieldname == :model
continue
end
@test contains(show_text, string(fieldname))
# string(text::Markdown.MD) converts `-` list items to `*`.
@test contains(docstring_text, " * `$fieldname`")
Expand Down

0 comments on commit 9dc3e53

Please sign in to comment.