stringified (number[] | null)[], as returned in features by extractFeatures().
a JSON string shaped { matches: (SpeciesMatch | null)[] }, one entry per input entry; null for a null or unusable vector.
stringified FlowerClassifier.toJson(), or "" to use the classifier embedded in this wasm binary.
stringified fe::Environment, e.g. {"humidity":0.5,"temperature":20,"altitude":0,"terrainType":0}
a JSON string shaped { match: { x, y, distance } } (a SpeciesMatch as in index.ts), or { match: null } if genome is malformed/unusable -- not an error.
Classifies every flower of a {"Generation": [...]} batch in one call (classifier parsed once).
stringified FlowerClassifier.toJson(), or "" to use the classifier embedded in this wasm binary.
stringified fe::Environment used for every flower.
a JSON string shaped { matches: (SpeciesMatch | null)[] }, one entry per input flower in order; null as in classifyFlower().
a base64-encoded PNG data URL of the rendered genome.
a base64-encoded PNG data URL of the rendered genome's petal layer (no stem).
a base64-encoded PNG data URL of the rendered genome's petals (no stem).
Measures how well a classifier fits a {"Generation": [...]} batch.
stringified FlowerClassifier.toJson(), or "" to use the classifier embedded in this wasm binary.
stringified fe::Environment used for every flower.
a JSON string shaped like SOMEvaluation in index.ts. Throws if no flower in the batch is usable.
Like evaluateClassifier() over already-extracted vectors (null entries are dropped). Throws if none is usable.
Extracts every flower's feature vector once (rendering is the expensive part), so that the feature-based functions below can run without rendering the flowers again.
a JSON string shaped { features: (number[] | null)[] }, one entry per flower in order; null for a flower that can't be extracted.
Fine-tunes an existing classifier further, in place, on a new {"Generation": [...]} batch.
stringified FlowerClassifier.toJson(), or "" to start from the classifier embedded in this wasm binary.
conditions THIS batch was grown under -- not necessarily what classifierJson was originally trained under.
the updated classifier's JSON directly -- NOT wrapped in an envelope object.
Fine-tunes on already-extracted vectors (null entries are dropped) and returns the new classifier JSON. Calling it once per epoch with a growing epochOffset (and the same totalEpochs) is one decay, so the caller can show progress.
epochs of the decay already done by earlier calls; 0 starts a decay.
epochs of the whole decay; 0 means epochOffset + epochs.
the short git commit hash this wasm binary was built from, or "unknown" -- mirrors fe::commitHash().
the value embind hands you in a catch block around any of the calls above.
a JSON string shaped { stats: FlowerStats } -- FEService unwraps .stats for you.
the classifier embedded in this wasm binary, as-is (fe::resources::trainedSOM).
the semver this wasm binary was built from, e.g. "4.0.0" -- mirrors fe::version().
getVersion() + "+" + getCommitHash(), e.g. "4.0.0+a1b2c3d" -- mirrors fe::versionString().
flowerParamsJson: stringified fe::FlowerParameters, e.g. {sex, useNormals, useEmissive}; default ""
OptionalflowerParamsJson: stringstringified {"Flower": {"dna": {"genomes": [...]}, "petals": {...}}}, feed into reproduce/mutate/draw*
Trains a fresh classifier from a whole {"Generation": [...]} batch (one call across the boundary).
stringified fe::SOMTrainingConfig, e.g. {"width":5,"height":5,"epochs":100,"baseLR":0.5,"baseRadius":2.5}
the trained classifier's JSON directly (see FlowerClassifier.toJson()) -- NOT wrapped in an envelope object.
stringified FlowerClassifier.toJson(), or "" for the embedded classifier.