Registry / ai-ml / xpflow

xpflow

JSON →
library0.8pypypi✓ verified 80d ago

A lightweight Python library for representing and managing machine learning experiments with class-based definitions. Current version 0.8, updated infrequently.

pip install xpflow
INSTALL
IMPORT
SIG · XPFLOW
X
xpflow
ai-mlpythonv0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Xp
from xpflow import Xp
from xpflow import Experiment
Xpl
from xpflow import Xpl
Catch
from xpflow import Catch

Define an experiment as a class inheriting from Experiment, then call run() to execute.

from xpflow import Experiment, Xp, run class MyExperiment(Experiment): hyperparam1: int = 10 hyperparam2: str = "default" def run(self): return self.hyperparam1 * len(self.hyperparam2) if __name__ == "__main__": xp = MyExperiment() result = run(xp) print(result)
Debug
Known issues
gotchaExperiment class attributes must be type-annotated; untyped attributes may be ignored or cause errors.
fix
Always annotate fields with types (e.g., int, str, float).
affects: >=0.3
gotchaThe run() function expects an instance of Experiment, not a class. Passing the class itself will raise an AttributeError.
fix
Instantiate the experiment class before passing to run: run(MyExperiment())
affects: >=0.3
deprecatedThe 'sequential' decorator introduced in v0.3 was removed in v0.8. Code using it will break.
fix
Remove @sequential decorator; use class-based inheritance instead.
affects: 0.3 to 0.7
Upgrade
Version history
0.8latest on PyPI · released Feb 3, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
57 hits · last 30 days
node
50
OpenAI (training)
1
Resources
xpflow — pip install xpflow · libregistry