fink_science/microlensing/classifier.py
def load_mulens_schema_twobands():
    """ DataFrame Schema for the mulens UDF using 2 filter bands

    Returns
    --------
    schema: StructType
        StructType with StructFields describing new columns to be added
        when using `mulens` in pyspark UDF. There are 2 new columns per
        filter bands: the classification name (str) and
        the mulens score (double).
    """
    schema = StructType([
        StructField("class_1", StringType(), True),
        StructField("ml_score_1", DoubleType(), True),
        StructField("class_2", StringType(), True),
        StructField("ml_score_2", DoubleType(), True)
    ])
    return schema
 DataFrame Schema for the mulens UDF using 2 filter bands

    Returns
    --------
    schema: StructType
        StructType with StructFields describing new columns to be added
        when using `mulens` in pyspark UDF. There are 2 new columns per
        filter bands: the classification name (str) and
        the mulens score (double).
    
DataFrame Schema for the mulens UDF using 2 filter bands
Returns

StructType
StructType with StructFields describing new columns to be added
when using `mulens` in pyspark UDF. There are 2 new columns per
filter bands: the classification name (str) and
the mulens score (double).
DataFrame Schema for the mulens UDF using 2 filter bands Returns StructType StructType with StructFields describing new columns to be added when using ` mulens ` in pyspark UDF . There are 2 new columns per filter bands : the classification name ( str ) and the mulens score ( double ) .
def load_mulens_schema_twobands():
    schema = StructType([
        StructField("class_1", StringType(), True),
        StructField("ml_score_1", DoubleType(), True),
        StructField("class_2", StringType(), True),
        StructField("ml_score_2", DoubleType(), True)
    ])
    return schema
def load_mulens_schema_twobands ( ) : schema = StructType ( [ StructField ( "class_1" , StringType ( ) , True ) , StructField ( "ml_score_1" , DoubleType ( ) , True ) , StructField ( "class_2" , StringType ( ) , True ) , StructField ( "ml_score_2" , DoubleType ( ) , True ) ] ) return schema
DataFrame Schema for the mulens UDF using 2 filter bands
Returns
DataFrame Schema for the mulens UDF using 2 filter bands Returns
""" DataFrame Schema for the mulens UDF using 2 filter bands

    Returns
    --------
    schema: StructType
        StructType with StructFields describing new columns to be added
        when using `mulens` in pyspark UDF. There are 2 new columns per
        filter bands: the classification name (str) and
        the mulens score (double).
    """