﻿# RealMLP implementation choice: standalone and original paths have different defaults

Choose an explicit RealMLP implementation by comparing missing-value support, initialization, defaults and optimizer-factor conventions rather than assuming one family name guarantees numerical equivalence.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-realmlp-standalone-original-implementation-defaults-missingness/
Language: en

## Identify the implementation, not only the model family

PyTabKit contains an original RealMLP implementation and a compact standalone path. The [standalone guide](https://raw.githubusercontent.com/dholzmueller/pytabkit/main/pytabkit/models/realmlp/README.md) explicitly marks the latter experimental and describes reduced dependencies alongside differences. A release record should name the module and configuration. Similar benchmark behavior reported by authors is not a claim of bitwise equivalence or interchangeable defaults for every downstream training experiment.

## Preserve the missing-value contract

The standalone guide describes numerical NaN support through learned missingness handling, while the [original sklearn path](https://raw.githubusercontent.com/dholzmueller/pytabkit/main/pytabkit/models/sklearn/sklearn_base.py) rejects remaining missing numerical inputs. An application should not generalize one path's support to every estimator bearing the RealMLP name. Record whether missing values are handled internally or imputed by an external fitted transform, including the training population used to derive any preprocessing statistics.

## Compare defaults before matching hyperparameters

The standalone guide distinguishes its ordinary defaults from paper-style tuned configurations, including label smoothing and validation metric choices. It also explains initialization and parameter-specific weight-decay conventions that differ from the original implementation. Copying the same visible learning-rate number does not establish the same optimization process. Preserve resolved parameter factors and the intended preset rather than assuming an identically named field has identical effective behavior across implementations.

## Inspect the actual training state

The [standalone training code](https://raw.githubusercontent.com/dholzmueller/pytabkit/main/pytabkit/models/realmlp/train.py) computes split-specific preparation and trains vectorized models. A port should compare those fitted statistics, initialization scope and stopping state before attributing a quality difference solely to architecture. The [vectorized RealMLP guide](/journal/fg2-realmlp-vectorized-folds-ensemble-model-axis-memory/) provides related execution controls. Shared model concepts do not remove the need to identify which implementation actually produced an artifact.

## Evaluate a migration as a new procedure

Use fixed data splits and report effective defaults, missing-value policy, random-state handling and training resources for each path. The [RealMLP tuning guide](/journal/fg2-realmlp-tuned-defaults-versus-dataset-hpo/) explains configuration provenance. Compare task outcomes with appropriate repeat runs instead of demanding exact equality where random draws and initialization differ. A useful result distinguishes implementation fidelity, supported scope and measured application quality, preserving the experimental status and documented differences of the chosen standalone path.
