Skip to main content

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 synthetic FeatureModel object directly (random tree of mandatory/optional/or/alternative groups plus random cross-tree constraints; an optional void flag 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flamapy_fm-2.6.0.tar.gz (60.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flamapy_fm-2.6.0-py3-none-any.whl (88.7 kB view details)

Uploaded Python 3

File details

Details for the file flamapy_fm-2.6.0.tar.gz.

File metadata

  • Download URL: flamapy_fm-2.6.0.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

Hashes for flamapy_fm-2.6.0.tar.gz
Algorithm Hash digest
SHA256 202f2364bc3f2111f0e4a629dc11c684792892c101570dfb9ca014fbc95db11b
MD5 1cf3caf6ee63f0144eef429bd50b5c86
BLAKE2b-256 f800d64b8d71fe276295932bf3972bcf2ed36c1e55c0da5217f00a947d5f92ae

See more details on using hashes here.

File details

Details for the file flamapy_fm-2.6.0-py3-none-any.whl.

File metadata

  • Download URL: flamapy_fm-2.6.0-py3-none-any.whl
  • Upload date:
  • Size: 88.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for flamapy_fm-2.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b7fd51f6b0554ba5de9e35e35f15702ffa92ad13ab18a70deeaa80236686c37
MD5 71c0b637e3283d535e1e4b0965cb8c48
BLAKE2b-256 650251e9aad929100fda48bd4b629cd2fa3c0419ea9bf67f72a8d95064ee254b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page