Skip to main content
Visualizing .serva files in a low-dimensional projection confirms that the encoded bytes carry learnable class structure. This tutorial uses t-SNE on the raw encoded bytes — no decoding, no preprocessing.

t-SNE of encoded .serva bytes

Load a directory of .serva files, pad to the maximum file size, reduce with PCA to 50 dimensions (standard t-SNE speedup), then project to 3D with t-SNE. Color by class label. Dependencies: numpy, scikit-learn, matplotlib.
3D t-SNE scatter plot of .serva encoded MNIST digits colored by class, showing cluster structure in the encoded byte space.
The PCA pre-reduction from raw bytes to 50 dimensions keeps t-SNE runtime under a minute on 10k samples. For larger datasets, increase perplexity proportionally.