<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Serving a custom transformer class via a pyfunc wrapper for a pyspark recommendation model in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/serving-a-custom-transformer-class-via-a-pyfunc-wrapper-for-a/m-p/65276#M3170</link>
    <description>&lt;P&gt;I am trying to serve an ALS pyspark model with a custom transformer(for generating user-specific recommendations) via a pyfunc wrapper. Although I can successfully score the logged model, the serving endpoint is throwing the following error.&lt;/P&gt;&lt;P&gt;&lt;I&gt;URI '/model/artifacts/./sparkml' does not point to the current DFS.&lt;BR /&gt;File '/model/artifacts/./sparkml' not found on DFS. Will attempt to upload the file.&lt;BR /&gt;An error occurred while loading the model. 'NoneType' object has no attribute 'jvm'.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Following is a brief summary of the code snippets used for model training, logging, and the setup for model serving:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Model training and logging to MLflow Model Registry with additional requirements and code paths specified.&lt;/LI&gt;&lt;LI&gt;Custom PySpark ML Transformer implementation for generating user-specific recommendations.&lt;/LI&gt;&lt;LI&gt;Python pyfunc wrapper for serving the model&lt;/LI&gt;&lt;LI&gt;Attempt to serve the model using Databricks' MLflow serving feature, leading to the aforementioned error&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Tue, 02 Apr 2024 07:56:41 GMT</pubDate>
    <dc:creator>Nishat</dc:creator>
    <dc:date>2024-04-02T07:56:41Z</dc:date>
    <item>
      <title>Serving a custom transformer class via a pyfunc wrapper for a pyspark recommendation model</title>
      <link>https://community.databricks.com/t5/machine-learning/serving-a-custom-transformer-class-via-a-pyfunc-wrapper-for-a/m-p/65276#M3170</link>
      <description>&lt;P&gt;I am trying to serve an ALS pyspark model with a custom transformer(for generating user-specific recommendations) via a pyfunc wrapper. Although I can successfully score the logged model, the serving endpoint is throwing the following error.&lt;/P&gt;&lt;P&gt;&lt;I&gt;URI '/model/artifacts/./sparkml' does not point to the current DFS.&lt;BR /&gt;File '/model/artifacts/./sparkml' not found on DFS. Will attempt to upload the file.&lt;BR /&gt;An error occurred while loading the model. 'NoneType' object has no attribute 'jvm'.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Following is a brief summary of the code snippets used for model training, logging, and the setup for model serving:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Model training and logging to MLflow Model Registry with additional requirements and code paths specified.&lt;/LI&gt;&lt;LI&gt;Custom PySpark ML Transformer implementation for generating user-specific recommendations.&lt;/LI&gt;&lt;LI&gt;Python pyfunc wrapper for serving the model&lt;/LI&gt;&lt;LI&gt;Attempt to serve the model using Databricks' MLflow serving feature, leading to the aforementioned error&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 02 Apr 2024 07:56:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/serving-a-custom-transformer-class-via-a-pyfunc-wrapper-for-a/m-p/65276#M3170</guid>
      <dc:creator>Nishat</dc:creator>
      <dc:date>2024-04-02T07:56:41Z</dc:date>
    </item>
  </channel>
</rss>

