Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-6561

OutputField/Local Transformations in scope for MiningModels

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None

      In PMML 4.4, inside MiningModels, OutputFields of a previous segments may be used as Input for following segments.

      See http://dmg.org/pmml/v4-4-1/FieldScope.html

      "Model elements contain Outputs which externalize the variety of model results that can be produced from the model element. Outputs are generally local to a model, except when the model is used in a model chain as part of a MiningModel. In a model chain, all Outputs from the segment models become part of the enclosing mining model scope. As a result, the Outputs of one segment model may be used as an input to any of the subsequent segment models."

      e.g.

       <Segment id="3" weight="1">
                      ....
                          <Output>
                              <OutputField name="probablity_2" optype="continuous" dataType="double" feature="predictedValue"/>
                          </Output>
      			....
      <Segment id="4" weight="1">
                     ...
                          <MiningSchema>
                             ...
                              <MiningField name="probablity_2" usageType="active"/>
                         ...
      

      Fix inside
      KiePMMLModelCodegenUtils.init ->
      ModelUtils.convertToKieMiningFieldList

      Similarly, LocalTransformations of a "parent" MiningModel" should be available to nested models.

      See: http://dmg.org/pmml/v4-4-1/FieldScope.html

              gcardosi Gabriele Cardosi (Inactive)
              gcardosi Gabriele Cardosi (Inactive)
              Jiri Petrlik Jiri Petrlik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: