Skip to content

Commit

Permalink
Update constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Oct 19, 2023
1 parent 3a77b5d commit 29518d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fink_science/random_forest_snia/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def apply_selection_cuts_ztf(
@pandas_udf(DoubleType(), PandasUDFType.SCALAR)
def rfscore_sigmoid_full(
jd, fid, magpsf, sigmapsf, cdsxmatch, ndethist,
min_rising_points=2, min_data_points=4, rising_criteria='ewma',
min_rising_points=pd.Series([2]),
min_data_points=pd.Series([4]),
rising_criteria=pd.Series(['ewma']),
model=None) -> pd.Series:
""" Return the probability of an alert to be a SNe Ia using a Random
Forest Classifier (sigmoid fit).
Expand Down Expand Up @@ -218,7 +220,9 @@ def rfscore_sigmoid_full(
@pandas_udf(StringType(), PandasUDFType.SCALAR)
def extract_features_rf_snia(
jd, fid, magpsf, sigmapsf, cdsxmatch, ndethist,
min_rising_points=2, min_data_points=4, rising_criteria='ewma') -> pd.Series:
min_rising_points=pd.Series([2]),
min_data_points=pd.Series([4]),
rising_criteria=pd.Series(['ewma'])) -> pd.Series:
""" Return the features used by the RF classifier.
There are 12 features. Order is:
Expand Down

0 comments on commit 29518d8

Please sign in to comment.