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.dev11.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.dev11-py3-none-any.whl (88.8 kB view details)

Uploaded Python 3

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

Hashes for flamapy_fm-2.6.0.dev11.tar.gz
Algorithm Hash digest
SHA256 0ff9e1a415836908957c95918fc35de8a978c3447e6aaf90b202c357b0df5782
MD5 a9f33a138d86716553e9fa2e78b7aad1
BLAKE2b-256 a44aa225c1849ea0cb9bc38db185edd063726ab5159df749c2359ed5cec64a17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flamapy_fm-2.6.0.dev11-py3-none-any.whl
Algorithm Hash digest
SHA256 ad9efa744aabc29f4e0563989b6096d4dd320215f6ee243d7c331184c5c83a89
MD5 a51380fc5ff45752389a4320d049290b
BLAKE2b-256 683f6fde46f9877b165d122eb2d2cdedf84b704c16dc418dd7a8c8f5f21e98bb

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