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

Uploaded Python 3

File details

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

File metadata

  • Download URL: flamapy_fm-2.6.0.dev12.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.dev12.tar.gz
Algorithm Hash digest
SHA256 5c5e07ecdbb32ec1cdd8a88b48544e397d4dba969cbbf32323936df4f78ef9b0
MD5 be6acb2deb5cf036b207b9ceb6521cb0
BLAKE2b-256 6a5be4fe5cf2a9700aef9ad97019c03b3ff1718df447c54d9c98c81dfafef6ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flamapy_fm-2.6.0.dev12-py3-none-any.whl
Algorithm Hash digest
SHA256 1d6b42122b7ddf502437a409136ca6d78f0d8b1e5124738c2d60e9aa54a7812d
MD5 18e96dfbb4f944983297136b121f4d93
BLAKE2b-256 282a1eb5a510bbc4a2ff786a258e1fad623611b8de960a0ef28b1d56cad230d7

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