Uploaded image for project: 'SW'
  1. SW-850

Expose methods to get input/output names in H2OMOJOPipelineModel

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.31, 2.2.17, 2.3.6
    • Component/s: None
    • Labels:
      None
    • CustomerVisible:
      No
    • Sprint:

      Description

      For Scala/Py we need method to get names of output /input columns. And also to get names of output classes for binomial and multinomial problems.

      Something like (this is current workaround in PySparkling):

      ```
      def get_input_names(mojo):
      meta_input = mojo._java_obj.getOrCreateModel().getInputMeta()
      return meta_input.getColumnName(idx) for idx in range(0, meta_input.size())

      def get_output_names(mojo):
      meta_output = mojo._java_obj.getOrCreateModel().getOutputMeta()
      return meta_output.getColumnName(idx) for idx in range(0, meta_output.size())```

        Attachments

          Activity

            People

            • Assignee:
              Kuba Jakub Hava
              Reporter:
              michal Michal Malohlava
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: