{
  "id": "org.apache.spark.ml.ibm.transformers.Sample",
  "icon": "images/transformationspark.svg",
  "label": {
    "default": "Sample Rows"
  },
  "description": {
    "default": "Perform a simple sample operation on the data, with or without replacement"
  },
  "parameter_info": [
    {
      "parameter_ref": "withReplacement",
      "label": {
        "default": "Sample"
      },
      "description": {
        "default": "Indicate that sampling be performed with replacement"
      },
      "control": "radioset",
      "resource_key": "withReplace",
      "orientation": "vertical"
    },
    {
      "parameter_ref": "samplingRatio",
      "label": {
        "default": "Sample Ratio"
      },
      "description": {
        "default": "Fraction of rows to include in sample"
      }
    },
    {
      "parameter_ref": "useSamplingSize",
      "label": {
        "sample-size.label": "Use maximum sample size"
      }
    },
    {
      "parameter_ref": "samplingSize",
      "label": {
        "default": "Maximum sample size"
      },
      "description": {
        "default": "Maximum number of rows in the sample"
      }
    },
    {
      "parameter_ref": "useSamplingSeed",
      "label": {
        "resource_key": "sample-seed.label"
      }
    },
    {
      "parameter_ref": "samplingSeed",
      "label": {
        "default": "Seed"
      },
      "description": {
        "default": "Seed for the sample random number generator"
      },
      "number_generator": {
        "label": {
          "default": "Generate",
          "resource_key": "numberGenerator"
        },
        "range": {
          "min": 1000000,
          "max": 9999999
        }
      }
    }
  ],
  "group_info": [
    {
      "id": "settings",
      "label": {
        "default": "Settings"
      },
      "type": "panels",
      "group_info": [
        {
          "id": "basic-settings",
          "type": "controls",
          "parameter_refs": [
            "withReplacement",
            "samplingRatio"
          ]
        },
        {
          "id": "use-sampling-size",
          "type": "controls",
          "parameter_refs": [
            "useSamplingSize"
          ]
        },
        {
          "id": "sample-size-panel",
          "type": "panels",
          "group_info": [
            {
              "id": "sample-size-control",
              "type": "controls",
              "parameter_refs": [
                "samplingSize"
              ]
            }
          ]
        },
        {
          "id": "use-sampling-seed",
          "type": "controls",
          "parameter_refs": [
            "useSamplingSeed"
          ]
        },
        {
          "id": "sample-seed-panel",
          "type": "panels",
          "group_info": [
            {
              "id": "sample-seed-control",
              "type": "controls",
              "parameter_refs": [
                "samplingSeed"
              ]
            }
          ]
        }
      ]
    }
  ]
}
