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

Delete the incorrect setWeightCol method in LinearSVCModel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.0, 2.3.0, 2.4.0, 3.0.0
    • 2.3.4, 2.4.4, 3.0.0
    • ML
    • Spark 2.2 accidentally introduced the method LinearSVCModel.setWeightCol. This method works incorrectly, too. It is removed in 3.0.

    Description

      1, the weightCol is only used in training, and should not be set inĀ  LinearSVCModel;

      2, the method 'def setWeightCol(value: Double): this.type = set(threshold, value)' is wrongly defined, since value should be a string and weightCol instead of threshold should be set.

      Attachments

        Activity

          People

            podongfeng Ruifeng Zheng
            podongfeng Ruifeng Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: