<?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: How to fix TypeError: __init__() got an unexpected keyword argument 'max_iter'? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27915#M19753</link>
    <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I m running the linear regression code in Community edition.&lt;/P&gt;
&lt;P&gt;Google says reinstall --&lt;/P&gt;
&lt;P&gt;pip install scikit-learn==0.18 --force-reinstall&lt;/P&gt;
&lt;P&gt;How to re-install in notebook?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 01:08:56 GMT</pubDate>
    <dc:creator>Maser_AZ</dc:creator>
    <dc:date>2019-07-30T01:08:56Z</dc:date>
    <item>
      <title>How to fix TypeError: __init__() got an unexpected keyword argument 'max_iter'?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27914#M19752</link>
      <description>&lt;P&gt;# Create the model using sklearn (don't worry about the parameters for now): model = SGDRegressor(loss='squared_loss', verbose=0, eta0=0.0003, max_iter=3000)&lt;/P&gt; &lt;B&gt; Train/fit the model to the train-part of the dataset:&lt;/B&gt; &lt;P&gt;odel.fit(X_train, y_train)&lt;/P&gt; &lt;P&gt;ERROR:&lt;/P&gt; &lt;P&gt;TypeError: &lt;B&gt;init&lt;/B&gt;() got an unexpected keyword argument 'max_iter'&lt;/P&gt; &lt;P&gt;TypeError Traceback (most recent call last) &amp;lt;command-894361499296960&amp;gt; in &amp;lt;module&amp;gt;() 1 # Create the model using sklearn (don't worry about the parameters for now): ----&amp;gt; 2 model = SGDRegressor(loss='squared_loss', verbose=0, eta0=0.0003, max_iter=3000) 3 4 # Train/fit the model to the train-part of the dataset: 5 model.fit(X_train, y_train)&lt;/P&gt; &lt;P&gt;TypeError: &lt;B&gt;init&lt;/B&gt;() got an unexpected keyword argument 'max_iter'&lt;/P&gt; &lt;P&gt;I m running the linear regression code in Community edition.&lt;/P&gt; &lt;P&gt;Google says reinstall --&lt;/P&gt; &lt;P&gt;pip install scikit-learn==0.18 --force-reinstall&lt;/P&gt; &lt;P&gt;How to re-install in notebook?&lt;/P&gt; &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 01:07:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27914#M19752</guid>
      <dc:creator>Maser_AZ</dc:creator>
      <dc:date>2019-07-30T01:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix TypeError: __init__() got an unexpected keyword argument 'max_iter'?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27915#M19753</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I m running the linear regression code in Community edition.&lt;/P&gt;
&lt;P&gt;Google says reinstall --&lt;/P&gt;
&lt;P&gt;pip install scikit-learn==0.18 --force-reinstall&lt;/P&gt;
&lt;P&gt;How to re-install in notebook?&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 01:08:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27915#M19753</guid>
      <dc:creator>Maser_AZ</dc:creator>
      <dc:date>2019-07-30T01:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix TypeError: __init__() got an unexpected keyword argument 'max_iter'?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27916#M19754</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Try replacing the failing line with the following:&lt;/P&gt;
&lt;P&gt;model = SGDRegressor(loss='squared_loss', verbose=0, eta0=0.0003,&lt;B&gt; n_iter&lt;/B&gt;=3000)&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 12:29:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27916#M19754</guid>
      <dc:creator>DanielHolth</dc:creator>
      <dc:date>2019-08-08T12:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix TypeError: __init__() got an unexpected keyword argument 'max_iter'?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27917#M19755</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Replacing &lt;I&gt;max_iter &lt;/I&gt;with &lt;I&gt;n_iter &lt;/I&gt;resolves the error. Thnx!&lt;/P&gt;
&lt;P&gt;It is a bit unusual to expect errors like this with this type of solution from Microsoft. As if it could not be prevented..&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 10:55:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27917#M19755</guid>
      <dc:creator>Fantomas_nl</dc:creator>
      <dc:date>2019-08-13T10:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix TypeError: __init__() got an unexpected keyword argument 'max_iter'?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27918#M19756</link>
      <description>&lt;P&gt;Thank you for your share.It is nice. &lt;A href="https://www.ancestormoneyshop.com/" alt="https://www.ancestormoneyshop.com/" target="_blank"&gt;Ancestormoneyshop&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 06:54:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-fix-typeerror-init-got-an-unexpected-keyword-argument-max/m-p/27918#M19756</guid>
      <dc:creator>kiradgs</dc:creator>
      <dc:date>2021-10-15T06:54:55Z</dc:date>
    </item>
  </channel>
</rss>

