Add explainer to NaiveBestRun

This commit is contained in:
Martin Sumner 2018-09-26 14:11:02 +01:00
parent 7885f93ba6
commit b2fce95b14

View file

@ -502,6 +502,8 @@ fetch_inbatches(PositionList, BatchSize, CDB, CheckedList) ->
assess_candidates(AllCandidates, Params) ->
MaxRunLength = min(element(1, Params), length(AllCandidates)),
NaiveBestRun = lists:sublist(AllCandidates, MaxRunLength),
% This will end up being scored twice, but lets take a guess at
% the best scoring run to take into the loop
FoldFun =
fun(RunLength, Best) ->
assess_for_runlength(RunLength, AllCandidates, Params, Best)