ToolTech Software
CorTeXA ToolTech Software libraryC++ / MODELS / LEARNING

THE CORTeX LIBRARY

Computational models.
Neural and genetic learning.

A C++ library for building models, choosing how they learn and integrating their execution into your software.

INSIDE THE LIBRARY

One model. Several ways to work.

CorTeX brings authoring, learning and execution together through a shared model and runtime. These are the main parts of the library, rather than separate products.

01 / LIBRARY

Graph & expressions

Describe a model explicitly or compose layers with C++ operators. Both lead to a retained graph.

02 / LIBRARY

Model lifecycle

Build a model from its graph, compile its programs and evaluate it with application data.

05 / LIBRARY

Data & persistence

Bind samples and targets. Keep model structure, learned parameters and training checkpoints distinct.

GENERATION 2 / AUTHORING

Write the expression.
Keep the graph.

Compose reusable layers with operators, or construct the graph through explicit calls. The resulting structure remains available for compilation, inspection and supported persistence.

Expression syntax is a way to construct the model—not a separate execution engine.

Graph and expression authoring ↗

Expression

ctxGraf layers =
    Dense(64).activation(Tanh()).named("hidden/0")
  + Dense(32).activation(Tanh()).named("hidden/1");

ctxGraph graph;
graph = layers;

Explicit graph

ctxGraph graph;
if (!graph.addDense("hidden/0", 64, CTX_NEURON_TYPE_TANH)
 || !graph.addDense("hidden/1", 32, CTX_NEURON_TYPE_TANH))
{
    // Report graph.getError() to the application.
    return FALSE;
}

Two alternative hidden-layer fragments. Bind inputs and outputs when building the model.

LEARNING

Two approaches.
A shared model.

Backpropagation

Use gradients to update the model’s parameters against an objective.

Genetic learning

Evaluate a population of candidate parameter sets and improve it through selection and variation. The current learning path evolves parameters within a fixed model topology.

Understand training and continuation ↗

DEVELOPER DOCUMENTATION

From concepts to classes.

Read the programming model, look up a class or follow the change history.