Index

This page lists the core functions and types of the Julia component of the OAR project.

"Table" of Contents

ModulesFunctionsTypesConstants
IndexIndexIndexIndex
DocsDocsDocsDocs

Index

This section enumerates the names exported by the package, each of which links to its corresponding Documentation.

Modules

Functions

Types

Constants

Docs

This section lists the documentation for every exported name of the OAR package.

Modules

OAR.OARModule

A module encapsulating the experimental driver code for the OAR project.

Imports

The following names are imported by the package as dependencies:

  • AdaptiveResonance
  • ArgParse
  • Base
  • ClusterValidityIndices
  • Clustering
  • Core
  • DataFrames
  • DelimitedFiles
  • Distributed
  • DocStringExtensions
  • DrWatson
  • InvertedIndices
  • Latexify
  • Lerche
  • MLDatasets
  • MLUtils
  • NumericalTypeAliases
  • Pkg
  • Plots
  • ProgressMeter
  • Random
  • StatsPlots

Exports

The following names are exported and available when using the package:

source

Functions

OAR.classifyMethod
classify(
    art::DDVSTART,
    statement::Union{TreeNode, Array{GSymbol{T}, 1} where T};
    get_bmu
) -> Int64

Summary

Classifies SomeStatement with the provided DDVSTART module with an optional flag to get the best-matching unit in the case of a complete mismatch.

Arguments

  • art::DDVSTART: the DDVSTART module to classify with.
  • statement::SomeStatement: the sample as SomeStatement to classify.
  • get_bmu: optional flag to get the best-matching unit in the case of complete mismatch.

Method List / Definition Locations

classify(art, statement; get_bmu)

defined at /home/runner/work/OAR/OAR/src/lib/start/ddv.jl:440.

source
OAR.classifyMethod
classify(
    art::DVSTART,
    statement::Array{GSymbol{T}, 1} where T;
    get_bmu
) -> Int64

Summary

Classifies the OAR.Statement into one of OAR.DVSTART's internal categories.

Arguments

  • art::DVSTART: the OAR.DVSTART to use in classification/inference.
  • statement::Statement: the OAR.Statement to classify.
  • get_bmu::Bool=false: optional, whether to get the best matching unit in the case of complete mismatch.

Method List / Definition Locations

classify(art, statement; get_bmu)

defined at /home/runner/work/OAR/OAR/src/lib/start/dv.jl:219.

source
OAR.classifyMethod
classify(
    art::START,
    statement::Union{TreeNode, Array{GSymbol{T}, 1} where T};
    get_bmu
) -> Int64

Summary

Classifies the OAR.Statement into one of OAR.START's internal categories.

Arguments

  • art::START: the OAR.START to use in classification/inference.
  • statement::SomeStatement: the OAR.SomeStatement to classify.
  • get_bmu::Bool=false: optional, whether to get the best matching unit in the case of complete mismatch.

Method List / Definition Locations

classify(art, statement; get_bmu)

defined at /home/runner/work/OAR/OAR/src/lib/start/start.jl:224.

source
OAR.train!Method
train!(
    art::DDVSTART,
    statement::Union{TreeNode, Array{GSymbol{T}, 1} where T};
    y
) -> Int64

Summary

Trains a DDVSTART module on SomeStatement and an optional supervisory label.

Arguments

  • art::DDVSTART: the DDVSTART module to train.
  • statement::SomeStatement: the statement sample to train upon.
  • y::Integer=0: optional supervisory label for the sample.

Method List / Definition Locations

train!(art, statement; y)

defined at /home/runner/work/OAR/OAR/src/lib/start/ddv.jl:365.

source
OAR.train!Method
train!(
    art::DVSTART,
    statement::Union{TreeNode, Array{GSymbol{T}, 1} where T};
    y
) -> Int64

Summary

Trains OAR.DVSTART module on a OAR.SomeStatement from the OAR.DVSTART's grammar.

Arguments

Method List / Definition Locations

train!(art, statement; y)

defined at /home/runner/work/OAR/OAR/src/lib/start/dv.jl:147.

source
OAR.train!Method
train!(
    art::START,
    statement::Union{TreeNode, Array{GSymbol{T}, 1} where T};
    y
) -> Int64

Summary

Trains OAR.START module on a OAR.SomeStatement from the OAR.START's grammar.

Arguments

Method List / Definition Locations

train!(art, statement; y)

defined at /home/runner/work/OAR/OAR/src/lib/start/start.jl:160.

source

Types

OAR.DDVSTARTType
mutable struct DDVSTART <: OAR.AbstractSTART

Summary

A DDVSTART module.

