Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-16151

Make generated params non-final

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.0.0
    • None
    • MLlib

    Description

      Currently, all generated param instances are final. There are several scenarios where we need them to be non-final:

      1. We don't have a guideline about where we should document the param doc. Some were inherited from the generated param traits directly, while some were documented in the setters if we want to make changes. I think it is better to have all documented in the param instances, which appear at the top the generated API doc. However, this requires inherit the param instance.

      /**
       * new doc
       */
      val param: Param = super.param
      

      We can use `@inherit_doc` if we just want to add a few words, e.g., the default value, to the inherited doc.

      2. We might want to update the embedded doc in the param instance.

      Opened this JIRA for discussion.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mengxr Xiangrui Meng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment