Method: MarkovTwitter::MarkovBuilder#evaluate
- Defined in:
- lib/markov_twitter/markov_builder.rb
#evaluate(length:, probability_bounds: [0,100], root_node: nil) ⇒ String
The default evaluation method to produce a run case. Goes in forward direction with with random nodes as start points. See also #evaluate_favoring_start and #evaluate_favoring_end. See #_evaluate for paramspecs The passed node_node_finder lambda picks a totally random new node.
109 110 111 112 113 114 115 116 117 |
# File 'lib/markov_twitter/markov_builder.rb', line 109 def evaluate(length:, probability_bounds: [0,100], root_node: nil) _evaluate( length: length, probability_bounds: probability_bounds, root_node: root_node, direction: :next, node_finder: node_finders[:random] ).map(&:value).join(" ") end |