deepbox
Release Notes
What changed in Deepbox 1.6.0, released 2026-11-12.
- v1.6.0
- 2026-11-12
A finalization pass over 1.5.0: every module was audited against NumPy, SciPy, scikit-learn, pandas and PyTorch, and every finding has a regression test in test/v151. No export was removed or renamed except the undocumented internal dropoutMask. Behavior that changes for existing code is listed under "Upgrading from 1.5".
- Invalid conversions throw. Converting NaN, Infinity or an out-of-range value to
int32oruint8throwsDTypeError, asint64already did. Strings convert to integers only when they are plain decimal integers ("0x10",""and"3.9"throw), and toboolonly fromtrue/false(any case) or1/0. - CSV reading follows pandas.
NA,N/A,NULL,None,#N/Aand the other pandas markers becomenullby default (passnaValuesto change the list). A quote inside an unquoted field is kept literally. Integers beyond 2^53 stay strings instead of being rounded. Duplicate headers becomea,a.1, and short rows are padded withnull.NaNandnanstill read as the number NaN. - DataFrame and Series. An empty
Seriessums to 0 and its other statistics are NaN instead of throwing; booleans count insumandmean.pctChangereturns Infinity for a zero base.dt.isoformat()formats the wall-clock fields without aZ.astypeparses numbers and booleans strictly (hex strings become NaN) and takeserrors: "raise" | "coerce".valueCountscounts null, undefined and NaN as one missing key. Sorting a mixed-type column uses a fixed type order. - Metrics. Binary averaging compares against
posLabel(default 1) instead of requiring 0/1 labels, so two string labels withoutposLabelnow throw instead of silently returning a weighted average.daviesBouldinScoreandcalinskiHarabaszScorethrow for fewer than two clusters. 2-D regression targets are scored per column, and 2-D indicator targets are multilabel. - Statistics.
pearsonrandspearmanron constant input return[NaN, NaN]with a warning, as SciPy does, instead of throwing. - Preprocessing. Scalers, imputers and feature transformers keep float32 input as float32.
HashingVectorizeruses MurmurHash3 like scikit-learn, so its column indices differ from 1.5.0. String labels are ordered by code point, which changes the order only for characters outside the Basic Multilingual Plane. - Machine learning. Estimator constructors reject unknown options (with a hint, for example
n_clusterssuggestsnClusters). LDA and QDA use the same covariance divisors as scikit-learn, so their probabilities and transforms change. Estimators that cannot usesampleWeightthrow instead of ignoring it. - Neural networks and optimizers.
crossEntropyLossandnllLossignore target-100by default (PyTorchignore_index).OneCycleLRandCyclicLRcycle momentum by default, as in PyTorch.Trainer.fitthrows when the loss is not connected to the model, an optimizer throws for an empty parameter list, andregisterBackend("cpu", ...)throws. - Datasets.
makeClassificationassigns balanced class counts like scikit-learn, so a given seed produces different data.mapDatasetkeeps the trailing dimensions andimages.
eigandeigvalstake{ complex: true }and return real and imaginary parts for matrices with complex eigenvalues.shuffle,permutationandchoicetake{ axis }to work on whole slices.matmulfollowsnumpy.matmulfor 1-D and batched inputs.- String tensors support
equal,notEqual,where,unique,sort,argsort,flip,roll, boolean and fancy indexing and the set operations. crossValScore,crossValidate,GridSearchCVandRandomizedSearchCVaccept splitter objects (KFold,TimeSeriesSplit,GroupKFold, ...),groups,shuffleandrandomState, and run on 1-D string tensors of documents.sampleWeightfor LinearRegression, Ridge, Lasso, ElasticNet, LogisticRegression, BayesianRidge, HuberRegressor, KernelRidge, LinearSVR, the SGD models, the naive Bayes models, QuantileRegressor, RANSAC, AdaBoost, Bagging and MLP.- Text vectorizers, encoders and
KBinsDiscretizerhavefit,transform,getParams,setParamsandclone, so they work as Pipeline steps. classificationReportfor any labels;posLabelon precision, recall, F1, F-beta and Jaccard; multioutput regression metrics; multilabel classification metrics;sampleWeightforcohenKappaScoreandhammingLoss.mergeandjoinon several key columns,concatwith an array,Expanding.median, negativeperiodsindiffandpctChange,skipnafor groupByfirstandlast, andnaValuesfor CSV reading.readXlsxoptionmaxCells; dataset download optionsmaxBytes,maxDecompressedBytes,timeoutand a SHA-256checksum.- Losses
gaussianNLLLoss,poissonNLLLoss,cosineEmbeddingLossandctcLossare differentiable.crossEntropyLossandnllLossaccept(N, C, d1, ...)and unbatched input. Conv2dpaddingMode, ConvTranspose2dgroups, dropout between RNN layers,TransformerDecoderLayeroptioncausal, unbatched(C, H, W)input to Conv2d and the 2-D pools, non-persistent buffers, andTaskTimeoutErrorfromdeepbox/core.
readXlsxcould be made to use unbounded memory (a 233 KB file crashed Node) or quadratic time (a 1.2 MB file took 43 s) by hostile input; it now rejects such files in milliseconds.- Type declarations resolve under
moduleResolutionnode16andnodenextfor bothimportandrequire. - Importing one subpath no longer pulls in every module: a minified browser bundle of
tensoralone went from 342,456 to 127,321 bytes. deepbox/plotanddeepbox/datasetsbundle for browsers.Ridgewith more features than samples solves the dual problem (n = 100, p = 3000: 9.6 s in 1.5.0, 27 ms now). LDA and QDA use a symmetric eigensolver (LDA on 1000 x 400: 2.6 s in 1.5.0, 0.5 s now). Single runs on an Apple M5 Pro.- Reading CSV is as fast as in 1.5.0 despite the pandas-compatible cell rules.
- Many smaller fixes listed in
docs/FINALIZATION-2026-11-12.md, each with a regression test.
- Node.js 22.12 or newer is supported (
engineswas>=24.13.0). - Every JSDoc
@exampleruns as written and is checked bynpm run jsdoc:examples. - The release workflow builds and tests with read-only permissions and publishes only the verified tarball.
Found a mistake? Open an issue.