spark API reference
400 public APIs from spark (apache/spark) — 101 classes, 6 functions, 293 methods. Signatures extracted by static analysis of the actual source.
Repository: apache/spark
| Kind | Count |
|---|---|
| Classes | 101 |
| Functions | 6 |
| Methods | 293 |
API list
class
dev.merge_spark_pr.TitleStructured PR title: SPARK refs, component tags, and body.
method
dev.merge_spark_pr.Title.parse(raw:str) -> 'Title'Parse a PR title string into a :class:`Title`.
func
dev.pr_merge_status.git(*check=True, *args)Runs a git command.
class
dev.sparktestsupport.modules.ModuleA module is the basic abstraction in our test runner script.
method
python.pyspark.accumulators.Accumulator.add(term:T) -> NoneAdds a term to this accumulator's value
method
python.pyspark.accumulators.Accumulator.value() -> TGet the accumulator's value; only usable in driver program
method
python.pyspark.cloudpickle.cloudpickle.Pickler.save_global(obj, name=None, pack=struct.pack)Main dispatch method.
func
python.pyspark.cloudpickle.cloudpickle.instance(cls)Create a new instance of a class.
class
python.pyspark.conf.SparkConfConfiguration for a Spark application.
method
python.pyspark.conf.SparkConf.contains(key:str) -> boolDoes this configuration contain a given key?
method
python.pyspark.conf.SparkConf.getAll() -> List[Tuple[str, str]]Get all values as a list of key-value pairs.
method
python.pyspark.conf.SparkConf.set(key:str, value:str) -> 'SparkConf'Set a configuration property.
method
python.pyspark.conf.SparkConf.setAll(pairs:List[Tuple[str, str]]) -> 'SparkConf'Set multiple parameters, passed as a list of key-value pairs.
method
python.pyspark.conf.SparkConf.setAppName(value:str) -> 'SparkConf'Set application name.
method
python.pyspark.conf.SparkConf.setIfMissing(key:str, value:str) -> 'SparkConf'Set a configuration property, if not already set.
method
python.pyspark.conf.SparkConf.setMaster(value:str) -> 'SparkConf'Set master URL to connect to.
method
python.pyspark.conf.SparkConf.setSparkHome(value:str) -> 'SparkConf'Set path where Spark is installed on worker nodes.
method
python.pyspark.core.broadcast.Broadcast.destroy(blocking:bool=False) -> NoneDestroy all data and metadata related to this broadcast variable.
method
python.pyspark.core.broadcast.Broadcast.dump(value:T, f:BinaryIO) -> NoneWrite a pickled representation of value to the open file or socket.
method
python.pyspark.core.broadcast.Broadcast.load(file:BinaryIO) -> TRead a pickled representation of value from the open file or socket.
method
python.pyspark.core.broadcast.Broadcast.unpersist(blocking:bool=False) -> NoneDelete cached copies of this broadcast on the executors.
method
python.pyspark.core.broadcast.Broadcast.value() -> TReturn the broadcasted value
class
python.pyspark.core.context.SparkContextMain entry point for Spark functionality.
method
python.pyspark.core.context.SparkContext.addArchive(path:str) -> NoneAdd an archive to be downloaded with this Spark job on every node.
method
python.pyspark.core.context.SparkContext.addFile(path:str, recursive:bool=False) -> NoneAdd a file to be downloaded with this Spark job on every node.
method
python.pyspark.core.context.SparkContext.addJobTag(tag:str) -> NoneAdd a tag to be assigned to all the jobs started by this thread.
method
python.pyspark.core.context.SparkContext.applicationId() -> strA unique identifier for the Spark application.
method
python.pyspark.core.context.SparkContext.cancelJobGroup(groupId:str) -> NoneCancel active jobs for the specified group.
method
python.pyspark.core.context.SparkContext.cancelJobsWithTag(tag:str) -> NoneCancel active jobs that have the specified tag.
method
python.pyspark.core.context.SparkContext.clearJobTags() -> NoneClear the current thread's job tags.
method
python.pyspark.core.context.SparkContext.dump_profiles(path:str) -> NoneDump the profile stats into directory `path` ..
method
python.pyspark.core.context.SparkContext.getCheckpointDir() -> Optional[str]Return the directory where RDDs are checkpointed.
method
python.pyspark.core.context.SparkContext.getSystemProperty(key:str) -> strGet a Java system property, such as `java.home`.
method
python.pyspark.core.context.SparkContext.parallelize(c:Iterable[T], numSlices:Optional[int]=None) -> RDD[T]Distribute a local Python collection to form an RDD.
method
python.pyspark.core.context.SparkContext.setCheckpointDir(dirName:str) -> NoneSet the directory under which RDDs are going to be checkpointed.
method
python.pyspark.core.context.SparkContext.setJobDescription(value:str) -> NoneSet a human readable description of the current job.
method
python.pyspark.core.context.SparkContext.setLogLevel(logLevel:str) -> NoneControl our logLevel.
method
python.pyspark.core.context.SparkContext.setSystemProperty(key:str, value:str) -> NoneSet a Java system property, such as `spark.executor.memory`.
method
python.pyspark.core.context.SparkContext.show_profiles() -> NonePrint the profile stats to stdout ..
method
python.pyspark.core.context.SparkContext.sparkUser() -> strGet SPARK_USER for user who is running SparkContext.
method
python.pyspark.core.context.SparkContext.statusTracker() -> StatusTrackerReturn :class:`StatusTracker` object ..
method
python.pyspark.core.context.SparkContext.stop() -> NoneShut down the :class:`SparkContext`.
method
python.pyspark.core.context.SparkContext.union(rdds:List[RDD[T]]) -> RDD[T]Build the union of a list of RDDs.
class
python.pyspark.core.rdd.RDDA Resilient Distributed Dataset (RDD), the basic abstraction in Spark.
method
python.pyspark.core.rdd.RDD.checkpoint() -> NoneMark this RDD for checkpointing.
method
python.pyspark.core.rdd.RDD.cleanShuffleDependencies(blocking:bool=False) -> NoneRemoves an RDD's shuffles and it's non-persisted ancestors.
method
python.pyspark.core.rdd.RDD.coalesce(numPartitions:int, shuffle:bool=False) -> 'RDD[T]'Return a new RDD that is reduced into `numPartitions` partitions.
method
python.pyspark.core.rdd.RDD.collect() -> List[T]Return a list that contains all the elements in this RDD.
method
python.pyspark.core.rdd.RDD.collectWithJobGroup(groupId:str, description:str, interruptOnCancel:bool=False) -> 'List[T]'When collect rdd, use this method to specify job group.
method
python.pyspark.core.rdd.RDD.context() -> 'SparkContext'The :class:`SparkContext` that this RDD was created on.
method
python.pyspark.core.rdd.RDD.count() -> intReturn the number of elements in this RDD.
method
python.pyspark.core.rdd.RDD.countApproxDistinct(relativeSD:float=0.05) -> intReturn approximate number of distinct elements in the RDD.
method
python.pyspark.core.rdd.RDD.distinct(numPartitions:Optional[int]=None) -> 'RDD[T]'Return a new RDD containing the distinct elements in this RDD.
method
python.pyspark.core.rdd.RDD.filter(f:Callable[[T], bool]) -> 'RDD[T]'Return a new RDD containing only the elements that satisfy a predicate.
method
python.pyspark.core.rdd.RDD.first() -> TReturn the first element in this RDD.
method
python.pyspark.core.rdd.RDD.foreach(f:Callable[[T], None]) -> NoneApplies a function to all elements of this RDD.
method
python.pyspark.core.rdd.RDD.foreachPartition(f:Callable[[Iterable[T]], None]) -> NoneApplies a function to each partition of this RDD.
method
python.pyspark.core.rdd.RDD.getNumPartitions() -> intReturns the number of partitions in RDD ..
method
python.pyspark.core.rdd.RDD.getStorageLevel() -> StorageLevelGet the RDD's current storage level.
method
python.pyspark.core.rdd.RDD.groupBy(f:Callable[[T], K], numPartitions:Optional[int]=None, partitionFunc:Callable[[K], int]=portable_hash) -> 'RDD[Tuple[K, Iterable[T]]]'Return an RDD of grouped items.
method
python.pyspark.core.rdd.RDD.histogram(buckets:Union[int, List['S'], Tuple['S', ...]]) -> Tuple[Sequence['S'], List[int]]Compute a histogram using the provided buckets.
method
python.pyspark.core.rdd.RDD.id() -> intA unique ID for this RDD (within its SparkContext).
method
python.pyspark.core.rdd.RDD.intersection(other:'RDD[T]') -> 'RDD[T]'Return the intersection of this RDD and another one.
method
python.pyspark.core.rdd.RDD.keyBy(f:Callable[[T], K]) -> 'RDD[Tuple[K, T]]'Creates tuples of the elements in this RDD by applying `f`.
method
python.pyspark.core.rdd.RDD.keys() -> 'RDD[K]'Return an RDD with the keys of each tuple.
method
python.pyspark.core.rdd.RDD.leftOuterJoin(other:'RDD[Tuple[K, U]]', numPartitions:Optional[int]=None) -> 'RDD[Tuple[K, Tuple[V, Optional[U]]]]'Perform a left outer join of `self` and `other`.
method
python.pyspark.core.rdd.RDD.lookup(key:K) -> List[V]Return the list of values in the RDD for key `key`.
method
python.pyspark.core.rdd.RDD.map(f:Callable[[T], U], preservesPartitioning:bool=False) -> 'RDD[U]'Return a new RDD by applying a function to each element of this RDD.
method
python.pyspark.core.rdd.RDD.mapPartitions(f:Callable[[Iterable[T]], Iterable[U]], preservesPartitioning:bool=False) -> 'RDD[U]'Return a new RDD by applying a function to each partition of this RDD.
method
python.pyspark.core.rdd.RDD.mean() -> floatCompute the mean of this RDD's elements.
method
python.pyspark.core.rdd.RDD.name() -> Optional[str]Return the name of this RDD.
method
python.pyspark.core.rdd.RDD.randomSplit(weights:Sequence[Union[int, float]], seed:Optional[int]=None) -> 'List[RDD[T]]'Randomly splits this RDD with the provided weights.
method
python.pyspark.core.rdd.RDD.repartition(numPartitions:int) -> 'RDD[T]'Return a new RDD that has exactly numPartitions partitions.
method
python.pyspark.core.rdd.RDD.sample(withReplacement:bool, fraction:float, seed:Optional[int]=None) -> 'RDD[T]'Return a sampled subset of this RDD.
method
python.pyspark.core.rdd.RDD.saveAsPickleFile(path:str, batchSize:int=10) -> NoneSave this RDD as a SequenceFile of serialized objects.
method
python.pyspark.core.rdd.RDD.setName(name:str) -> 'RDD[T]'Assign a name to this RDD.
method
python.pyspark.core.rdd.RDD.sortBy(keyfunc:Callable[[T], 'S'], ascending:bool=True, numPartitions:Optional[int]=None) -> 'RDD[T]'Sorts this RDD by the given keyfunc ..
method
python.pyspark.core.rdd.RDD.stdev() -> floatCompute the standard deviation of this RDD's elements.
method
python.pyspark.core.rdd.RDD.subtract(other:'RDD[T]', numPartitions:Optional[int]=None) -> 'RDD[T]'Return each value in `self` that is not contained in `other`.
method
python.pyspark.core.rdd.RDD.sum() -> 'NumberOrArray'Add up the elements in this RDD.
method
python.pyspark.core.rdd.RDD.take(num:int) -> List[T]Take the first num elements of the RDD.
method
python.pyspark.core.rdd.RDD.takeSample(withReplacement:bool, num:int, seed:Optional[int]=None) -> List[T]Return a fixed-size sampled subset of this RDD.
method
python.pyspark.core.rdd.RDD.toLocalIterator(prefetchPartitions:bool=False) -> Iterator[T]Return an iterator that contains all of the elements in this RDD.
method
python.pyspark.core.rdd.RDD.treeReduce(f:Callable[[T, T], T], depth:int=2) -> TReduces the elements of this RDD in a multi-level tree pattern.
method
python.pyspark.core.rdd.RDD.union(other:'RDD[U]') -> 'RDD[Union[T, U]]'Return the union of this RDD and another one.
method
python.pyspark.core.rdd.RDD.values() -> 'RDD[V]'Return an RDD with the values of each tuple.
method
python.pyspark.core.rdd.RDD.variance() -> floatCompute the variance of this RDD's elements.
method
python.pyspark.core.rdd.RDD.zipWithIndex() -> 'RDD[Tuple[T, int]]'Zips this RDD with its element indices.
method
python.pyspark.core.rdd.RDD.zipWithUniqueId() -> 'RDD[Tuple[T, int]]'Zips this RDD with generated unique Long ids.
class
python.pyspark.core.status.SparkExecutorInfoExposes information about Spark Executors.
class
python.pyspark.core.status.SparkJobInfoExposes information about Spark Jobs.
class
python.pyspark.core.status.SparkStageInfoExposes information about Spark Stages.
method
python.pyspark.core.status.StatusTracker.getJobIdsForGroup(jobGroup:Optional[str]=None) -> List[int]Return a list of all known jobs in a particular job group.
func
python.pyspark.daemon.worker(sock:socket.socket, authenticated:bool) -> intCalled by a worker process after the fork().
class
python.pyspark.errors.exceptions.base.AnalysisExceptionFailed to analyze a SQL query plan.
class
python.pyspark.errors.exceptions.base.IllegalArgumentExceptionPassed an illegal or inappropriate argument.
class
python.pyspark.errors.exceptions.base.ParseExceptionFailed to parse a SQL command.
class
python.pyspark.errors.exceptions.base.PySparkAssertionErrorWrapper class for AssertionError to support error classes.
class
python.pyspark.errors.exceptions.base.PySparkExceptionBase Exception for handling errors generated from PySpark.
method
python.pyspark.errors.exceptions.base.PySparkException.getCondition() -> Optional[str]Returns an error condition.
method
python.pyspark.errors.exceptions.base.PySparkException.getErrorClass() -> Optional[str]Returns an error class as a string.
method
python.pyspark.errors.exceptions.base.PySparkException.getMessage() -> strReturns full error message.
method
python.pyspark.errors.exceptions.base.PySparkException.getQueryContext() -> List['QueryContext']Returns :class:`QueryContext`.
method
python.pyspark.errors.exceptions.base.PySparkException.getSqlState() -> Optional[str]Returns an SQLSTATE as a string.
class
python.pyspark.errors.exceptions.base.PySparkImportErrorWrapper class for ImportError to support error classes.
class
python.pyspark.errors.exceptions.base.PySparkIndexErrorWrapper class for IndexError to support error classes.
class
python.pyspark.errors.exceptions.base.PySparkKeyErrorWrapper class for KeyError to support error classes.
class
python.pyspark.errors.exceptions.base.PySparkNotImplementedErrorWrapper class for NotImplementedError to support error classes.
class
python.pyspark.errors.exceptions.base.PySparkRuntimeErrorWrapper class for RuntimeError to support error classes.
class
python.pyspark.errors.exceptions.base.PySparkTypeErrorWrapper class for TypeError to support error classes.
class
python.pyspark.errors.exceptions.base.PySparkValueErrorWrapper class for ValueError to support error classes.
class
python.pyspark.errors.exceptions.base.PythonExceptionExceptions thrown from Python workers.
class
python.pyspark.errors.exceptions.base.QueryContextQuery context of a :class:`PySparkException`.
method
python.pyspark.errors.exceptions.base.QueryContext.contextType() -> QueryContextTypeThe type of this query context.
method
python.pyspark.errors.exceptions.base.QueryContext.fragment() -> strThe corresponding fragment of the query which throws the exception.
method
python.pyspark.errors.exceptions.base.QueryContext.summary() -> strSummary of the exception cause.
class
python.pyspark.errors.exceptions.base.QueryContextTypeThe type of :class:`QueryContext`.
class
python.pyspark.errors.exceptions.base.QueryExecutionExceptionFailed to execute a query.
class
python.pyspark.errors.exceptions.base.SparkUpgradeExceptionException thrown because of Spark upgrade.
class
python.pyspark.errors.exceptions.base.StreamingQueryExceptionException that stopped a :class:`StreamingQuery`.
class
python.pyspark.errors.exceptions.base.UnknownExceptionNone of the other exceptions.
func
python.pyspark.errors.exceptions.base.recover_python_exception(e:T) -> TRecover Python exception stack trace.
class
python.pyspark.errors.exceptions.captured.AnalysisExceptionFailed to analyze a SQL query plan.
class
python.pyspark.errors.exceptions.captured.ArithmeticExceptionArithmetic exception.
class
python.pyspark.errors.exceptions.captured.ArrayIndexOutOfBoundsExceptionArray index out of bounds exception.
class
python.pyspark.errors.exceptions.captured.DateTimeExceptionDatetime exception.
class
python.pyspark.errors.exceptions.captured.IllegalArgumentExceptionPassed an illegal or inappropriate argument.
class
python.pyspark.errors.exceptions.captured.NumberFormatExceptionNumber format exception.
class
python.pyspark.errors.exceptions.captured.ParseExceptionFailed to parse a SQL command.
class
python.pyspark.errors.exceptions.captured.PythonExceptionExceptions thrown from Python workers.
class
python.pyspark.errors.exceptions.captured.QueryExecutionExceptionFailed to execute a query.
class
python.pyspark.errors.exceptions.captured.SparkNoSuchElementExceptionNo such element exception.
class
python.pyspark.errors.exceptions.captured.SparkRuntimeExceptionRuntime exception.
class
python.pyspark.errors.exceptions.captured.SparkUpgradeExceptionException thrown because of Spark upgrade.
class
python.pyspark.errors.exceptions.captured.StreamingQueryExceptionException that stopped a :class:`StreamingQuery`.
class
python.pyspark.errors.exceptions.captured.UnknownExceptionNone of the other exceptions.
class
python.pyspark.errors.exceptions.captured.UnsupportedOperationExceptionUnsupported operation exception.
class
python.pyspark.errors.exceptions.connect.ArithmeticExceptionArithmetic exception thrown from Spark Connect.
class
python.pyspark.errors.exceptions.connect.DateTimeExceptionDatetime exception thrown from Spark Connect.
class
python.pyspark.errors.exceptions.connect.InvalidPlanInputError thrown when a connect plan is not valid.
class
python.pyspark.errors.exceptions.connect.NumberFormatExceptionNumber format exception thrown from Spark Connect.
class
python.pyspark.errors.exceptions.connect.PythonExceptionExceptions thrown from Spark Connect.
class
python.pyspark.errors.exceptions.connect.SparkConnectExceptionException thrown from Spark Connect.
class
python.pyspark.errors.exceptions.connect.SparkConnectGrpcExceptionBase class to handle the errors from GRPC.
class
python.pyspark.errors.exceptions.connect.SparkNoSuchElementExceptionNo such element exception.
class
python.pyspark.errors.exceptions.connect.SparkRuntimeExceptionRuntime exception thrown from Spark Connect.
class
python.pyspark.errors.exceptions.connect.UnknownExceptionException for unmapped errors in Spark Connect.
class
python.pyspark.errors.exceptions.tblib.TracebackClass that wraps builtin Traceback objects.
method
python.pyspark.errors.exceptions.tblib.Traceback.as_dict() -> dictConverts to a dictionary representation.
method
python.pyspark.errors.exceptions.tblib.Traceback.from_string(string:str, strict:bool=True) -> 'Traceback'Creates an instance by parsing a stacktrace.
class
python.pyspark.errors.utils.ErrorClassesReaderA reader to load error information from error-conditions.json.
method
python.pyspark.errors.utils.ErrorClassesReader.get_breaking_change_info(errorClass:Optional[str]) -> Optional[Dict[str, Any]]Returns the breaking change info for an error if it is present.
method
python.pyspark.errors.utils.ErrorClassesReader.get_sqlstate(errorClass:Optional[str]) -> Optional[str]Returns the SQL state for the given error class.
class
python.pyspark.logger.logger.JSONFormatterCustom JSON formatter for logging records.
method
python.pyspark.logger.logger.JSONFormatter.format(record:logging.LogRecord) -> strFormat the specified record as a JSON string.
class
python.pyspark.messages.zero_copy_byte_stream.ZeroCopyByteStreamAccepts chunks of bytes as zero-copy memory views.
method
python.pyspark.messages.zero_copy_byte_stream.ZeroCopyByteStream.add_next_chunk(chunk:memoryview) -> NoneAdds the next chunk as a read source.
method
python.pyspark.messages.zero_copy_byte_stream.ZeroCopyByteStream.finish() -> NoneMarks the stream as ended.
method
python.pyspark.messages.zero_copy_byte_stream.ZeroCopyByteStream.read(size:int) -> memoryviewReads size bytes.
class
python.pyspark.ml.base.EstimatorAbstract class for estimators that fit models to data.
class
python.pyspark.ml.base.ModelAbstract class for models that are fitted by estimators.
class
python.pyspark.ml.base.PredictionModelModel for prediction tasks (regression and classification).
method
python.pyspark.ml.base.PredictionModel.predict(value:T) -> floatPredict label for the given features.
method
python.pyspark.ml.base.PredictionModel.setFeaturesCol(value:str) -> PSets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.base.PredictionModel.setPredictionCol(value:str) -> PSets the value of :py:attr:`predictionCol`.
class
python.pyspark.ml.base.PredictorEstimator for prediction tasks (regression and classification).
method
python.pyspark.ml.base.Predictor.setFeaturesCol(value:str) -> PSets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.base.Predictor.setLabelCol(value:str) -> PSets the value of :py:attr:`labelCol`.
method
python.pyspark.ml.base.Predictor.setPredictionCol(value:str) -> PSets the value of :py:attr:`predictionCol`.
method
python.pyspark.ml.base.Transformer.transform(dataset:DataFrame, params:Optional['ParamMap']=None) -> DataFrameTransforms the input dataset with optional parameters.
class
python.pyspark.ml.classification.BinaryLogisticRegressionSummaryBinary Logistic regression results for a given model.
class
python.pyspark.ml.classification.ClassificationModelModel produced by a ``Classifier``.
method
python.pyspark.ml.classification.ClassificationModel.predictRaw(value:Vector) -> VectorRaw prediction for each possible label.
method
python.pyspark.ml.classification.ClassificationModel.setRawPredictionCol(value:str) -> 'P'Sets the value of :py:attr:`rawPredictionCol`.
class
python.pyspark.ml.classification.ClassifierClassifier for classification tasks.
method
python.pyspark.ml.classification.Classifier.setRawPredictionCol(value:str) -> 'P'Sets the value of :py:attr:`rawPredictionCol`.
class
python.pyspark.ml.classification.DecisionTreeClassificationModelModel fitted by DecisionTreeClassifier.
method
python.pyspark.ml.classification.DecisionTreeClassificationModel.featureImportances() -> VectorEstimate of the importance of each feature.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setCacheNodeIds(value:bool) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`cacheNodeIds`.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setCheckpointInterval(value:int) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`checkpointInterval`.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setImpurity(value:str) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`impurity`.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setMaxBins(value:int) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`maxBins`.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setMaxDepth(value:int) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`maxDepth`.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setMaxMemoryInMB(value:int) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`maxMemoryInMB`.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setMinInfoGain(value:float) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`minInfoGain`.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setMinInstancesPerNode(value:int) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`minInstancesPerNode`.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setPruneTree(value:bool) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`pruneTree`.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setSeed(value:int) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`seed`.
method
python.pyspark.ml.classification.DecisionTreeClassifier.setWeightCol(value:str) -> 'DecisionTreeClassifier'Sets the value of :py:attr:`weightCol`.
class
python.pyspark.ml.classification.FMClassificationModelModel fitted by :class:`FMClassifier`.
method
python.pyspark.ml.classification.FMClassificationModel.evaluate(dataset:DataFrame) -> 'FMClassificationSummary'Evaluates the model on a test dataset.
method
python.pyspark.ml.classification.FMClassificationModel.factors() -> MatrixModel factor term.
method
python.pyspark.ml.classification.FMClassificationModel.intercept() -> floatModel intercept.
method
python.pyspark.ml.classification.FMClassificationModel.linear() -> VectorModel linear term.
class
python.pyspark.ml.classification.FMClassificationSummaryAbstraction for FMClassifier Results for a given model.
class
python.pyspark.ml.classification.FMClassificationTrainingSummaryAbstraction for FMClassifier Training results.
method
python.pyspark.ml.classification.FMClassifier.setFactorSize(value:int) -> 'FMClassifier'Sets the value of :py:attr:`factorSize`.
method
python.pyspark.ml.classification.FMClassifier.setFitIntercept(value:bool) -> 'FMClassifier'Sets the value of :py:attr:`fitIntercept`.
method
python.pyspark.ml.classification.FMClassifier.setFitLinear(value:bool) -> 'FMClassifier'Sets the value of :py:attr:`fitLinear`.
method
python.pyspark.ml.classification.FMClassifier.setInitStd(value:float) -> 'FMClassifier'Sets the value of :py:attr:`initStd`.
method
python.pyspark.ml.classification.FMClassifier.setMaxIter(value:int) -> 'FMClassifier'Sets the value of :py:attr:`maxIter`.
method
python.pyspark.ml.classification.FMClassifier.setMiniBatchFraction(value:float) -> 'FMClassifier'Sets the value of :py:attr:`miniBatchFraction`.
method
python.pyspark.ml.classification.FMClassifier.setRegParam(value:float) -> 'FMClassifier'Sets the value of :py:attr:`regParam`.
method
python.pyspark.ml.classification.FMClassifier.setSeed(value:int) -> 'FMClassifier'Sets the value of :py:attr:`seed`.
method
python.pyspark.ml.classification.FMClassifier.setSolver(value:str) -> 'FMClassifier'Sets the value of :py:attr:`solver`.
method
python.pyspark.ml.classification.FMClassifier.setStepSize(value:float) -> 'FMClassifier'Sets the value of :py:attr:`stepSize`.
method
python.pyspark.ml.classification.FMClassifier.setTol(value:float) -> 'FMClassifier'Sets the value of :py:attr:`tol`.
class
python.pyspark.ml.classification.GBTClassificationModelModel fitted by GBTClassifier.
method
python.pyspark.ml.classification.GBTClassificationModel.featureImportances() -> VectorEstimate of the importance of each feature.
method
python.pyspark.ml.classification.GBTClassificationModel.trees() -> List[DecisionTreeRegressionModel]Trees in this ensemble.
method
python.pyspark.ml.classification.LinearSVC.setAggregationDepth(value:int) -> 'LinearSVC'Sets the value of :py:attr:`aggregationDepth`.
method
python.pyspark.ml.classification.LinearSVC.setFitIntercept(value:bool) -> 'LinearSVC'Sets the value of :py:attr:`fitIntercept`.
method
python.pyspark.ml.classification.LinearSVC.setMaxBlockSizeInMB(value:float) -> 'LinearSVC'Sets the value of :py:attr:`maxBlockSizeInMB`.
method
python.pyspark.ml.classification.LinearSVC.setMaxIter(value:int) -> 'LinearSVC'Sets the value of :py:attr:`maxIter`.
method
python.pyspark.ml.classification.LinearSVC.setRegParam(value:float) -> 'LinearSVC'Sets the value of :py:attr:`regParam`.
method
python.pyspark.ml.classification.LinearSVC.setStandardization(value:bool) -> 'LinearSVC'Sets the value of :py:attr:`standardization`.
method
python.pyspark.ml.classification.LinearSVC.setThreshold(value:float) -> 'LinearSVC'Sets the value of :py:attr:`threshold`.
method
python.pyspark.ml.classification.LinearSVC.setTol(value:float) -> 'LinearSVC'Sets the value of :py:attr:`tol`.
method
python.pyspark.ml.classification.LinearSVC.setWeightCol(value:str) -> 'LinearSVC'Sets the value of :py:attr:`weightCol`.
class
python.pyspark.ml.classification.LinearSVCModelModel fitted by LinearSVC.
method
python.pyspark.ml.classification.LinearSVCModel.coefficients() -> VectorModel coefficients of Linear SVM Classifier.
method
python.pyspark.ml.classification.LinearSVCModel.evaluate(dataset:DataFrame) -> 'LinearSVCSummary'Evaluates the model on a test dataset.
method
python.pyspark.ml.classification.LinearSVCModel.intercept() -> floatModel intercept of Linear SVM Classifier.
method
python.pyspark.ml.classification.LinearSVCModel.setThreshold(value:float) -> 'LinearSVCModel'Sets the value of :py:attr:`threshold`.
class
python.pyspark.ml.classification.LinearSVCSummaryAbstraction for LinearSVC Results for a given model.
class
python.pyspark.ml.classification.LinearSVCTrainingSummaryAbstraction for LinearSVC Training results.
class
python.pyspark.ml.classification.LogisticRegressionLogistic regression.
method
python.pyspark.ml.classification.LogisticRegression.setAggregationDepth(value:int) -> 'LogisticRegression'Sets the value of :py:attr:`aggregationDepth`.
method
python.pyspark.ml.classification.LogisticRegression.setElasticNetParam(value:float) -> 'LogisticRegression'Sets the value of :py:attr:`elasticNetParam`.
method
python.pyspark.ml.classification.LogisticRegression.setFamily(value:str) -> 'LogisticRegression'Sets the value of :py:attr:`family`.
method
python.pyspark.ml.classification.LogisticRegression.setFitIntercept(value:bool) -> 'LogisticRegression'Sets the value of :py:attr:`fitIntercept`.
method
python.pyspark.ml.classification.LogisticRegression.setMaxBlockSizeInMB(value:float) -> 'LogisticRegression'Sets the value of :py:attr:`maxBlockSizeInMB`.
method
python.pyspark.ml.classification.LogisticRegression.setMaxIter(value:int) -> 'LogisticRegression'Sets the value of :py:attr:`maxIter`.
method
python.pyspark.ml.classification.LogisticRegression.setRegParam(value:float) -> 'LogisticRegression'Sets the value of :py:attr:`regParam`.
method
python.pyspark.ml.classification.LogisticRegression.setStandardization(value:bool) -> 'LogisticRegression'Sets the value of :py:attr:`standardization`.
method
python.pyspark.ml.classification.LogisticRegression.setTol(value:float) -> 'LogisticRegression'Sets the value of :py:attr:`tol`.
method
python.pyspark.ml.classification.LogisticRegression.setWeightCol(value:str) -> 'LogisticRegression'Sets the value of :py:attr:`weightCol`.
class
python.pyspark.ml.classification.LogisticRegressionModelModel fitted by LogisticRegression.
method
python.pyspark.ml.classification.LogisticRegressionModel.coefficientMatrix() -> MatrixModel coefficients.
method
python.pyspark.ml.classification.LogisticRegressionModel.evaluate(dataset:DataFrame) -> 'LogisticRegressionSummary'Evaluates the model on a test dataset.
method
python.pyspark.ml.classification.LogisticRegressionModel.intercept() -> floatModel intercept of binomial logistic regression.
method
python.pyspark.ml.classification.LogisticRegressionModel.interceptVector() -> VectorModel intercept.
class
python.pyspark.ml.classification.MultilayerPerceptronClassificationModelModel fitted by MultilayerPerceptronClassifier.
method
python.pyspark.ml.classification.MultilayerPerceptronClassificationModel.evaluate(dataset:DataFrame) -> 'MultilayerPerceptronClassificationSummary'Evaluates the model on a test dataset.
method
python.pyspark.ml.classification.MultilayerPerceptronClassificationModel.weights() -> Vectorthe weights of layers.
method
python.pyspark.ml.classification.MultilayerPerceptronClassifier.setBlockSize(value:int) -> 'MultilayerPerceptronClassifier'Sets the value of :py:attr:`blockSize`.
method
python.pyspark.ml.classification.MultilayerPerceptronClassifier.setInitialWeights(value:Vector) -> 'MultilayerPerceptronClassifier'Sets the value of :py:attr:`initialWeights`.
method
python.pyspark.ml.classification.MultilayerPerceptronClassifier.setLayers(value:List[int]) -> 'MultilayerPerceptronClassifier'Sets the value of :py:attr:`layers`.
method
python.pyspark.ml.classification.MultilayerPerceptronClassifier.setMaxIter(value:int) -> 'MultilayerPerceptronClassifier'Sets the value of :py:attr:`maxIter`.
method
python.pyspark.ml.classification.MultilayerPerceptronClassifier.setSeed(value:int) -> 'MultilayerPerceptronClassifier'Sets the value of :py:attr:`seed`.
method
python.pyspark.ml.classification.MultilayerPerceptronClassifier.setSolver(value:str) -> 'MultilayerPerceptronClassifier'Sets the value of :py:attr:`solver`.
method
python.pyspark.ml.classification.MultilayerPerceptronClassifier.setStepSize(value:float) -> 'MultilayerPerceptronClassifier'Sets the value of :py:attr:`stepSize`.
method
python.pyspark.ml.classification.MultilayerPerceptronClassifier.setTol(value:float) -> 'MultilayerPerceptronClassifier'Sets the value of :py:attr:`tol`.
class
python.pyspark.ml.classification.NaiveBayesNaive Bayes Classifiers.
method
python.pyspark.ml.classification.NaiveBayes.setModelType(value:str) -> 'NaiveBayes'Sets the value of :py:attr:`modelType`.
method
python.pyspark.ml.classification.NaiveBayes.setSmoothing(value:float) -> 'NaiveBayes'Sets the value of :py:attr:`smoothing`.
method
python.pyspark.ml.classification.NaiveBayes.setWeightCol(value:str) -> 'NaiveBayes'Sets the value of :py:attr:`weightCol`.
class
python.pyspark.ml.classification.NaiveBayesModelModel fitted by NaiveBayes.
method
python.pyspark.ml.classification.NaiveBayesModel.pi() -> Vectorlog of class priors.
method
python.pyspark.ml.classification.NaiveBayesModel.sigma() -> Matrixvariance of each feature.
method
python.pyspark.ml.classification.NaiveBayesModel.theta() -> Matrixlog of class conditional probabilities.
class
python.pyspark.ml.classification.OneVsRestModelModel fitted by OneVsRest.
method
python.pyspark.ml.classification.OneVsRestModel.setFeaturesCol(value:str) -> 'OneVsRestModel'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.classification.OneVsRestModel.setPredictionCol(value:str) -> 'OneVsRestModel'Sets the value of :py:attr:`predictionCol`.
method
python.pyspark.ml.classification.OneVsRestModel.setRawPredictionCol(value:str) -> 'OneVsRestModel'Sets the value of :py:attr:`rawPredictionCol`.
class
python.pyspark.ml.classification.ProbabilisticClassificationModelModel produced by a ``ProbabilisticClassifier``.
method
python.pyspark.ml.classification.ProbabilisticClassificationModel.setProbabilityCol(value:str) -> CMSets the value of :py:attr:`probabilityCol`.
method
python.pyspark.ml.classification.ProbabilisticClassificationModel.setThresholds(value:List[float]) -> CMSets the value of :py:attr:`thresholds`.
class
python.pyspark.ml.classification.ProbabilisticClassifierProbabilistic Classifier for classification tasks.
method
python.pyspark.ml.classification.ProbabilisticClassifier.setProbabilityCol(value:str) -> 'P'Sets the value of :py:attr:`probabilityCol`.
method
python.pyspark.ml.classification.ProbabilisticClassifier.setThresholds(value:List[float]) -> 'P'Sets the value of :py:attr:`thresholds`.
class
python.pyspark.ml.classification.RandomForestClassificationModelModel fitted by RandomForestClassifier.
method
python.pyspark.ml.classification.RandomForestClassificationModel.evaluate(dataset:DataFrame) -> 'RandomForestClassificationSummary'Evaluates the model on a test dataset.
method
python.pyspark.ml.classification.RandomForestClassificationModel.featureImportances() -> VectorEstimate of the importance of each feature.
method
python.pyspark.ml.classification.RandomForestClassificationModel.trees() -> List[DecisionTreeClassificationModel]Trees in this ensemble.
method
python.pyspark.ml.classification.RandomForestClassifier.setBootstrap(value:bool) -> 'RandomForestClassifier'Sets the value of :py:attr:`bootstrap`.
method
python.pyspark.ml.classification.RandomForestClassifier.setCacheNodeIds(value:bool) -> 'RandomForestClassifier'Sets the value of :py:attr:`cacheNodeIds`.
method
python.pyspark.ml.classification.RandomForestClassifier.setCheckpointInterval(value:int) -> 'RandomForestClassifier'Sets the value of :py:attr:`checkpointInterval`.
method
python.pyspark.ml.classification.RandomForestClassifier.setImpurity(value:str) -> 'RandomForestClassifier'Sets the value of :py:attr:`impurity`.
method
python.pyspark.ml.classification.RandomForestClassifier.setMaxBins(value:int) -> 'RandomForestClassifier'Sets the value of :py:attr:`maxBins`.
method
python.pyspark.ml.classification.RandomForestClassifier.setMaxDepth(value:int) -> 'RandomForestClassifier'Sets the value of :py:attr:`maxDepth`.
method
python.pyspark.ml.classification.RandomForestClassifier.setMaxMemoryInMB(value:int) -> 'RandomForestClassifier'Sets the value of :py:attr:`maxMemoryInMB`.
method
python.pyspark.ml.classification.RandomForestClassifier.setMinInfoGain(value:float) -> 'RandomForestClassifier'Sets the value of :py:attr:`minInfoGain`.
method
python.pyspark.ml.classification.RandomForestClassifier.setMinInstancesPerNode(value:int) -> 'RandomForestClassifier'Sets the value of :py:attr:`minInstancesPerNode`.
method
python.pyspark.ml.classification.RandomForestClassifier.setNumTrees(value:int) -> 'RandomForestClassifier'Sets the value of :py:attr:`numTrees`.
method
python.pyspark.ml.classification.RandomForestClassifier.setPruneTree(value:bool) -> 'RandomForestClassifier'Sets the value of :py:attr:`pruneTree`.
method
python.pyspark.ml.classification.RandomForestClassifier.setSeed(value:int) -> 'RandomForestClassifier'Sets the value of :py:attr:`seed`.
method
python.pyspark.ml.classification.RandomForestClassifier.setSubsamplingRate(value:float) -> 'RandomForestClassifier'Sets the value of :py:attr:`subsamplingRate`.
method
python.pyspark.ml.classification.RandomForestClassifier.setWeightCol(value:str) -> 'RandomForestClassifier'Sets the value of :py:attr:`weightCol`.
method
python.pyspark.ml.clustering.BisectingKMeans.setDistanceMeasure(value:str) -> 'BisectingKMeans'Sets the value of :py:attr:`distanceMeasure`.
method
python.pyspark.ml.clustering.BisectingKMeans.setFeaturesCol(value:str) -> 'BisectingKMeans'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.clustering.BisectingKMeans.setK(value:int) -> 'BisectingKMeans'Sets the value of :py:attr:`k`.
method
python.pyspark.ml.clustering.BisectingKMeans.setMaxIter(value:int) -> 'BisectingKMeans'Sets the value of :py:attr:`maxIter`.
method
python.pyspark.ml.clustering.BisectingKMeans.setMinDivisibleClusterSize(value:float) -> 'BisectingKMeans'Sets the value of :py:attr:`minDivisibleClusterSize`.
method
python.pyspark.ml.clustering.BisectingKMeans.setPredictionCol(value:str) -> 'BisectingKMeans'Sets the value of :py:attr:`predictionCol`.
method
python.pyspark.ml.clustering.BisectingKMeans.setSeed(value:int) -> 'BisectingKMeans'Sets the value of :py:attr:`seed`.
method
python.pyspark.ml.clustering.BisectingKMeans.setWeightCol(value:str) -> 'BisectingKMeans'Sets the value of :py:attr:`weightCol`.
class
python.pyspark.ml.clustering.BisectingKMeansModelModel fitted by BisectingKMeans.
method
python.pyspark.ml.clustering.BisectingKMeansModel.predict(value:Vector) -> intPredict label for the given features.
method
python.pyspark.ml.clustering.BisectingKMeansModel.setFeaturesCol(value:str) -> 'BisectingKMeansModel'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.clustering.BisectingKMeansModel.setPredictionCol(value:str) -> 'BisectingKMeansModel'Sets the value of :py:attr:`predictionCol`.
class
python.pyspark.ml.clustering.BisectingKMeansSummaryBisecting KMeans clustering results for a given model.
class
python.pyspark.ml.clustering.ClusteringSummaryClustering results for a given model.
method
python.pyspark.ml.clustering.ClusteringSummary.clusterSizes() -> List[int]Size of (number of data points in) each cluster.
method
python.pyspark.ml.clustering.ClusteringSummary.featuresCol() -> strName for column of features in `predictions`.
method
python.pyspark.ml.clustering.ClusteringSummary.k() -> intThe number of clusters the model was trained with.
method
python.pyspark.ml.clustering.ClusteringSummary.numIter() -> intNumber of iterations.
class
python.pyspark.ml.clustering.DistributedLDAModelDistributed model fitted by :py:class:`LDA`.
class
python.pyspark.ml.clustering.GaussianMixtureGaussianMixture clustering.
method
python.pyspark.ml.clustering.GaussianMixture.setAggregationDepth(value:int) -> 'GaussianMixture'Sets the value of :py:attr:`aggregationDepth`.
method
python.pyspark.ml.clustering.GaussianMixture.setFeaturesCol(value:str) -> 'GaussianMixture'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.clustering.GaussianMixture.setK(value:int) -> 'GaussianMixture'Sets the value of :py:attr:`k`.
method
python.pyspark.ml.clustering.GaussianMixture.setMaxIter(value:int) -> 'GaussianMixture'Sets the value of :py:attr:`maxIter`.
method
python.pyspark.ml.clustering.GaussianMixture.setPredictionCol(value:str) -> 'GaussianMixture'Sets the value of :py:attr:`predictionCol`.
method
python.pyspark.ml.clustering.GaussianMixture.setProbabilityCol(value:str) -> 'GaussianMixture'Sets the value of :py:attr:`probabilityCol`.
method
python.pyspark.ml.clustering.GaussianMixture.setSeed(value:int) -> 'GaussianMixture'Sets the value of :py:attr:`seed`.
method
python.pyspark.ml.clustering.GaussianMixture.setTol(value:float) -> 'GaussianMixture'Sets the value of :py:attr:`tol`.
method
python.pyspark.ml.clustering.GaussianMixture.setWeightCol(value:str) -> 'GaussianMixture'Sets the value of :py:attr:`weightCol`.
class
python.pyspark.ml.clustering.GaussianMixtureModelModel fitted by GaussianMixture.
method
python.pyspark.ml.clustering.GaussianMixtureModel.gaussiansDF() -> DataFrameRetrieve Gaussian distributions as a DataFrame.
method
python.pyspark.ml.clustering.GaussianMixtureModel.predict(value:Vector) -> intPredict label for the given features.
method
python.pyspark.ml.clustering.GaussianMixtureModel.predictProbability(value:Vector) -> VectorPredict probability for the given features.
method
python.pyspark.ml.clustering.GaussianMixtureModel.setFeaturesCol(value:str) -> 'GaussianMixtureModel'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.clustering.GaussianMixtureModel.setPredictionCol(value:str) -> 'GaussianMixtureModel'Sets the value of :py:attr:`predictionCol`.
method
python.pyspark.ml.clustering.GaussianMixtureModel.setProbabilityCol(value:str) -> 'GaussianMixtureModel'Sets the value of :py:attr:`probabilityCol`.
class
python.pyspark.ml.clustering.GaussianMixtureSummaryGaussian mixture clustering results for a given model.
method
python.pyspark.ml.clustering.KMeans.setDistanceMeasure(value:str) -> 'KMeans'Sets the value of :py:attr:`distanceMeasure`.
method
python.pyspark.ml.clustering.KMeans.setFeaturesCol(value:str) -> 'KMeans'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.clustering.KMeans.setInitMode(value:str) -> 'KMeans'Sets the value of :py:attr:`initMode`.
method
python.pyspark.ml.clustering.KMeans.setInitSteps(value:int) -> 'KMeans'Sets the value of :py:attr:`initSteps`.
method
python.pyspark.ml.clustering.KMeans.setIntermediateStorageLevel(value:str) -> 'KMeans'Sets the value of :py:attr:`intermediateStorageLevel`.
method
python.pyspark.ml.clustering.KMeans.setK(value:int) -> 'KMeans'Sets the value of :py:attr:`k`.
method
python.pyspark.ml.clustering.KMeans.setMaxBlockSizeInMB(value:float) -> 'KMeans'Sets the value of :py:attr:`maxBlockSizeInMB`.
method
python.pyspark.ml.clustering.KMeans.setMaxIter(value:int) -> 'KMeans'Sets the value of :py:attr:`maxIter`.
method
python.pyspark.ml.clustering.KMeans.setPredictionCol(value:str) -> 'KMeans'Sets the value of :py:attr:`predictionCol`.
method
python.pyspark.ml.clustering.KMeans.setSeed(value:int) -> 'KMeans'Sets the value of :py:attr:`seed`.
method
python.pyspark.ml.clustering.KMeans.setSolver(value:str) -> 'KMeans'Sets the value of :py:attr:`solver`.
method
python.pyspark.ml.clustering.KMeans.setTol(value:float) -> 'KMeans'Sets the value of :py:attr:`tol`.
method
python.pyspark.ml.clustering.KMeans.setWeightCol(value:str) -> 'KMeans'Sets the value of :py:attr:`weightCol`.
class
python.pyspark.ml.clustering.KMeansModelModel fitted by KMeans.
method
python.pyspark.ml.clustering.KMeansModel.predict(value:Vector) -> intPredict label for the given features.
method
python.pyspark.ml.clustering.KMeansModel.setFeaturesCol(value:str) -> 'KMeansModel'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.clustering.KMeansModel.setPredictionCol(value:str) -> 'KMeansModel'Sets the value of :py:attr:`predictionCol`.
class
python.pyspark.ml.clustering.KMeansSummarySummary of KMeans.
method
python.pyspark.ml.clustering.LDA.setCheckpointInterval(value:int) -> 'LDA'Sets the value of :py:attr:`checkpointInterval`.
method
python.pyspark.ml.clustering.LDA.setDocConcentration(value:List[float]) -> 'LDA'Sets the value of :py:attr:`docConcentration`.
method
python.pyspark.ml.clustering.LDA.setFeaturesCol(value:str) -> 'LDA'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.clustering.LDA.setK(value:int) -> 'LDA'Sets the value of :py:attr:`k`.
method
python.pyspark.ml.clustering.LDA.setKeepLastCheckpoint(value:bool) -> 'LDA'Sets the value of :py:attr:`keepLastCheckpoint`.
method
python.pyspark.ml.clustering.LDA.setLearningDecay(value:float) -> 'LDA'Sets the value of :py:attr:`learningDecay`.
method
python.pyspark.ml.clustering.LDA.setLearningOffset(value:float) -> 'LDA'Sets the value of :py:attr:`learningOffset`.
method
python.pyspark.ml.clustering.LDA.setMaxIter(value:int) -> 'LDA'Sets the value of :py:attr:`maxIter`.
method
python.pyspark.ml.clustering.LDA.setOptimizeDocConcentration(value:bool) -> 'LDA'Sets the value of :py:attr:`optimizeDocConcentration`.
method
python.pyspark.ml.clustering.LDA.setOptimizer(value:str) -> 'LDA'Sets the value of :py:attr:`optimizer`.
method
python.pyspark.ml.clustering.LDA.setSeed(value:int) -> 'LDA'Sets the value of :py:attr:`seed`.
method
python.pyspark.ml.clustering.LDA.setSubsamplingRate(value:float) -> 'LDA'Sets the value of :py:attr:`subsamplingRate`.
method
python.pyspark.ml.clustering.LDA.setTopicConcentration(value:float) -> 'LDA'Sets the value of :py:attr:`topicConcentration`.
method
python.pyspark.ml.clustering.LDA.setTopicDistributionCol(value:str) -> 'LDA'Sets the value of :py:attr:`topicDistributionCol`.
class
python.pyspark.ml.clustering.LDAModelLatent Dirichlet Allocation (LDA) model.
method
python.pyspark.ml.clustering.LDAModel.describeTopics(maxTermsPerTopic:int=10) -> DataFrameReturn the topics described by their top-weighted terms.
method
python.pyspark.ml.clustering.LDAModel.logPerplexity(dataset:DataFrame) -> floatCalculate an upper bound on perplexity.
method
python.pyspark.ml.clustering.LDAModel.setFeaturesCol(value:str) -> 'M'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.clustering.LDAModel.setSeed(value:int) -> 'M'Sets the value of :py:attr:`seed`.
method
python.pyspark.ml.clustering.LDAModel.setTopicDistributionCol(value:str) -> 'M'Sets the value of :py:attr:`topicDistributionCol`.
class
python.pyspark.ml.clustering.LocalLDAModelLocal (non-distributed) model fitted by :py:class:`LDA`.
func
python.pyspark.ml.common.callJavaFunc(sc:'pyspark.core.context.SparkContext', func:Callable[..., 'JavaObjectOrPickleDump'], *args:Any) -> 'JavaObjectOrPickleDump'Call Java Function
func
python.pyspark.ml.common.inherit_doc(cls:'C') -> 'C'A decorator that makes a class inherit documentation from its parents.
class
python.pyspark.ml.connect.base.EstimatorAbstract class for estimators that fit models to data.
method
python.pyspark.ml.connect.base.Evaluator.evaluate(dataset:DataFrame, params:Optional['ParamMap']=None) -> floatEvaluates the output with optional parameters.
class
python.pyspark.ml.connect.base.ModelAbstract class for models that are fitted by estimators.
method
python.pyspark.ml.connect.base.PredictionModel.setFeaturesCol(value:str) -> 'PredictionModel'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.connect.base.PredictionModel.setPredictionCol(value:str) -> 'PredictionModel'Sets the value of :py:attr:`predictionCol`.
method
python.pyspark.ml.connect.base.Predictor.setFeaturesCol(value:str) -> 'Predictor'Sets the value of :py:attr:`featuresCol`.
method
python.pyspark.ml.connect.base.Predictor.setLabelCol(value:str) -> 'Predictor'Sets the value of :py:attr:`labelCol`.
method
python.pyspark.ml.connect.base.Predictor.setPredictionCol(value:str) -> 'Predictor'Sets the value of :py:attr:`predictionCol`.
method
python.pyspark.ml.connect.base.Transformer.transform(dataset:Union[DataFrame, pd.DataFrame], params:Optional['ParamMap']=None) -> Union[DataFrame, pd.DataFrame]Transforms the input dataset.
class
python.pyspark.ml.connect.classification.LogisticRegressionLogistic regression estimator.
class
python.pyspark.ml.connect.classification.LogisticRegressionModelModel fitted by LogisticRegression.
class
python.pyspark.ml.connect.feature.MaxAbsScalerModelModel fitted by MaxAbsScaler.
class
python.pyspark.ml.connect.feature.StandardScalerModelModel fitted by StandardScaler.
class
python.pyspark.ml.connect.pipeline.PipelineA simple pipeline, which acts as an estimator.
method
python.pyspark.ml.connect.pipeline.Pipeline.copy(extra:Optional['ParamMap']=None) -> 'Pipeline'Creates a copy of this instance.
method
python.pyspark.ml.connect.pipeline.Pipeline.getStages() -> List[Params]Get pipeline stages.
method
python.pyspark.ml.connect.pipeline.Pipeline.setParams(*stages:Optional[List[Params]]=None) -> 'Pipeline'setParams(self, \*, stages=None) Sets params for Pipeline.
method
python.pyspark.ml.connect.pipeline.Pipeline.setStages(value:List[Params]) -> 'Pipeline'Set pipeline stages.
method
python.pyspark.ml.evaluation.Evaluator.evaluate(dataset:DataFrame, params:Optional['ParamMap']=None) -> floatEvaluates the output with optional parameters.
class
python.pyspark.ml.feature.BinarizerBinarize a column of continuous features given a threshold.
method
python.pyspark.ml.feature.Binarizer.setInputCol(value:str) -> 'Binarizer'Sets the value of :py:attr:`inputCol`.
method
python.pyspark.ml.feature.Binarizer.setInputCols(value:List[str]) -> 'Binarizer'Sets the value of :py:attr:`inputCols`.
method
python.pyspark.ml.feature.Binarizer.setOutputCol(value:str) -> 'Binarizer'Sets the value of :py:attr:`outputCol`.
method
python.pyspark.ml.feature.Binarizer.setOutputCols(value:List[str]) -> 'Binarizer'Sets the value of :py:attr:`outputCols`.
method
python.pyspark.ml.feature.Binarizer.setThreshold(value:float) -> 'Binarizer'Sets the value of :py:attr:`threshold`.
method
python.pyspark.ml.feature.Binarizer.setThresholds(value:List[float]) -> 'Binarizer'Sets the value of :py:attr:`thresholds`.
class
python.pyspark.ml.feature.BucketedRandomProjectionLSHLSH class for Euclidean distance metrics.
method
python.pyspark.ml.feature.BucketedRandomProjectionLSH.setBucketLength(value:float) -> 'BucketedRandomProjectionLSH'Sets the value of :py:attr:`bucketLength`.
method
python.pyspark.ml.feature.BucketedRandomProjectionLSH.setSeed(value:int) -> 'BucketedRandomProjectionLSH'Sets the value of :py:attr:`seed`.
class
python.pyspark.ml.feature.ChiSqSelectorModelModel fitted by :py:class:`ChiSqSelector`.
method
python.pyspark.ml.feature.CountVectorizer.setBinary(value:bool) -> 'CountVectorizer'Sets the value of :py:attr:`binary`.
method
python.pyspark.ml.feature.CountVectorizer.setInputCol(value:str) -> 'CountVectorizer'Sets the value of :py:attr:`inputCol`.
method
python.pyspark.ml.feature.CountVectorizer.setMaxDF(value:float) -> 'CountVectorizer'Sets the value of :py:attr:`maxDF`.
About this data
These signatures were extracted from the public source of apache/spark
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.