This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
stat.pyi
59 lines (50 loc) · 2.04 KB
/
stat.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Stubs for pyspark.ml.stat (Python 3)
from typing import Any, Optional
from pyspark.ml.linalg import Matrix, Vector
from pyspark.ml.wrapper import JavaWrapper
from pyspark.sql.column import Column
from pyspark.sql.dataframe import DataFrame
from py4j.java_gateway import JavaObject # type: ignore[import]
class ChiSquareTest:
@staticmethod
def test(dataset: DataFrame, featuresCol: str, labelCol: str) -> DataFrame: ...
class Correlation:
@staticmethod
def corr(dataset: DataFrame, column: str, method: str = ...) -> DataFrame: ...
class KolmogorovSmirnovTest:
@staticmethod
def test(
dataset: DataFrame, sampleCol: str, distName: str, *params: float
) -> DataFrame: ...
class Summarizer:
@staticmethod
def mean(col: Column, weightCol: Optional[Column] = ...) -> Column: ...
@staticmethod
def sum(col: Column, weightCol: Optional[Column] = ...) -> Column: ...
@staticmethod
def variance(col: Column, weightCol: Optional[Column] = ...) -> Column: ...
@staticmethod
def std(col: Column, weightCol: Optional[Column] = ...) -> Column: ...
@staticmethod
def count(col: Column, weightCol: Optional[Column] = ...) -> Column: ...
@staticmethod
def numNonZeros(col: Column, weightCol: Optional[Column] = ...) -> Column: ...
@staticmethod
def max(col: Column, weightCol: Optional[Column] = ...) -> Column: ...
@staticmethod
def min(col: Column, weightCol: Optional[Column] = ...) -> Column: ...
@staticmethod
def normL1(col: Column, weightCol: Optional[Column] = ...) -> Column: ...
@staticmethod
def normL2(col: Column, weightCol: Optional[Column] = ...) -> Column: ...
@staticmethod
def metrics(*metrics: str) -> SummaryBuilder: ...
class SummaryBuilder(JavaWrapper):
def __init__(self, jSummaryBuilder: JavaObject) -> None: ...
def summary(
self, featuresCol: Column, weightCol: Optional[Column] = ...
) -> Column: ...
class MultivariateGaussian:
mean: Vector
cov: Matrix
def __init__(self, mean: Vector, cov: Matrix) -> None: ...