attribute error? [on hold]












0












$begingroup$


---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-30-82569312233d> in <module>
1 model = LogisticRegression(),
----> 2 model.fit(x_train, y_train),
3 predictions = model.predict(x_test),
4 print(accuracy_score(y_test, predictions))
5

AttributeError: 'tuple' object has no attribute 'fit'









share|improve this question









New contributor




Mani Dhatrika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



put on hold as unclear what you're asking by Siong Thye Goh, Kiritee Gak, Ethan, Toros91, Dawny33 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • $begingroup$
    Can you share more information about your code and/or your data?
    $endgroup$
    – TQA
    2 days ago






  • 1




    $begingroup$
    Please consider editing your question. In its current form it is at risk of being closed.
    $endgroup$
    – Ethan
    2 days ago
















0












$begingroup$


---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-30-82569312233d> in <module>
1 model = LogisticRegression(),
----> 2 model.fit(x_train, y_train),
3 predictions = model.predict(x_test),
4 print(accuracy_score(y_test, predictions))
5

AttributeError: 'tuple' object has no attribute 'fit'









share|improve this question









New contributor




Mani Dhatrika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



put on hold as unclear what you're asking by Siong Thye Goh, Kiritee Gak, Ethan, Toros91, Dawny33 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • $begingroup$
    Can you share more information about your code and/or your data?
    $endgroup$
    – TQA
    2 days ago






  • 1




    $begingroup$
    Please consider editing your question. In its current form it is at risk of being closed.
    $endgroup$
    – Ethan
    2 days ago














0












0








0





$begingroup$


---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-30-82569312233d> in <module>
1 model = LogisticRegression(),
----> 2 model.fit(x_train, y_train),
3 predictions = model.predict(x_test),
4 print(accuracy_score(y_test, predictions))
5

AttributeError: 'tuple' object has no attribute 'fit'









share|improve this question









New contributor




Mani Dhatrika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-30-82569312233d> in <module>
1 model = LogisticRegression(),
----> 2 model.fit(x_train, y_train),
3 predictions = model.predict(x_test),
4 print(accuracy_score(y_test, predictions))
5

AttributeError: 'tuple' object has no attribute 'fit'






error-handling






share|improve this question









New contributor




Mani Dhatrika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Mani Dhatrika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago









TQA

1549




1549






New contributor




Mani Dhatrika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Mani DhatrikaMani Dhatrika

1




1




New contributor




Mani Dhatrika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Mani Dhatrika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Mani Dhatrika is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by Siong Thye Goh, Kiritee Gak, Ethan, Toros91, Dawny33 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









put on hold as unclear what you're asking by Siong Thye Goh, Kiritee Gak, Ethan, Toros91, Dawny33 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • $begingroup$
    Can you share more information about your code and/or your data?
    $endgroup$
    – TQA
    2 days ago






  • 1




    $begingroup$
    Please consider editing your question. In its current form it is at risk of being closed.
    $endgroup$
    – Ethan
    2 days ago


















  • $begingroup$
    Can you share more information about your code and/or your data?
    $endgroup$
    – TQA
    2 days ago






  • 1




    $begingroup$
    Please consider editing your question. In its current form it is at risk of being closed.
    $endgroup$
    – Ethan
    2 days ago
















$begingroup$
Can you share more information about your code and/or your data?
$endgroup$
– TQA
2 days ago




$begingroup$
Can you share more information about your code and/or your data?
$endgroup$
– TQA
2 days ago




1




1




$begingroup$
Please consider editing your question. In its current form it is at risk of being closed.
$endgroup$
– Ethan
2 days ago




$begingroup$
Please consider editing your question. In its current form it is at risk of being closed.
$endgroup$
– Ethan
2 days ago










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to label and detect the document text images

Vallis Paradisi

Tabula Rosettana