Skip to content

Commit

Permalink
Remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aliazzzdat authored Jul 24, 2024
1 parent 87efc6c commit dc1c0df
Showing 1 changed file with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,26 +312,19 @@ data = rounded_taxi_data(data)
# COMMAND ----------

{{ if (eq .input_include_feature_store `yes`) }}
###########################################################################################
# Temporary fix as FS model can't predict as pyfunc model #
# MLflow evaluate can take a lambda function instead of model uri for model #
# but not for baseline model it requires model_uri (baseline comparison set to false) #
###########################################################################################
# Temporary fix as FS model can't predict as a pyfunc model
# MLflow evaluate can take a lambda function instead of a model uri for a model
# but id does not work for the baseline model as it requires a model_uri (baseline comparison is set to false)

from databricks.feature_store import FeatureStoreClient


def get_fs_model(df):
fs_client = FeatureStoreClient()
return (
fs_client.score_batch(model_uri, spark.createDataFrame(df))
.select("prediction")
.toPandas()
)


###########################################################################################

{{ end }}

training_run = get_training_run(model_name, model_version)
Expand Down

0 comments on commit dc1c0df

Please sign in to comment.