Class ChiSqSelectorModel

Object
org.apache.spark.ml.PipelineStage
org.apache.spark.ml.Transformer
org.apache.spark.ml.Model<T>
org.apache.spark.ml.feature.SelectorModel<ChiSqSelectorModel>
org.apache.spark.ml.feature.ChiSqSelectorModel
All Implemented Interfaces:
Serializable, org.apache.spark.internal.Logging, org.apache.spark.ml.feature.SelectorParams, Params, HasFeaturesCol, HasLabelCol, HasOutputCol, Identifiable, MLWritable

public final class ChiSqSelectorModel extends org.apache.spark.ml.feature.SelectorModel<ChiSqSelectorModel>
Model fitted by ChiSqSelector.
See Also:
  • Method Details

    • read

      public static MLReader<ChiSqSelectorModel> read()
    • load

      public static ChiSqSelectorModel load(String path)
    • uid

      public String uid()
      Description copied from interface: Identifiable
      An immutable unique ID for the object and its derivatives.
      Specified by:
      uid in interface Identifiable
      Overrides:
      uid in class org.apache.spark.ml.feature.SelectorModel<ChiSqSelectorModel>
      Returns:
      (undocumented)
    • selectedFeatures

      public int[] selectedFeatures()
      Overrides:
      selectedFeatures in class org.apache.spark.ml.feature.SelectorModel<ChiSqSelectorModel>
    • setFeaturesCol

      public ChiSqSelectorModel setFeaturesCol(String value)
      Overrides:
      setFeaturesCol in class org.apache.spark.ml.feature.SelectorModel<ChiSqSelectorModel>
    • setOutputCol

      public ChiSqSelectorModel setOutputCol(String value)
      Overrides:
      setOutputCol in class org.apache.spark.ml.feature.SelectorModel<ChiSqSelectorModel>
    • transformSchema

      public StructType transformSchema(StructType schema)
      Description copied from class: PipelineStage
      Check transform validity and derive the output schema from the input schema.

      We check validity for interactions between parameters during transformSchema and raise an exception if any parameter value is invalid. Parameter value checks which do not depend on other parameters are handled by Param.validate().

      Typical implementation should first conduct verification on schema change and parameter validity, including complex parameter interaction checks.

      Overrides:
      transformSchema in class org.apache.spark.ml.feature.SelectorModel<ChiSqSelectorModel>
      Parameters:
      schema - (undocumented)
      Returns:
      (undocumented)
    • copy

      public ChiSqSelectorModel copy(ParamMap extra)
      Description copied from interface: Params
      Creates a copy of this instance with the same UID and some extra params. Subclasses should implement this method and set the return type properly. See defaultCopy().
      Specified by:
      copy in interface Params
      Specified by:
      copy in class Model<ChiSqSelectorModel>
      Parameters:
      extra - (undocumented)
      Returns:
      (undocumented)
    • write

      public MLWriter write()
      Description copied from interface: MLWritable
      Returns an MLWriter instance for this ML instance.
      Returns:
      (undocumented)
    • toString

      public String toString()
      Specified by:
      toString in interface Identifiable
      Overrides:
      toString in class Object