flamapy-fm is a plugin to Flamapy module
Project description
flamapy-fm
The feature model metamodel plugin for flamapy: the feature model classes plus readers and writers for many formats (UVL, FeatureIDE, Glencoe, AFM, SPLOT, JSON, …).
Documentation: https://docs.flamapy.org/framework/plugins/feature_model_plugin
Installation
pip install flamapy-fm
Operations
Beyond the metrics/analysis operations (core/dead features, atomic sets, branching factor, …), this plugin includes a random feature-model generator:
GenerateRandomFeatureModel— builds a random syntheticFeatureModelobject directly (random tree of mandatory/optional/or/alternative groups plus random cross-tree constraints; an optionalvoidflag makes it unsatisfiable). Useful for benchmarking, testing, and building corpora for learning-based operations. Serialize it to UVL (or any format) with the writer transformations if you need text.
from flamapy.metamodels.fm_metamodel.operations import GenerateRandomFeatureModel
op = GenerateRandomFeatureModel()
op.set_num_features(20)
op.set_max_constraints(5)
op.set_seed(0)
fm = op.execute().get_result() # -> FeatureModel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flamapy_fm-2.6.0.dev11.tar.gz.
File metadata
- Download URL: flamapy_fm-2.6.0.dev11.tar.gz
- Upload date:
- Size: 60.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ff9e1a415836908957c95918fc35de8a978c3447e6aaf90b202c357b0df5782
|
|
| MD5 |
a9f33a138d86716553e9fa2e78b7aad1
|
|
| BLAKE2b-256 |
a44aa225c1849ea0cb9bc38db185edd063726ab5159df749c2359ed5cec64a17
|
File details
Details for the file flamapy_fm-2.6.0.dev11-py3-none-any.whl.
File metadata
- Download URL: flamapy_fm-2.6.0.dev11-py3-none-any.whl
- Upload date:
- Size: 88.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad9efa744aabc29f4e0563989b6096d4dd320215f6ee243d7c331184c5c83a89
|
|
| MD5 |
a51380fc5ff45752389a4320d049290b
|
|
| BLAKE2b-256 |
683f6fde46f9877b165d122eb2d2cdedf84b704c16dc418dd7a8c8f5f21e98bb
|