{% extends "generator/index.html" %} {% from "generator/_macros.html" import info, section, number_field, range_field, slider_field %} {% block title %}Generate random feature models{% endblock %} {% block wizard_content %} {% if errors.get('global') %}
{{ errors['global'] }}
{% endif %}
{{ icon('git-branch', size=24, class_='gen-alert-icon') }}
Shape of the feature tree: how many features, how deep, and how often each kind of parent–child relation appears. The feature-cardinality and group-cardinality blocks only show if you enabled them in the previous step.
{{ section('Features', 'Size of the tree.') }} {{ range_field('num_features_min', 'num_features_max', 'Number of features', 'Min / Max number of features each generated model will have.', values, errors, default_min=10, default_max=50, hard_min=1) }} {{ slider_field('max_tree_depth', 'Maximum tree depth', 'Upper bound for the tree depth. Cannot exceed the maximum number of features.', values, errors, default=5, min=1, max=50, max_from='num_features_max') }}
{{ section('Parent–child distribution', 'How often each kind of parent/child relation appears. Drag the handles OR type exact values — both stay in sync and always add up to 1.') }}
{% if values.get('group_cardinality') %}
{% else %} {% endif %}
{% if errors.get('rel_dist_total') %}
{{ errors['rel_dist_total'] }}
{% endif %}
{% if values.get('feature_cardinality') %}
Feature cardinality
{{ info('Settings for the Feature cardinality minor level. How likely each non-root feature is to repeat and the allowed instance range.') }}
{% if errors.get('prob_fc') %}
{{ errors['prob_fc'] }}
{% endif %}
{% if errors.get('min_feature_cardinality') %}
{{ errors['min_feature_cardinality'] }}
{% endif %}
{% if errors.get('max_feature_cardinality') %}
{{ errors['max_feature_cardinality'] }}
{% endif %}
Min must be ≤ Max.
{% endif %} {% if values.get('group_cardinality') %}
Group cardinality
{{ info('Settings for the Group cardinality minor level. The share in the slider above controls how often such groups appear; this card controls their size.') }}
{{ range_field('group_cardinality_min', 'group_cardinality_max', 'Children selectable per group', 'Minimum and maximum number of children selectable inside a single group-cardinality group.', values, errors, default_min=1, default_max=6, hard_min=1, hard_max=20) }}
{% endif %}
{% endblock %} {% block wizard_scripts %} {% endblock %}