Skip to content

Interface: LtnPredicateTraining

@kortexya/reasoninglayer


@kortexya/reasoninglayer / LTN / LtnPredicateTraining

Interface: LtnPredicateTraining

Defined in: src/types/ltn.ts:342

Optional neural-predicate training block on a train request.

Remarks

Fits a small MLP p_predicate(x) ∈ [0, 1] on the supplied examples and persists its weights per tenant (when an LTN_WEIGHTS_DIR is configured server-side).

Example

const predicate: LtnPredicateTraining = {
predicate: 'is_loyal',
examples: [{ features: [0.9, 0.1], label: 1.0 }],
epochs: 200,
batchSize: 16,
};

Properties

batchSize?

optional batchSize: number | null

Defined in: src/types/ltn.ts:351

Mini-batch size.

Default Value

16

epochs?

optional epochs: number | null

Defined in: src/types/ltn.ts:356

Training epochs over the examples (capped server-side).

Default Value

200

examples

examples: LtnPredicateExample[]

Defined in: src/types/ltn.ts:346

Labelled examples (explicit input vectors).


predicate

predicate: string

Defined in: src/types/ltn.ts:344

Predicate name — keys the per-tenant neural predicate and its checkpoint file.