Fields

  • grammar::OAR.CFG: The OAR.CFG (Context-Free Grammar) used for processing data (statements).
  • opts::OAR.opts_DDVSTART: DDVSTART options struct.
  • subopts::OAR.opts_START: START options struct used for all F2 nodes.
  • F2::Vector{START}: List of F2 nodes (themselves START modules).
  • labels::Vector{Int64}: Incremental list of labels corresponding to each F2 node, self-prescribed or supervised.
  • n_categories::Int64: Number of total categories.
  • epoch::Int64: Current training epoch.
  • T::Vector{Float64}: DDVFA activation values.
  • M::Vector{Float64}: DDVFA match values.
  • stats::Dict{String, Any}: Dictionary of mutable statistics for the module.
source
OAR.DVSTARTType
struct DVSTART <: OAR.SingleSTART

Summary

Definition of a DVSTART module.

Contains the ProtoNodes and CFG grammar that is used for processing statements and generating nodes.

Fields

  • protonodes::Vector{ProtoNode}: The OAR.ProtoNodes of the DVSTART module.
  • grammar::OAR.CFG: The OAR.CFG (Context-Free Grammar) used for processing data (statements).
  • opts::OAR.opts_DVSTART: The OAR.opts_DVSTART hyperparameters of the DVSTART module.
  • labels::Vector{Int64}: Incremental list of labels corresponding to each F2 node, self-prescribed or supervised.
  • T::Vector{Float64}: Activation values for every weight for a given sample.
  • M::Vector{Float64}: Match values for every weight for a given sample.
  • stats::Dict{String, Any}: Dictionary of mutable statistics for the module.
source
OAR.GSymbolType
struct GSymbol{T}

Summary

Definition of a grammar symbol with arbitrary datatype and a boolean flag for if the symbol is terminal or not.

Fields

  • data::Any: The grammar symbol of type T.
  • terminal::Bool: Boolean flag if the symbol is terminal (true) or nonterminal (false).
source
OAR.GSymbolMethod

Constructor for a grammar symbol from just the provided data (defaults to being terminal).

Arguments

  • data::T where T <: Any: the piece of data comprising the grammar symbol of any type.
source
OAR.ProtoNodeType
struct ProtoNode <: OAR.ARTNode

Summary

ProtoNode struct, used to generate tree prototypes, which are the templates of OAR.START.

Fields

  • dist::Dict{GSymbol{String}, Float64}: The TerminalDist distribution over all symbols at this node.
  • N::Dict{GSymbol{String}, Int64}: The SymbolCount update counters for each symbol.
  • children::Dict{GSymbol{String}, ProtoNode}: The children of this node (Dict{STARTSymbol, ProtoNode}).
  • stats::OAR.ProtoNodeStats: The mutable ProtoNodeStats options and stats of the ProtoNode.
source
OAR.STARTType
struct START <: OAR.SingleSTART

Summary

Definition of a START module.

Contains the ProtoNodes and CFG grammar that is used for processing statements and generating nodes.

Fields

  • protonodes::Vector{ProtoNode}: The OAR.ProtoNodes of the START module.
  • grammar::OAR.CFG: The OAR.CFG (Context-Free Grammar) used for processing data (statements).
  • opts::OAR.opts_START: The OAR.opts_START hyperparameters of the START module.
  • labels::Vector{Int64}: Incremental list of labels corresponding to each F2 node, self-prescribed or supervised.
  • T::Vector{Float64}: Activation values for every weight for a given sample.
  • M::Vector{Float64}: Match values for every weight for a given sample.
  • stats::Dict{String, Any}: Dictionary of mutable statistics for the module.
source
OAR.TreeNodeType
struct TreeNode <: OAR.ARTNode

Summary

Tree node for a START module.

Fields

  • t::GSymbol{String}: The STARTSymbol symbol for the node.
  • children::Vector{TreeNode}: Children nodes of this node.
source
OAR.TreeNodeType
TreeNode(name::AbstractString) -> TreeNode
TreeNode(
    name::AbstractString,
    is_terminal::Bool
) -> TreeNode

Summary

Constructor for a OAR.START OAR.TreeNode, taking a string name of the symbol and if it is terminal or not.

Arguments

  • name::AbstractString: the string name of the symbol to instantiate the OAR.TreeNode with.
  • is_terminal::Bool: flag for if the symbol in the node is terminal or not.

Method List / Definition Locations

TreeNode(name)
TreeNode(name, is_terminal)

defined at /home/runner/work/OAR/OAR/src/lib/start/common.jl:213.

source

Constants

OAR.OAR_VERSIONConstant

A constant that contains the version of the installed OAR package.

This value is computed at compile time, so it may be used to programmatically verify the version of OAR that is installed in case a compat entry in your Project.toml is missing or otherwise incorrect.

source