session.sql("DESC FUNCTION PREDICT_RISK_SCORE()").show() # ------------------------------------------------------------------------ # |"property" |"value" | # ------------------------------------------------------------------------ # |signature |() | # |returns |FLOAT | # |language |PYTHON | # |null handling |CALLED ON NULL INPUT | # |volatility |VOLATILE | # |body | | # | |import pickle | # | | | # | |func = pickle.loads(bytes.fromhex('800595050400... | # | |# The following comment contains the UDF source... | # | |# import pandas as pd | # | |# def read_file(filename): | # | |# import joblib | # | |# import sys | # | |# import os | # | |# | # | |# import_dir = sys._xoptions.get("snowflake... | # | |# if import_dir: | # | |# with open(os.path.join(import_dir, fi... | # | |# m = joblib.load(file) | # | |# return m | # | |# @F.udf(name = 'predict_risk_score', is_perman... | # | |# def predict_risk_score(*args) -> PandasSeries... | # | |# df = pd.DataFrame([args]) | # | |# pipeline = read_file('predict_risk_score.... | # | |# return pipeline.predict_proba(df)[:,1] | # | |# | # | |# func = predict_risk_score | # | |# | # | | *********RESULTS TRUNCATED************** | # ------------------------------------------------------------------------