chemspacecopilot GTM manifold β chembed latent space
A Generative Topographic Mapping manifold fitted on chembed latent vectors, for use with ChemSpaceCopilot.
This manifold is not interchangeable with the LSTM one
The companion manifold in
axelrolov/chemspacecopilot-gtm
is fitted on deepchemography LSTM autoencoder embeddings. Both latent spaces are
256-dimensional, so projecting one model's vectors onto the other's manifold
raises no error and returns meaningless coordinates. Encoding the same molecule
with both engines gives two (1, 256) vectors whose cosine similarity is 0.13:
the same size, and otherwise unrelated.
Use this manifold only with descriptors produced by chembed
(3BioCompBio/chembed-default). The pickle carries a descriptor_backend
attribute set to chembed, which ChemSpaceCopilot checks before projecting.
Provenance
| Encoder | 3BioCompBio/chembed-default |
| Training set | DeepChemography 9822f5c, data/gtm_frameset_training.csv |
| Frameset SHA-256 | 60f43a73e072260e161714d52d8a63367ad6a8200b1d3ecd0d11603ac96d314c |
| Molecules | 50,000 |
| Unknown SELFIES tokens substituted | 0 |
| Shannon entropy | 0.9724 |
Hyperparameters are taken verbatim from the published LSTM manifold's recorded
attributes and deliberately not re-tuned, so the two maps differ only by the
latent space they describe: 900 nodes, 225 basis functions, basis width 1,
regularization 100, 200 iterations, standardize=False, pca_scale=True,
square topology, 2 components.
Fitted on raw descriptors, matching how ChemSpaceCopilot's descriptor path
projects (gtm.project(X) with no external scaler).
Caveat
A 2D manifold cannot carry a 256D latent faithfully: reconstructing a molecule
through this map leaves a relative error near 0.6. Decoded node centres are
regional summaries, not neighbours of any particular compound. In a controlled
test on 2,212 sEH compounds, decoding the most active nodes did not
outperform simply perturbing the latents of the most active compounds; see the
project's results/chembed-latent-gtm report.
Loading
from cs_copilot.tools.chemography.gtm_operations import load_gtm_model
gtm = load_gtm_model("GTM_manifold_chembed_900_225.pkl.gz")
The file is a gzipped dill pickle of a chemographykit.gtm.GTM. Unpickling
executes code; load it only from a source you trust.
License
MIT, matching ChemSpaceCopilot.