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)
Source

Instance methods

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

Check if example matches concept

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

Convert to AtomSpace representation

Source