Skip to content

Data Nodes

Summary

Reference: nodes that bring data into a workflow — loading datasets, files, and references, and splitting samples into calibration and test sets.

data.collection_load

Loads the exact project-owned collection members selected in My Dataset. The saved node records the selected file identities plus source-manifest, collection-definition, and scientific-collection digests. At execution Sherpa re-admits those members and refuses missing, added, changed, or out-of-scope sources. An explicitly selected sample-table target and validation group are bound without adding metadata columns to the predictor matrix.

Data nodes introduce datasets into a workflow.

Core Data Nodes

  • data.file_load: You want one exact authorized experiment file, including an explicit target when supervised analysis needs one.
  • data.nist_library: You need one exact local NIST reference spectrum. The node requires a supported spectral technique, monotonic axis, units, and binds the JCAMP bytes by SHA-256.
  • data.load_group: You need to stack many compatible files from a folder into one dataset. Uses the native ingestion registry. Axes and signal units must match; exact source bytes are bound by a manifest digest.
  • data.attach_target: You want downstream supervised nodes to use either a connected target or one exact aligned sample-table column. A separate metadata column may define validation groups without entering X. For sample-table supervision, choose an exact target column; a separate group column can define validation groups without entering the predictor matrix.
  • data.train_test_split: You need one digest-bound statistical or chemometric calibration/test design. Bound validation groups are held out whole. Grouped input is supported by random, stratified, sequential, and group holdout methods; observation-level space-filling methods refuse it.

Grouped stratification first selects a class-complete StratifiedGroupKFold candidate closest to the requested sample count, then class proportions. If no candidate exists and every group has exactly one class, it constructs a seeded class-stratified holdout of ceil(test_size * group_count) groups. Every class must retain at least one independent group on each side. Remaining test groups are allocated by the largest deficit from the requested per-class group count, with stable class-order tie breaking. This fallback balances independent groups, not replicate counts; unequal group sizes can change the actual sample fraction. Exact membership and realized counts are retained. Neither route uses spectra or model performance to choose membership. Failure to find a class-complete split is reported without reverting to row splitting.

Before planning, Train/Test Split materializes the input's declared sample inclusion. Excluded rows never enter either partition. Targets, sample IDs, labels and group annotations follow the same row selection; the original dataset is unchanged. Connected response identities are checked before selection. train_indices and test_indices identify original input rows; the retained split plan indexes the compact active population used for planning. Feature exclusions must be materialized separately before this row operation.

Named group holdout (group_holdout) is the external-validation design: the scientist names the exact values of the bound grouping column that form the test partition (held_out_groups, e.g. MP5), and every other group pools into training. This answers "pilot lots against a production lot" or "one instrument against a specific new instrument" directly, following Leave-P-Groups-Out semantics. The grouping column is validation context only and never enters X. The method is deterministic: it admits no test fraction, seed, or distance setting, and it refuses a selection that is empty, names an unknown group (the error lists the valid groups), names one twice, or leaves no group in training.

  • data.filter_samples: You need to subset rows by sample label, class, target, metadata, row number, or intensity rule. Guided mode selection supports row ranges, populated value lists, intensity rules, and advanced pattern controls.

Filter Samples

Filter Samples keeps or removes rows from a connected dataset before modeling, plotting, export, or report generation. The workflow inspector reads the connected dataset and exposes the practical choices first:

  • By index for row ranges such as 1-10, 15.
  • By name when sample labels are available.
  • By class when class labels are available.
  • By target when target values are attached.
  • By metadata when sample-table columns are available.
  • By intensity for simple row-wise spectral rules such as maximum intensity above a threshold.

The panel previews how many samples will be kept before the workflow is run. Advanced settings remain available for regular-expression matching, inverted selection, case sensitivity, and allowing an intentionally empty result.

Synthesis and Mixture Helpers

These nodes are useful for examples, simulation, and method development. They should not be mistaken for measured calibration data.

  • synthesis.ppm_fraction: Convert declared non-negative ppm concentrations into the dimensionless mole fractions required by the bilinear mixture. The exact scale factor is 10^-6.
  • synthesis.nist_quant_ir_response: Convert one NIST quantitative-IR coefficient in ppm^-1 m^-1 into a unit-mole-fraction decadic response. The optical path length must be strictly positive.
  • synthesis.hitran_response: Convert one HITRAN cross section in cm^2 molecule^-1 into a unit-mole-fraction decadic response. Optical path length, absolute temperature, and pressure must be strictly positive.
  • synthesis.species: Mark a spectrum as a component/species before mixture generation.
  • synthesis.merge: Stack exactly aligned, species-labelled pure responses into the response matrix S. Alignment must be an explicit upstream operation.
  • synthesis.blend: Evaluate the standard bilinear mixture D = C @ S. Retains the exact concentration and pure-response factors; noise and nonlinear response are separate explicit nodes.
  • data.synthetic_curve: Generate deterministic concentration/time curves for synthetic examples. Specify a physical duration in seconds.
  • custom.concentration_curve: Generate simple concentration curves for custom blending workflows.
  • custom.catmull_rom_curve: Generate smoother custom curves from control points.
  • custom.noise_injection: Stress-test workflows with reproducible independent Gaussian noise. Retain the seed to reproduce the perturbation.
  • custom.system_saturation: Simulate detector or system saturation in synthetic spectra.
  • custom.linear_calibration: Apply an explicit affine Beer-Lambert calibration without inferred coefficients. Input metadata must carry the matching slope, intercept, and applied-reference status for the declared concentration unit.
  • custom.saturation_model: Simulate nonlinear high-concentration response.
  • custom.hybrid_selector: Choose linear or saturation output per variable.
  • custom.golden_grid_align: Align and stack spectra on measured coordinates within every input's common wavenumber coverage. Extrapolation is rejected, and denser interpolation is admitted explicitly without claiming added measured resolution. Use only common measured coverage, reject extrapolation, and explicitly admit any denser interpolation.

Scientific references for reference-response synthesis

  • Ppm quantity and unit semantics follow the IUPAC Green Book, 3rd edition, DOI 10.1039/9781847557889.
  • Decadic absorbance scaling follows the IUPAC Beer–Lambert definition, DOI 10.1351/goldbook.B00626.
  • HITRAN cross sections and line parameters follow Gordon et al., The HITRAN2020 molecular spectroscopic database, DOI 10.1016/j.jqsrt.2021.107949.
  • NIST coefficient provenance follows the NIST Chemistry WebBook Quantitative Infrared Database. The node accepts only the database's declared ppm^-1 m^-1 coefficient convention.
  • The bilinear mixture follows de Juan and Tauler, Multivariate Curve Resolution (MCR) from 2000, DOI 10.1080/10408340600970005.

These operations expose only the referenced equations and exact unit conversions. A different physical model, interpolation, response correction, or decision rule requires a separate cited canonical operation; it is never hidden in the application synthesis service.

Deployment I/O Helpers

  • deploy.input: Building a headless prediction workflow that receives external data.
  • deploy.output: Formatting headless prediction results for a service response.

Data Checks Before Modeling

Confirm sample count, variable count, spectral axis units, sample IDs, and target alignment before connecting to supervised nodes. A model can train on row-misaligned spectra and targets, but the results are scientifically invalid.

Import Boundary

Current native file support and pending vendor readers are documented in Supported File Types. Installing spectra-sherpa[scp] enables three specialized algorithms, not additional file readers.

Reference examples are imported through Analysis Starter into an exact project file before a canonical workflow is created. Eigenvector Research raw files are not redistributed in the OSS wheel; the reference-dataset manifest records their acquisition and attribution.

Registry reference

Generated from registered node metadata. Edit methodology and examples outside the marked section. Defaults and options below are JSON values; null means no concrete default is declared. Internal parameters are retained for contract inspection and are not scientist-editable controls. Conditional visibility describes the editor; execution admission remains node-owned.

Node Operation
Catmull-Rom Curve custom.catmull_rom_curve
Concentration Curve custom.concentration_curve
Golden Grid Align custom.golden_grid_align
Explicit Hybrid Composition custom.hybrid_selector
Linear Calibration custom.linear_calibration
Noise Injection custom.noise_injection
Saturation Model custom.saturation_model
System Saturation custom.system_saturation
Attach Target data.attach_target
Collection Load data.collection_load
File Load data.file_load
Filter Samples data.filter_samples
Load Group data.load_group
NIST Library data.nist_library
Synthetic Curve data.synthetic_curve
Train/Test Split data.train_test_split
Deploy Input deploy.input
Deploy Output deploy.output
Bilinear Mixture synthesis.blend
HITRAN Cross-section Response synthesis.hitran_response
Merge Pure Responses synthesis.merge
NIST Quant IR Response synthesis.nist_quant_ir_response
PPM to Fraction synthesis.ppm_fraction
Species synthesis.species

Catmull-Rom Curve (custom.catmull_rom_curve)

Ports

No input ports (source node).

Direction Port Type URI Required Variadic Accepted data roles
output default spectrasherpa://types/Array1D/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
n_points number true 100 — {"max_value": 100000, "min_value": 10} {"category": "basic"} Number of points in the output curve Bounds interactive curve evaluation and serialized output size.
max_concentration number true 1.0 — {"min_value": 0.0} {"category": "basic"} Scale factor for output concentrations
control_points json true [] — — {"category": "basic"} List of {x, y} control points (x: 0-100, y: 0-1)

Concentration Curve (custom.concentration_curve)

Ports

No input ports (source node).

Direction Port Type URI Required Variadic Accepted data roles
output default spectrasherpa://types/Array1D/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
curve_type select true "sigmoid" ["sigmoid", "gaussian", "linear", "exponential", "step", "constant"] — {"category": "basic"} Type of concentration profile
n_points number true 100 — {"max_value": 100000, "min_value": 10} {"category": "basic"} Number of time points Bounds interactive curve evaluation and serialized output size.
max_concentration number true 1.0 — {"min_value": 0.0} {"category": "basic"} Maximum concentration value
center number true 0.5 — {"max_value": 1.0, "min_value": 0.0} {"category": "basic"} Center position for sigmoid/gaussian (0-1) The center is expressed on the normalized zero-to-one time axis.
width number true 0.1 — {"max_value": 1.0, "min_value": 0.01} {"category": "basic"} Width parameter for sigmoid/gaussian The width is expressed as a fraction of the normalized time span.

Golden Grid Align (custom.golden_grid_align)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input default spectrasherpa://types/SpectralDataset/1.0 true true ["X_spectra"]
output default spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
method select true "pchip" ["pchip", "linear", "sinc"] — {"category": "basic"} Interpolation method for resampling
merge_tolerance number true 0.05 — {"min_value": 0.001} {"category": "basic"} Tolerance for merging near-duplicate wavenumbers
coverage_policy select true "common_overlap" ["common_overlap"] — {"category": "basic"} Use only the spectral interval measured by every connected input.
extrapolation select true "reject" ["reject"] — {"category": "basic"} Reject any operation that would fabricate signal outside measured coverage.
max_upsampling_factor number true 1.0 — {"min_value": 1.0} {"category": "basic"} Largest explicitly admitted interpolation-density increase relative to any input. Increasing it does not add measured spectral resolution.

Explicit Hybrid Composition (custom.hybrid_selector)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input linear_result spectrasherpa://types/SpectralDataset/1.0 true false []
input saturation_result spectrasherpa://types/SpectralDataset/1.0 true false []
input model_mask spectrasherpa://types/Array1D/1.0 true false []
output default spectrasherpa://types/SpectralDataset/1.0 true false []

Parameters

No parameters.

Linear Calibration (custom.linear_calibration)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input spectrum spectrasherpa://types/SpectralDataset/1.0 true false []
input concentrations spectrasherpa://types/TargetMatrix/1.0 true false []
output default spectrasherpa://types/SpectralDataset/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
concentration_unit select true "ppm" [{"label": "ppm (parts per million)", "value": "ppm"}, {"label": "ppmv (by volume, gas)", "value": "ppmv"}, {"label": "mol/L (molar)", "value": "mol/L"}, {"label": "mg/L", "value": "mg/L"}, {"label": "wt% (weight percent)", "value": "wt%"}, {"label": "vol% (volume percent)", "value": "vol%"}] — {"category": "basic"} Unit of the input concentrations; must exactly match calibration metadata

Noise Injection (custom.noise_injection)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input default spectrasherpa://types/SpectralDataset/1.0 true false []
output default spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
noise_level number true 0.01 — {"min_value": 0.0, "step": 0.001} {"category": "basic"} Absolute standard deviation or a fraction of the input RMS
noise_type select true "relative_rms" ["absolute", "relative_rms"] — {"category": "basic"} Interpret noise_level as an absolute standard deviation or as a fraction of RMS
seed number true 42 — {"max_value": 4294967295, "min_value": 0} {"category": "basic"} Required invocation-local random seed NumPy Generator seeds are bounded to the portable unsigned 32-bit domain.

Saturation Model (custom.saturation_model)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input sensitivity spectrasherpa://types/SpectralDataset/1.0 true false []
input saturation_levels spectrasherpa://types/Array1D/1.0 true false []
input shape_exponents spectrasherpa://types/Array1D/1.0 true false []
input concentrations spectrasherpa://types/TargetMatrix/1.0 true false []
input calibration_minimum spectrasherpa://types/Scalar/1.0 true false []
input calibration_maximum spectrasherpa://types/Scalar/1.0 true false []
output default spectrasherpa://types/SpectralDataset/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
concentration_unit select true "ppm" [{"label": "ppm (parts per million)", "value": "ppm"}, {"label": "ppmv (by volume, gas)", "value": "ppmv"}, {"label": "mol/L (molar)", "value": "mol/L"}, {"label": "mg/L", "value": "mg/L"}, {"label": "wt% (weight percent)", "value": "wt%"}, {"label": "vol% (volume percent)", "value": "vol%"}] — {"category": "basic"} Unit shared by sensitivity coefficients, concentrations, and calibration bounds

System Saturation (custom.system_saturation)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input default spectrasherpa://types/SpectralDataset/1.0 true false []
output default spectrasherpa://types/SpectralDataset/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
s_system number true 2.0 — {"min_value": 0.1} {"category": "basic"} Maximum absorbance the detector can measure
p_system number true 1.0 — {"min_value": 0.1} {"category": "basic"} Shape exponent controlling transition sharpness

Attach Target (data.attach_target)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input X spectrasherpa://types/SpectralDataset/1.0 true false []
input y spectrasherpa://types/TargetMatrix/1.0 false false []
input sample_table spectrasherpa://types/SampleTable/2.0 false false []
output default spectrasherpa://types/SpectralDataset/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
target_source select true "connected_target" [{"label": "Connected Target", "value": "connected_target"}, {"label": "Sample Table Column", "value": "sample_table_column"}] — {"category": "basic"} Use a connected target or explicitly select an aligned sample-table column
target_type select true "continuous" ["continuous", "categorical"] — {"category": "basic"} Type of target variable
target_column text false "" — — {"category": "basic"} Exact sample-table column used when Target Source is Sample Table Column
group_column text false "" — — {"category": "basic"} Optional aligned grouping context; never appended to X or used as a predictor
target_authority json false null — — {"category": "internal"} —

Collection Load (data.collection_load)

Ports

No input ports (source node).

Direction Port Type URI Required Variadic Accepted data roles
output default spectrasherpa://types/SpectralDataset/1.0 true false []
output target spectrasherpa://types/TargetMatrix/1.0 false false []
output exclusions spectrasherpa://types/WorkflowPopulation/1.0 false false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
workflow_exclusions json false null — — {"category": "internal"} —
experiment_id number true null — {"min_value": 1} {"category": "internal"} —
stage select true "raw" ["raw", "preprocessed", "synthetic"] — {"category": "internal"} —
group_title text false "" — — {"category": "internal"} —
asset_id text false "" — — {"category": "internal"} —
selected_file_ids string_list true [] — — {"category": "internal"} —
source_manifest_sha256 text true "" — — {"category": "internal"} —
collection_definition_sha256 text false "" — — {"category": "internal"} —
scientific_collection_sha256 text false "" — — {"category": "internal"} —
target_authority json false null — — {"category": "internal"} —
group_column text false "" — — {"category": "internal"} —
dataset_view_id number false null — — {"category": "internal"} —
dataset_view_sha256 text false "" — — {"category": "internal"} —

File Load (data.file_load)

Ports

No input ports (source node).

Direction Port Type URI Required Variadic Accepted data roles
output default spectrasherpa://types/SpectralDataset/1.0 true false []
output target spectrasherpa://types/TargetMatrix/1.0 false false []
output sample_table spectrasherpa://types/SampleTable/2.0 false false []
output exclusions spectrasherpa://types/WorkflowPopulation/1.0 false false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
workflow_exclusions json false null — — {"category": "internal"} —
experiment_id number true null — {"min_value": 1} {"category": "basic"} Experiment containing the file
file_id number true null — {"min_value": 1} {"category": "basic"} Specific file to load
stage select false "raw" ["raw", "preprocessed", "synthetic"] — {"category": "basic"} Data processing stage
asset_id text false null — — {"category": "basic"} Exact named result inside a multi-asset source, such as OPUS absorbance 'a'; single-asset files do not require it
target_authority json false null — — {"category": "internal"} Exact response column, type, units, and source identity

Filter Samples (data.filter_samples)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input X spectrasherpa://types/SpectralDataset/1.0 true false []
output default spectrasherpa://types/SpectralDataset/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
field select true "sample_label" [{"label": "Sample Label", "value": "sample_label"}, {"label": "Sample Class", "value": "sample_class"}, {"label": "Sample Table", "value": "sample_table"}, {"label": "Sample Index", "value": "sample_index"}, {"label": "Source Inclusion", "value": "source_inclusion"}, {"label": "Intensity", "value": "intensity"}] — {"category": "basic"} Sample metadata field used to select rows. Hosted execution excludes sample-index ranges.
pattern text false "" — — {"category": "basic"} Text, comma-separated values, or regular expression to match. Hosted managed execution admits at most 4096 UTF-8 bytes; exact-value lists admit at most 1024 items and 4096 bytes.
match_mode select true "contains" [{"label": "Contains", "value": "contains"}, {"label": "Equals", "value": "equals"}, {"label": "In List", "value": "in_list"}, {"label": "Regex", "value": "regex"}] — {"category": "basic"} How the pattern is matched against each sample. Hosted managed execution excludes regex.
case_sensitive boolean false false — — {"category": "basic"} Require exact letter case when matching text
invert boolean false false — — {"category": "basic"} Keep samples that do not match the filter
sample_table_column text false "" — — {"category": "basic", "visible_when": {"field": ["sample_table"]}} Metadata column to use when Filter Field is sample_table
intensity_metric select false "max" [{"label": "Mean Intensity", "value": "mean"}, {"label": "Max Intensity", "value": "max"}, {"label": "Min Intensity", "value": "min"}, {"label": "Any Point", "value": "any"}, {"label": "All Points", "value": "all"}] — {"category": "basic", "visible_when": {"field": ["intensity"]}} How each sample spectrum is summarized for intensity filtering
intensity_operator select false "gte" [{"label": "Greater Than", "value": "gt"}, {"label": "Greater Than or Equal", "value": "gte"}, {"label": "Less Than", "value": "lt"}, {"label": "Less Than or Equal", "value": "lte"}, {"label": "Equal", "value": "eq"}, {"label": "Not Equal", "value": "neq"}, {"label": "Between", "value": "between"}] — {"category": "basic", "visible_when": {"field": ["intensity"]}} Numeric comparison used for intensity filtering
intensity_threshold number false 0.0 — — {"category": "basic", "visible_when": {"field": ["intensity"]}} Numeric threshold for intensity filtering
intensity_upper_threshold number false 1.0 — — {"category": "basic", "visible_when": {"field": ["intensity"]}} Upper threshold used by the Between operator
allow_empty boolean false false — — {"category": "advanced"} Allow a zero-sample result. Hosted managed execution requires this option to remain off.
filter_values string_list false null — — {"category": "advanced"} Exact UI-selected labels, classes, or metadata values; null uses the text rule

Load Group (data.load_group)

Ports

No input ports (source node).

Direction Port Type URI Required Variadic Accepted data roles
output default spectrasherpa://types/SpectralDataset/1.0 true false []
output target spectrasherpa://types/TargetMatrix/1.0 false false []
output exclusions spectrasherpa://types/WorkflowPopulation/1.0 false false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
workflow_exclusions json false null — — {"category": "internal"} —
source_mode select false "local_folder" ["local_folder", "experiment_collection"] — {"category": "basic"} Use a local folder or an exact project-owned experiment collection
collection_definition_sha256 text false "" — — {"category": "internal"} Exact scientist-definition digest, empty only when no definition is attached
scientific_collection_sha256 text false "" — — {"category": "internal"} Combined exact source and scientist-definition identity
folder_path text false "" — — {"category": "basic"} Absolute local path; used only in local-folder mode
pattern text false "*.csv" — — {"category": "basic"} Glob pattern for native files (e.g., '.csv', '.jdx', '.npz', or '.mat')
recursive boolean false false — — {"category": "basic"} Scan subdirectories recursively
sort_by select false "filename" ["filename", "numeric_suffix"] — {"category": "basic"} How to order files before concatenation (filename=alphabetical, numeric_suffix=extract numbers from filename)
group_title text false "" — — {"category": "basic"} Title for the grouped dataset (auto-generated from folder name if empty)
asset_id text false "" — — {"category": "basic"} Exact asset identity to select from every file. Required for multi-asset formats; the same identity is applied to all group members.
experiment_id number false null — — {"category": "basic"} Project experiment identity; used only in experiment-collection mode
stage select false "raw" ["raw", "preprocessed", "synthetic"] — {"category": "basic"} Exact persisted experiment stage
source_manifest_sha256 text false "" — — {"category": "internal"} Exact ordered collection digest recorded when the workflow is authored

NIST Library (data.nist_library)

Ports

No input ports (source node).

Direction Port Type URI Required Variadic Accepted data roles
output default spectrasherpa://types/SpectralDataset/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
library_id number true null — — {"category": "basic"} ID of the NIST library entry

Synthetic Curve (data.synthetic_curve)

Ports

No input ports (source node).

Direction Port Type URI Required Variadic Accepted data roles
output default spectrasherpa://types/TimeSeries/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
curve_type select true "sigmoid" ["sigmoid", "gaussian", "linear", "exponential", "step"] — {"category": "basic"} Type of concentration curve
n_points number true 100 — {"min_value": 10} {"category": "basic"} Number of time points
max_concentration number true 1.0 — {"min_value": 0.0} {"category": "basic"} Maximum concentration value
center number false 0.5 — {"min_value": 0.0, "step": 0.1} {"category": "basic"} Center of sigmoid/gaussian (0-1)
width number false 0.1 — {"min_value": 0.01, "step": 0.01} {"category": "basic"} Width of sigmoid/gaussian
duration_seconds number true 1.0 — {"min_value": 1e-12} {"category": "basic"} Physical duration represented by the normalized curve domain

Train/Test Split (data.train_test_split)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input X spectrasherpa://types/SpectralDataset/1.0 true false []
input y spectrasherpa://types/TargetMatrix/1.0 false false []
output X_train spectrasherpa://types/SpectralDataset/1.0 true false []
output X_test spectrasherpa://types/SpectralDataset/1.0 true false []
output y_train spectrasherpa://types/TargetMatrix/1.0 false false []
output y_test spectrasherpa://types/TargetMatrix/1.0 false false []
output train_indices spectrasherpa://types/Array1D/1.0 true false []
output test_indices spectrasherpa://types/Array1D/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
test_size number true 0.2 — {"max_value": 0.99, "min_value": 0.01, "step": 0.05} {"category": "basic", "visible_when": {"split_method": ["random", "stratified", "sequential", "kennard_stone", "duplex", "spxy"]}} Fraction of data to use for testing (0.2 = 20%) A split fraction must remain below 1 so the training partition is non-empty.
split_method select true "random" [{"label": "Random", "value": "random"}, {"label": "Stratified", "value": "stratified"}, {"label": "Sequential", "value": "sequential"}, {"label": "Group Holdout (selected groups)", "value": "group_holdout"}, {"label": "Kennard–Stone", "value": "kennard_stone"}, {"label": "DUPLEX", "value": "duplex"}, {"label": "SPXY (joint X–Y)", "value": "spxy"}] — {"category": "basic"} Published or statistical rule used to construct the partition
held_out_groups string_list false [] — — {"category": "basic", "visible_when": {"split_method": ["group_holdout"]}} Exact values of the bound grouping column to place in the test partition, comma-separated (e.g. MP5). Every other group trains.
validation_goal select true "unseen_specimens" [{"label": "Unseen specimens", "value": "unseen_specimens"}, {"label": "Known specimens across blocks", "value": "known_specimen_cross_block"}] — {"category": "basic", "visible_when": {"split_method": ["group_holdout"]}} Name whether the holdout tests new specimens or repeat measurements of known specimens.
random_seed number false 42 — {"max_value": 4294967295, "min_value": 0, "step": 1} {"category": "basic", "visible_when": {"split_method": ["random", "stratified"]}} Seed for reproducible random splits NumPy RandomState seeds are unsigned 32-bit integers.
distance_metric select false "euclidean" ["euclidean", "mahalanobis"] — {"category": "advanced", "visible_when": {"split_method": ["kennard_stone", "duplex"]}} Sample dissimilarity for Kennard–Stone and DUPLEX
n_components number false 0 — {"max_value": 10000, "min_value": 0, "step": 1} {"category": "advanced", "visible_when": {"split_method": ["kennard_stone", "duplex"]}} Optional centered PCA projection before Kennard–Stone or DUPLEX distances (0 = raw X) The runtime additionally limits components to the smaller data dimension.

