Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alan-turing-institute / MLJTuning.jl / 378

9 Sep 2020 - 22:51 coverage: 88.078% (+0.3%) from 87.744%
378

Pull #74

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
Merge 43b930a0f into 9ea80763d
Pull Request #74: New API to accomodate different selection heuristics

51 of 56 new or added lines in 6 files covered. (91.07%)

362 of 411 relevant lines covered (88.08%)

839.11 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

16.67
/src/tuning_strategy_interface.jl
1
## TYPES TO BE SUBTYPED
2

3
abstract type TuningStrategy <: MLJBase.MLJType end
4
MLJBase.show_as_constructed(::Type{<:TuningStrategy}) = true
!
5

6

7
## METHODS TO BE IMPLEMENTED
8

9
# for initialization of state (compulsory)
10
setup(tuning::TuningStrategy, model, range, verbosity) = range
!
11

12
# for adding extra user-inspectable information to the history:
NEW
13
extras(tuning::TuningStrategy, history, state, E) = NamedTuple()
!
14

15
# for generating batches of new models and updating the state (but not
16
# history):
17
function models! end
18

19
# for adding to the default report:
NEW
20
tuning_report(tuning::TuningStrategy, history, state) = NamedTuple()
!
21

22
# for declaring the default number of models to evaluate:
23
default_n(tuning::TuningStrategy, range) = DEFAULT_N
9×
24

25
# for encoding the selection_heuristics supported by given strategy:
NEW
26
supports_heuristic(heuristic::Any, strategy::Any) = false
!
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc