@nirs4all/methods 1.3.6 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/estimatorRolesGenerated.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/n4m.js +1 -1
- package/dist/n4m.wasm +0 -0
- package/dist/nativeModel.d.ts +19 -1
- package/dist/nativeModel.js +28 -1
- package/dist/preflightDiagnostics.d.ts +288 -1
- package/dist/preflightDiagnostics.js +623 -8
- package/dist/types.d.ts +19 -0
- package/dist/types.js +20 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -57,8 +57,8 @@ restores the original typed label table; omitting it exposes native class IDs.
|
|
|
57
57
|
import * as n4m from "@nirs4all/methods";
|
|
58
58
|
|
|
59
59
|
await n4m.loadModule();
|
|
60
|
-
console.log(n4m.version()); // "1.3.6+abi.2.
|
|
61
|
-
console.log(n4m.abiVersion()); // [2,
|
|
60
|
+
console.log(n4m.version()); // "1.3.6+abi.2.20.0"
|
|
61
|
+
console.log(n4m.abiVersion()); // [2, 20, 0]
|
|
62
62
|
|
|
63
63
|
const rows = 40, cols = 6;
|
|
64
64
|
const X = new Float64Array(rows * cols); // row-major
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: CECILL-2.1
|
|
2
2
|
// Generated by scripts/generate_js_roles.py from `n4m_cli --manifest-json`. Do not edit.
|
|
3
|
-
// Native ABI 2.
|
|
3
|
+
// Native ABI 2.20.0.
|
|
4
4
|
import { NativeEstimator, NativeMethod, NativeProcedure, } from "./estimatorRoles.js";
|
|
5
5
|
/** Native `aom_pop.aom_chain_fixed_fit` (regressor). */
|
|
6
6
|
export class AOMFixedCandidate extends NativeEstimator {
|
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ export { SpectralEncoder, type SpectralEncodingOptions } from "./spectralEncodin
|
|
|
2
2
|
export { Optimizer, type OptimizerOptions, type OptimizerTrial, type BatchResult, type OptimizerTrialRecord, type SearchAxis, type SearchConstraint, type TrialValue } from "./optimization.js";
|
|
3
3
|
export { loadModule, getModule, makeMatrixView, readArrayView } from "./ffi.js";
|
|
4
4
|
export { Context } from "./context.js";
|
|
5
|
-
export { preflightPca, preflightRepeatability, preflightSummary, preflightNearestNeighbors, preflightLocalContrast, preflightNoiseProxy, preflightPairsWithinTolerance, preflightFactorAssociation, preflightHolmAdjust,
|
|
5
|
+
export { preflightPca, preflightRepeatability, preflightSummary, preflightNearestNeighbors, preflightLocalContrast, preflightNoiseProxy, preflightSnv, preflightPairsWithinTolerance, preflightFactorAssociation, preflightHolmAdjust, preflightAdjustedRandIndex, statsCorrelationTest, statsBhAdjust, statsFactorAssociationExact, statsCorrelationExact, statsPermanova, statsPermdisp, statsPermanovaFreedmanLane, statsEnergyDistance, statsPcaMonitor, statsVarianceComponentsReml, statsVarianceComponentsIntervals, statsGroupMeans, statsRegressionScores, clusterHdbscan, clusterJaccardMatrix, linearSumAssignment, randomPermutations, randomMultivariateNormal, type PreflightPcaResult, type PreflightRepeatabilityResult, type PreflightNeighborResult, type PreflightLocalContrastResult, type PreflightNoiseProxyResult, type PreflightSnvResult, type PreflightPairsResult, type PreflightFactorAssociationResult, type StatsCorrelationTestResult, type StatsExactPermutationResult, type PermanovaResult, type PermdispResult, type FreedmanLaneResult, type StatsEnergyDistanceResult, type StatsPcaMonitorResult, type VarianceComponentsRemlResult, type VarianceComponentsIntervalsResult, type GroupMeansResult, type RegressionScoresResult, type HdbscanOptions, type HdbscanTreeNode, type HdbscanResult, type ClusterJaccardResult, type LinearSumAssignmentResult } from "./preflightDiagnostics.js";
|
|
6
6
|
export { Config } from "./config.js";
|
|
7
7
|
export { Model, fitPls, predictPls, fitModel, predictModel, fitAom, fitAomChain, fitPop, fitAomRidge, fitAomStack, computeSplit, computeSplitIndices, type PlsModel, type FittedModel, type AomModel, type AomChainDescriptor, type AomChainModel, type PopModel, type AomRidgeOptions, type AomStackOptions, type SplitKind, type SplitOptions, type SplitIndices } from "./model.js";
|
|
8
8
|
export { ppCreate, ppFit, ppTransform, ppGetState, ppSetState, ppDestroy, type PpOperator, } from "./preprocessing.js";
|
|
9
9
|
export { MethodResult } from "./methodResult.js";
|
|
10
|
-
export { NativeModel } from "./nativeModel.js";
|
|
10
|
+
export { NativeModel, type ComponentResolution } from "./nativeModel.js";
|
|
11
11
|
export { NativeEstimator, NativeMethod, NativeProcedure, manifest, methodClass, type Augmenter, type Classifier, type FitInputs, type Fold, type ParamType, type ParamValue, type ProbabilisticClassifier, type Procedure, type ProcedureOutput, type Regressor, type SampleFilter, type Selector, type Splitter, type TargetMixingAugmenter, type Transformer } from "./estimatorRoles.js";
|
|
12
12
|
export * from "./estimatorRolesGenerated.js";
|
|
13
13
|
export { RolePipeline, type ClassLabel, type PipelineRole, type RolePipelineState, type RolePipelineStepInfo, type RoleStep } from "./rolePipeline.js";
|
|
@@ -17,7 +17,7 @@ export { augmentNative, type NativeAugmentationKind } from "./nativeAugmentation
|
|
|
17
17
|
export { NativePreprocessingPipeline, PipelineOperatorKind, type PipelineStep, } from "./nativePreprocessingPipeline.js";
|
|
18
18
|
export { selectSpa, selectVariables, selectorMethods } from "./selection.js";
|
|
19
19
|
export { inspectN4mm, SERIALIZED_MODEL_INFO_SCHEMA_V1, SERIALIZED_MODEL_CAPABILITY_PREDICT, SERIALIZED_MODEL_CAPABILITY_TRANSFORM, SERIALIZED_MODEL_CAPABILITY_AFFINE, SERIALIZED_MODEL_CAPABILITY_PIPELINE, PipelineFingerprintAlgorithm, PipelineSemanticProfile, SerializedSavitzkyGolayMode, SerializedPipelineOperatorKind, type SerializedModelInfo, type SerializedPipelineInfo, } from "./serialization.js";
|
|
20
|
-
export { Status, Dtype, Algorithm, Solver, Deflation, N4mError, type Matrix, } from "./types.js";
|
|
20
|
+
export { Status, Dtype, Algorithm, Solver, Deflation, ModelArray, N4mError, type Matrix, } from "./types.js";
|
|
21
21
|
/** ABI / project version reported by the loaded WASM module. */
|
|
22
22
|
export declare function version(): string;
|
|
23
23
|
/** ABI MAJOR.MINOR.PATCH triple. */
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export { SpectralEncoder } from "./spectralEncoding.js";
|
|
|
14
14
|
export { Optimizer } from "./optimization.js";
|
|
15
15
|
export { loadModule, getModule, makeMatrixView, readArrayView } from "./ffi.js";
|
|
16
16
|
export { Context } from "./context.js";
|
|
17
|
-
export { preflightPca, preflightRepeatability, preflightSummary, preflightNearestNeighbors, preflightLocalContrast, preflightNoiseProxy, preflightPairsWithinTolerance, preflightFactorAssociation, preflightHolmAdjust, clusterHdbscan,
|
|
17
|
+
export { preflightPca, preflightRepeatability, preflightSummary, preflightNearestNeighbors, preflightLocalContrast, preflightNoiseProxy, preflightSnv, preflightPairsWithinTolerance, preflightFactorAssociation, preflightHolmAdjust, preflightAdjustedRandIndex, statsCorrelationTest, statsBhAdjust, statsFactorAssociationExact, statsCorrelationExact, statsPermanova, statsPermdisp, statsPermanovaFreedmanLane, statsEnergyDistance, statsPcaMonitor, statsVarianceComponentsReml, statsVarianceComponentsIntervals, statsGroupMeans, statsRegressionScores, clusterHdbscan, clusterJaccardMatrix, linearSumAssignment, randomPermutations, randomMultivariateNormal } from "./preflightDiagnostics.js";
|
|
18
18
|
export { Config } from "./config.js";
|
|
19
19
|
export { Model, fitPls, predictPls, fitModel, predictModel, fitAom, fitAomChain, fitPop, fitAomRidge, fitAomStack, computeSplit, computeSplitIndices } from "./model.js";
|
|
20
20
|
export { ppCreate, ppFit, ppTransform, ppGetState, ppSetState, ppDestroy, } from "./preprocessing.js";
|
|
@@ -29,7 +29,7 @@ export { augmentNative } from "./nativeAugmentation.js";
|
|
|
29
29
|
export { NativePreprocessingPipeline, PipelineOperatorKind, } from "./nativePreprocessingPipeline.js";
|
|
30
30
|
export { selectSpa, selectVariables, selectorMethods } from "./selection.js";
|
|
31
31
|
export { inspectN4mm, SERIALIZED_MODEL_INFO_SCHEMA_V1, SERIALIZED_MODEL_CAPABILITY_PREDICT, SERIALIZED_MODEL_CAPABILITY_TRANSFORM, SERIALIZED_MODEL_CAPABILITY_AFFINE, SERIALIZED_MODEL_CAPABILITY_PIPELINE, PipelineFingerprintAlgorithm, PipelineSemanticProfile, SerializedSavitzkyGolayMode, SerializedPipelineOperatorKind, } from "./serialization.js";
|
|
32
|
-
export { Status, Dtype, Algorithm, Solver, Deflation, N4mError, } from "./types.js";
|
|
32
|
+
export { Status, Dtype, Algorithm, Solver, Deflation, ModelArray, N4mError, } from "./types.js";
|
|
33
33
|
/** ABI / project version reported by the loaded WASM module. */
|
|
34
34
|
export function version() {
|
|
35
35
|
const m = getModule();
|