Class Ariel::CandidateRefiner
In: lib/ariel/candidate_refiner.rb
Parent: Object

Given an array of candidate Rules, and an array of LabeledStreams, allows heuristics to be applied to select the ideal Rule. All refine_* instance methods will remove candidates from the internal candidates array.

Methods

Attributes

candidates  [RW] 

Public Class methods

Public Instance methods

Returns a random candidate. Meant for making the final choice in case previous selections have still left multiple candidates.

Selects the Rule candidates that have the most matches of a given type against the given examples. e.g. select_best_by_match_type(:early, :perfect) will select the rules that have the most matches that are early or perfect.

[Validate]