<?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 Re: EOFError trying to assign a model using a custom module in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/eoferror-trying-to-assign-a-model-using-a-custom-module/m-p/12890#M668</link>
    <description>&lt;P&gt;&lt;A href="https://community.databricks.com/s/question/0D53f00001HKIFUCA5/cluster-does-not-start-coursera-training-distributed-computing-with-spark-sql" alt="https://community.databricks.com/s/question/0D53f00001HKIFUCA5/cluster-does-not-start-coursera-training-distributed-computing-with-spark-sql" target="_blank"&gt;https://community.databricks.com/s/question/0D53f00001HKIFUCA5/cluster-does-not-start-coursera-training-distributed-computing-with-spark-sql&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jul 2022 08:50:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-23T08:50:39Z</dc:date>
    <item>
      <title>EOFError trying to assign a model using a custom module</title>
      <link>https://community.databricks.com/t5/machine-learning/eoferror-trying-to-assign-a-model-using-a-custom-module/m-p/12889#M667</link>
      <description>&lt;P&gt;I'm in a Data Science Bootcamp, and the final case study includes data preprocessing (done), using a linear regression model on the data, then porting to SQL for visualization. The model build uses custom python code provided as part of the exercise. I've attached that code, and the two files that the code pickles. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Python command used:&lt;/P&gt;&lt;P&gt;model = absenteeism_model('/dbfs/FileStore/shared_uploads/1009276498.DIGIOVANN/model', '/dbfs/FileStore/shared_uploads/1009276498.DIGIOVANN/scaler')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even with the explicit path provided to these files, I get the error below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EOFError                                  Traceback (most recent call last)&lt;/P&gt;&lt;P&gt;&amp;lt;command-725274&amp;gt; in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;----&amp;gt; 1 model = absenteeism_model('/dbfs/FileStore/shared_uploads/1009276498.DIGIOVANN/model', '/dbfs/FileStore/shared_uploads/1009276498.DIGIOVANN/scaler')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/dbfs/FileStore/shared_uploads/1009276498.DIGIOVANN/absenteeism_module.py in __init__(self, model_file, scaler_file)&lt;/P&gt;&lt;P&gt;     41             with open('model','rb') as model_file, open('scaler', 'rb') as scaler_file:&lt;/P&gt;&lt;P&gt;     42                 self.reg = pickle.load(model_file)&lt;/P&gt;&lt;P&gt;---&amp;gt; 43                 self.scaler = pickle.load(scaler_file)&lt;/P&gt;&lt;P&gt;     44                 self.data = None&lt;/P&gt;&lt;P&gt;     45 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EOFError: Ran out of input&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 16:28:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/eoferror-trying-to-assign-a-model-using-a-custom-module/m-p/12889#M667</guid>
      <dc:creator>jdigiovanni</dc:creator>
      <dc:date>2022-07-21T16:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: EOFError trying to assign a model using a custom module</title>
      <link>https://community.databricks.com/t5/machine-learning/eoferror-trying-to-assign-a-model-using-a-custom-module/m-p/12890#M668</link>
      <description>&lt;P&gt;&lt;A href="https://community.databricks.com/s/question/0D53f00001HKIFUCA5/cluster-does-not-start-coursera-training-distributed-computing-with-spark-sql" alt="https://community.databricks.com/s/question/0D53f00001HKIFUCA5/cluster-does-not-start-coursera-training-distributed-computing-with-spark-sql" target="_blank"&gt;https://community.databricks.com/s/question/0D53f00001HKIFUCA5/cluster-does-not-start-coursera-training-distributed-computing-with-spark-sql&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2022 08:50:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/eoferror-trying-to-assign-a-model-using-a-custom-module/m-p/12890#M668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-23T08:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: EOFError trying to assign a model using a custom module</title>
      <link>https://community.databricks.com/t5/machine-learning/eoferror-trying-to-assign-a-model-using-a-custom-module/m-p/12891#M669</link>
      <description>&lt;P&gt;It would be great if you could share the full stack trace to check what happened.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 20:36:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/eoferror-trying-to-assign-a-model-using-a-custom-module/m-p/12891#M669</guid>
      <dc:creator>Prabakar</dc:creator>
      <dc:date>2022-07-24T20:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: EOFError trying to assign a model using a custom module</title>
      <link>https://community.databricks.com/t5/machine-learning/eoferror-trying-to-assign-a-model-using-a-custom-module/m-p/12892#M670</link>
      <description>&lt;P&gt;Hi @Joe DiGiovanni​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check in if you were able to resolve your issue or do you need more help? We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 12:54:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/eoferror-trying-to-assign-a-model-using-a-custom-module/m-p/12892#M670</guid>
      <dc:creator>Vidula</dc:creator>
      <dc:date>2022-09-05T12:54:30Z</dc:date>
    </item>
  </channel>
</rss>

