Method: MTree::Tree#randomSpeciesNodes
- Defined in:
- ext/lib/CompLearnLib/Tree.rb
#randomSpeciesNodes(count) ⇒ Object
194 195 196 197 198 199 200 201 |
# File 'ext/lib/CompLearnLib/Tree.rb', line 194 def randomSpeciesNodes(count) raise "Not enough species nodes" unless getSpeciesCount() >= count res = { } begin res[randomSpeciesNode()] = true end until res.size == count res.keys end |