Deploy Input (deploy.input)

Ports

No input ports (source node).

Direction Port Type URI Required Variadic Accepted data roles
output default spectrasherpa://types/SpectralDataset/1.0 true false []
output target spectrasherpa://types/TargetMatrix/1.0 false false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
stream_name text true "sample" — — {"category": "basic"} Unique portable identifier for this external data stream
schema_version select true "spectrasherpa.deploy-input/1" ["spectrasherpa.deploy-input/1"] — {"category": "advanced"} Closed external scientific-dataset request schema

Deploy Output (deploy.output)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input default spectrasherpa://types/Any/1.0 true false []
output default spectrasherpa://types/DeploymentResponse/1.0 true false []

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
output_format select true "json" ["json", "csv", "plain_text"] — {"category": "basic"} Exact response representation
key_value_separator select true "=" ["=", ":", "\t"] — {"category": "advanced"} Closed separator for plain-text mappings
end_of_message_tag select true "\n" ["", "\n", "\r\n"] — {"category": "advanced"} Closed line ending for plain-text responses

Bilinear Mixture (synthesis.blend)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input pure_spectra spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]
input concentrations spectrasherpa://types/TargetMatrix/1.0 true false []
output default spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]

Parameters

No parameters.

HITRAN Cross-section Response (synthesis.hitran_response)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input default spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]
output default spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
pathlength_cm number true 1.0 — {"min_value": 0.0} {"category": "basic"} Strictly positive optical pathlength in centimetres
temperature_k number true 293.0 — {"min_value": 0.0} {"category": "basic"} Strictly positive absolute temperature
pressure_atm number true 1.0 — {"min_value": 0.0} {"category": "basic"} Strictly positive absolute pressure

Merge Pure Responses (synthesis.merge)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input default spectrasherpa://types/SpectralDataset/1.0 true true ["X_spectra"]
output default spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]

Parameters

No parameters.

NIST Quant IR Response (synthesis.nist_quant_ir_response)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input default spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]
output default spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
pathlength_cm number true 1.0 — {"min_value": 0.0} {"category": "basic"} Strictly positive optical pathlength in centimetres

PPM to Fraction (synthesis.ppm_fraction)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input default spectrasherpa://types/TargetMatrix/1.0 true false []
output default spectrasherpa://types/TargetMatrix/1.0 true false []

Parameters

No parameters.

Species (synthesis.species)

Ports

Direction Port Type URI Required Variadic Accepted data roles
input default spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]
output default spectrasherpa://types/SpectralDataset/1.0 true false ["X_spectra"]

Parameters

Parameter Editor type Required Default Options / enum Bounds / step Visibility / category Description
species_name text true "Species" — — {"category": "basic"} Non-empty chemical or component identity
molar_absorptivity number false null — {"min_value": 0.0} {"category": "basic"} Optional finite positive reference molar absorptivity