class

Learning::ConceptLearning::Concept

Inherits Reference < Object

Represents a learned concept

Constructors

new(name : String, features : Hash(String, String | Float64 | Bool) = {} of String => String | Float64 | Bool, confidence : Float64 = 0.5)

Instance methods

add_negative_example(example : Hash(String, String | Float64 | Bool))
add_positive_example(example : Hash(String, String | Float64 | Bool))
confidence
features
matches?(example : Hash(String, String | Float64 | Bool)) : Bool

Check if example matches concept

name
negative_examples
positive_examples
to_atomspace(atomspace : AtomSpace::AtomSpace) : Array(AtomSpace::Atom)

Convert to AtomSpace representation