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

alan-turing-institute / MLJTuning.jl / 384

13 Sep 2020 - 20:07 coverage: 88.706% (+1.0%) from 87.744%
384

Pull #75

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
Merge b3f688ca4 into 9ea80763d
Pull Request #75: Allow user to specify a selection heuristic

80 of 85 new or added lines in 7 files covered. (94.12%)

377 of 425 relevant lines covered (88.71%)

809.44 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