TGraphX › Insights › Stability Labels in Research Software: Why Beta and Experimental Matter
← Back to Insights

Stability Labels in Research Software: Why Beta and Experimental Matter

Topic: APIs, tooling and research-engineering workflow

Research software often changes while people are building on it, and users can find out the hard way, when an upgrade breaks a reproduction script. Stability labels are how a project communicates that risk in advance. TGraphX has them at two levels: one label for the whole package, and per-API labels for individual names. This note shows how to read both and what they do not tell you.

Examples tested with TGraphX 1.5.1.

The package label: PyPI development status classifiers

A Python package can declare its development status with a PyPI "trove" classifier. You can read it from the installed distribution:

python
from importlib.metadata import metadata

meta = metadata("tgraphx")
print(meta["Version"], meta["Requires-Python"])
print([c for c in meta.get_all("Classifier") if c.startswith("Development Status")])
# 1.5.1 >=3.10
# ['Development Status :: 4 - Beta']

PyPI defines the names of the levels. The descriptions in the second column below are the usual convention, not a PyPI definition:

Classifier Usual reading
1 - Planning Concept or design phase
2 - Pre-Alpha Early development, incomplete
3 - Alpha Core functionality exists; interface unsettled
4 - Beta Usable; interface may still change
5 - Production/Stable Interface changes are rare and announced
6 - Mature Long-term, established
7 - Inactive No longer actively developed

A classifier is the authors' own assessment. PyPI does not test it, and it is not a guarantee that the code does what you need.

The per-API labels: api_status

A single package label is coarse. TGraphX keeps a registry that assigns stable, beta or experimental to individual names:

python
import tgraphx as tgx

for name in ["Graph", "TensorGraphSAGELayer", "ConvMessagePassing", "fit", "NeighborLoader",
             "validate_graph", "save_tgraphx", "HeteroGraph", "ComplExModel"]:
    print(f"{name:22s} {tgx.api_status(name)}")
print({level: len(names) for level, names in tgx.public_api().items()})
# Graph                  stable
# TensorGraphSAGELayer   stable
# ConvMessagePassing     stable
# fit                    stable
# NeighborLoader         beta
# validate_graph         beta
# save_tgraphx           beta (alias of save)
# HeteroGraph            experimental
# ComplExModel           experimental
# {'stable': 40, 'beta': 62, 'experimental': 26, 'deprecated': 0}

api_status needs a name, and public_api() returns the whole registry grouped by level. The registry is maintained by hand and does not cover everything. Some real, importable APIs are simply not listed, and asking for them raises KeyError:

python
for name in ["GraphClassifier", "build_model", "MLflowLogger"]:
    assert hasattr(tgx, name)
    try:
        tgx.api_status(name)
    except KeyError as err:
        print(err)

"Not listed" means you have no label from the registry. It does not mean the name is stable, and it does not mean it is experimental. For these three, the stability document described below does give a label (Stable).

What the levels promise

The project's API stability document describes the intent of each level:

Level Stated intent
Stable No breaking changes in v1.x; changing one needs v2.x or an explicit deprecation cycle
Beta Tested and documented; may expand but not break
Experimental Signatures and defaults may change between minor releases
Optional Needs an optional dependency or an explicit download

For Beta, the document says "within a minor version" in one place and "within the v1.x series" in another. If it matters to you, plan for the narrower promise and pin the version.

The sources do not always agree. In 1.5.1 the document lists ComplExModel, RotatEModel and GeneticAlgorithmOptimizer as Beta, while api_status reports all three as experimental. The README's capability map is a third source: it labels the experiment manager and dashboard Beta, where the document lists them as Stable. When sources disagree, act on the more cautious one. The area-by-area label comparison sets the three side by side.

A label describes the interface, not the training behaviour

A name can keep its label, and existing calls can keep running, while a default changes. TGraphX 1.5.0 changed the default dropout of ConvMessagePassing (labelled stable) and CNNEncoder from an implicit 0.3 to 0.0. Code that omits the argument now gets a DropoutDefaultChangeWarning:

python
import warnings
from tgraphx import ConvMessagePassing, DropoutDefaultChangeWarning

with warnings.catch_warnings(record=True) as caught:
    warnings.simplefilter("always")
    ConvMessagePassing((3, 8, 8), (8, 8, 8))
assert any(issubclass(w.category, DropoutDefaultChangeWarning) for w in caught)

# Say what you mean: 0.3 restores the dropout that releases up to 1.4.2 applied
legacy_layer = ConvMessagePassing((3, 8, 8), (8, 8, 8), dropout_prob=0.3)

The practical lesson is to pass the hyperparameters that matter to your results explicitly, whatever the label of the class.

Version notes in docstrings

Some modules carry their own note, such as Stability: Beta (v0.5.0+) in tgraphx.calibration or Stability: Beta (v0.4.1+) in tgraphx.reproducibility. These are historical notes attached to a module. They are not the version you have installed (tgraphx.__version__), and they are not the same source as the registry. They can also disagree with the stability document: it lists calibration under Experimental despite the module's Beta note, so treat calibration as Experimental.

Why pinning versions matters

If you publish a paper or release code that depends on TGraphX, work through an open-source readiness checklist and pin the version:

# requirements.txt
tgraphx==1.5.1

Or in a conda environment file:

yaml
dependencies:
  - python=3.12
  - pip
  - pip:
    - tgraphx==1.5.1

Without a pin, a collaborator who installs your code months later may get a different release. Pinning TGraphX does not pin PyTorch (the package only requires torch>=1.13), so pin that too, or save the output of pip freeze with your results.

A practical workflow for Beta research software

Before adopting a feature:

  1. Check tgx.api_status(name) and the stability document.
  2. Confirm the name exists in your installed version.
  3. Write a small test that exercises it with data shaped like yours.

Before upgrading:

  1. Read the changelog, including the "Changed" entries, not only "Added".
  2. Run your tests and look at new warnings.
  3. If you have no tests, run a small end-to-end experiment before and after.

Before publishing results:

  1. Pin the versions in your requirements file.
  2. State them in the README.
  3. Save the environment next to the results. write_experiment_config takes the path first, then a dictionary:
python
from tgraphx import env_report, write_experiment_config

info = env_report(include_hardware=True)
write_experiment_config("logs/env.json",
                        {**info, "notes": "pin tgraphx==1.5.1 to reproduce"})

What stability labels are not

Stability labels are not quality labels. A Beta package can be well tested and well documented, and a package labelled Production/Stable can still have bugs. The labels speak about how likely the interface is to change.

For the history of TGraphX's aliases and compatibility work, see API stability and aliases.