Small models.
A path to C.

NaniNet explores what building from fundamentals makes possible: compact classifiers, inspectable training, and portable inference. I write the gradients in NumPy and implement selected inference paths in C, then check model results through experiments on Kaggle.

Network schematicIllustrative connectionsClass scores
Pure NumPy Core models & trainingC inference Selected task exports1,059 parameters Saved fraud modelKaggle evidence Five rerun evaluations

Local demo: watch the model respond.

A real forward pass through the saved KestrelNet weights, running in JavaScript. This educational transaction model was trained on synthetic data; the scores are not calibrated real-world fraud risk.

Transaction signals

Other inputs stay fixed: 2pm on day index 2, three transactions in 24 hours, a one-year-old account, and no previous fraud history.

KestrelNet / fraud_v114 → 32 → 16 → 3

Loading model…

Preparing local inference.

Legitimate—
Review—
Fraudulent—
Local inference. No transaction data leaves this page.
Decision shown is the highest-probability class; the API adds configurable thresholds.

Educational demo. The fraud model was trained on synthetic data; its probabilities are model outputs, not calibrated real-world risk estimates.

Train in NumPy. Deploy a small C kernel.

Selected models already have C implementations. The benefit is a narrow inference path: arrays, arithmetic, activations, and saved weights, without a Python interpreter or a full ML framework on the target.

1 / Train

Learn the weights

Use the NumPy implementation and handwritten gradients to train a task-specific classifier.

2 / Export

Preserve the computation

Save weights and normalization parameters. Express the selected forward pass as C loops and float arrays.

3 / Compile

Build for the target

Compile the C source with the target toolchain. Native compilation offers an optimization path; the speed gain must be measured.

4 / Verify

Check outputs and budgets

Compare predictions with NumPy, then measure total memory, latency, and energy on the actual device.

A concrete example: EEG eye state.

The checked-in C kernel implements GoshawkNet Cl(0,2), with 14 inputs, hidden widths 16 and 8, and two outputs. The forward pass uses fixed buffers and standard C math. This is a task-specific export, not an automatic compiler for every NaniNet model.

Small weight storage

1,576 float32 parameters: 6,304 bytes (about 6.2 KiB), excluding normalization and runtime storage.

Inspect the published weights

Inspectable C source

A compact, task-specific forward pass with no Python runtime dependency. Existing Kaggle runs load the compiled library through ctypes.

Download the C inference source

Full memory matters

The current source reserves 88 KiB of static scratch arrays, in addition to weights, code, stack, and preprocessing.

Buffers can be sized for this architecture. As written, shared scratch buffers also require serialized calls or separate workspaces.

Deployment potential: drones and IoT

Compact classifiers are candidates for local sensor tasks: recognizing activity, screening telemetry, or flagging unusual equipment behavior. A C inference path makes integration into native firmware more direct and can avoid a cloud round trip.

What still needs device testing

These are potential applications, not demonstrated deployments. Each needs task-specific training, a suitable processor and memory budget, and measurements on the target hardware. Drone flight control, power savings, and real-time guarantees have not been validated.

One project. Several directions.

The core is a compact neural-network toolkit. Around it: C inference exports, fraud-service code, a product website, and separate research experiments.

Two ways to learn a pattern.

1 / Prepare

Turn data into features

Normalize numeric inputs. Encode recurring signals such as time of day.

2 / Train

Learn with handwritten math

Calculate gradients directly, then update weights with SGD or Adam.

3 / Evaluate

Check what generalizes

Use validation loss, early stopping, and task-specific benchmarks.

4 / Deploy

Take the weights with you

Run locally, serve through the API, or export selected experiments to C or ONNX.

Claims you can trace to a Kaggle run.

Five published notebooks under the GnaniNet name. All five were rerun on Kaggle on October 14, 2026. Accuracy, prediction counts, parameter counts, and reported macro F1 scores matched the earlier results. These runs evaluate saved weights through compiled C inference from Python; they do not retrain the models.

Download results & provenance

Measured outputs, with a source behind each number.

These five benchmark metrics come from fresh Kaggle runs, with execution logs retrieved through the Kaggle CLI. The published notebooks load model weights, run inference on test samples, and compute their results. Follow each result to its public notebook, task dataset, and saved weights to inspect the procedure and recorded output or rerun it on Kaggle.

“Evaluated on Kaggle” identifies where the code ran. It does not mean Kaggle independently audited the training data, model selection, baseline comparisons, or suitability for a real-world deployment.

What the measurements establish.

Each result belongs to a particular model, dataset, and split. Compact weights are useful evidence; they do not by themselves establish lower total memory, energy use, or better accuracy than another model.

EEG eye state

2,820 / 2,995 correct; 1,576 parameters; 6,304 bytes of float32 weights.

80/20 stratified split, seed 42. Measured inference-loop time: 14.9 µs per sample in the October 14 Kaggle run, including Python overhead.

Smartphone activity

2,796 / 2,947 correct; 15,416 parameters; macro F1 0.9485.

The notebook uses the dataset’s official subject-independent train/test split.

ECG heartbeat

21,257 / 21,892 correct; 97.10% accuracy; macro F1 0.8390.

The macro F1 adds context that overall accuracy alone misses. Uses the supplied train/test split.

EEG emotions

421 / 425 correct; 163,788 parameters; recorded accuracy 99.06%.

The local export script selects the best of five seeds using test accuracy. Its exact lineage to the published weights remains unverified; the rerun reproduces inference but does not establish an untouched holdout estimate.

Seizure recognition

2,229 / 2,300 correct; 12,072 parameters; recorded accuracy 96.91%.

80/20 split, seed 42. This classification benchmark does not establish clinical performance.

Notebook baseline tables are authored comparisons, not baselines rerun under matched conditions. No global ranking, C-versus-NumPy speedup, or drone / microcontroller performance is established by these runs.

The separate fraud demo above uses the local 1,059-parameter model. Its repository-reported 91.6% accuracy is not one of these five Kaggle results.

Inspect the evidence.

Public notebooks, task datasets, and weights are linked below. All five weights datasets are public; their pages and downloads were checked without signing in on October 13, 2026. The five notebooks were then rerun successfully on October 14, 2026; results and provenance are recorded above.

Fraud model card · Fraud model files. The fraud card contains older naming and metric inconsistencies; its 91.6% accuracy is self-reported on synthetic data. Use the task-specific notebook logs for the five benchmark results above.

Beyond classification.

Separate competition tracks explore how compact models and game strategies tackle different kinds of reasoning.

NeuroGolf: reasoning in tiny graphs

Build small ONNX networks for ARC-style grid puzzles. The best recorded Kaggle submission scored 806.30 on both public and private results (April 27, 2026). Its submission description records 53 tasks.

competitions/neurogolf/View NeuroGolf on Kaggle

Orbit Wars: strategy through self-play

A substantial game-agent research track with strategy variants, self-play training, opponent analysis, and a local viewer for game replays.

competitions/orbit-wars/

Playground S6E4: April 2026 submission

Completed submission on April 15, 2026: public score 0.90820, private score 0.90900. The submission description records a 14,851-parameter FCNet. Competition scores are separate from the notebook accuracies above. Submission scores alone do not establish a leaderboard rank.

View the competition

Go deeper when the problem calls for it.
Canopy uses established tools to connect school operations. NaniNet explores the computation itself, where compactness and portability are the questions. Hardware memory, latency, and energy still need measurement on a chosen device.

Explore Canopy →