memory_balance: Balance the training data

View source: R/ac_memory_manager.R

memory_balanceR Documentation

Balance the training data

Description

Generic that returns the (balanced) training data of a full training from the projected features of a concept's memory. The prototype decides the balancing: memory_basic() (none), memory_undersampling() or memory_oversampling() (SMOTE).

Usage

memory_balance(obj, X, y)

Arguments

obj

A memory_manager() prototype.

X

Projected (numeric) features.

y

Labels.

Value

⁠list(X = <features>, y = <labels>)⁠ after balancing.


heimdall documentation built on Dec. 2, 2026, 5:08 p.m.