Accuracy of the model Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara 2019 Moderator Election Q&A - Questionnaire 2019 Community Moderator Election ResultsCheck Accuracy of Model Provided by ConsultantHow to calculate accuracy on keras model with multiple outputs?Accuracy improvement for logistic regression modelMax 75% accuracy! help!Coursera ML - Does the choice of optimization algorithm affect the accuracy of multiclass logistic regression?Tensorflow regression predicting 1 for all inputsThe validation loss < training loss and validation accuracy < training accuracyWhat is the classification accuracy of a random classifier?My accuracy changes throughout every epoc but the val_acc at the end of each epoc stays the sameHow do data scientists test the claimed accuracy of a model?

A strange hotel

A Paper Record is What I Hamper

My bank got bought out, am I now going to have to start filing tax returns in a different state?

How long after the last departure shall the airport stay open for an emergency return?

Is Diceware more secure than a long passphrase?

Why does the Cisco show run command not show the full version, while the show version command does?

Is this homebrew racial feat, Stonehide, balanced?

Is it acceptable to use working hours to read general interest books?

Could Neutrino technically as side-effect, incentivize centralization of the bitcoin network?

Can you stand up from being prone using Skirmisher outside of your turn?

What to do with someone that cheated their way through university and a PhD program?

What is this word supposed to be?

Why is this method for solving linear equations systems using determinants works?

"Rubric" as meaning "signature" or "personal mark" -- is this accepted usage?

Are all CP/M-80 implementations binary compatible?

std::is_constructible on incomplete types

Error: Syntax error. Missing ')' for CASE Statement

SQL Query not selecting all points that it should?

Second order approximation of the loss function (Deep learning book, 7.33)

Do you need a weapon for Thunderous Smite, and the other 'Smite' spells?

All ASCII characters with a given bit count

How would this chord from "Rocket Man" be analyzed?

Would reducing the reference voltage of an ADC have any effect on accuracy?

Why did Israel vote against lifting the American embargo on Cuba?



Accuracy of the model



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
2019 Moderator Election Q&A - Questionnaire
2019 Community Moderator Election ResultsCheck Accuracy of Model Provided by ConsultantHow to calculate accuracy on keras model with multiple outputs?Accuracy improvement for logistic regression modelMax 75% accuracy! help!Coursera ML - Does the choice of optimization algorithm affect the accuracy of multiclass logistic regression?Tensorflow regression predicting 1 for all inputsThe validation loss < training loss and validation accuracy < training accuracyWhat is the classification accuracy of a random classifier?My accuracy changes throughout every epoc but the val_acc at the end of each epoc stays the sameHow do data scientists test the claimed accuracy of a model?










0












$begingroup$


I'm using this dataset and i'm trying to do logistic regression



heart_data = pd.read_csv('../input/heart-disease-uci/heart.csv')
X = heart_data.iloc[:,:-1]
y = heart_data.iloc[:,-1]
X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=0.20,random_state=5,shuffle=True)

from sklearn.preprocessing import MinMaxScaler

nr = MinMaxScaler()
X_train = nr.fit_transform(X_train)
X_test = nr.transform(X_test)

from sklearn.metrics import accuracy_score,confusion_matrix

def cal(method,c=1):
lr = LogisticRegression(C=c,solver=method)
for i in method:
print(i,'->>>>>>>>',cal(i))


enter image description here



First is training accuracy and second one is testing accuracy.
why am i getting more testing accuracy over training?



And Is there another way to increase the both accuracy?
I'm using min-max scaling so are there any other normalization to increase the accuracy more or this is the best accuracy we can get using logistic?










share|improve this question









New contributor




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







$endgroup$
















    0












    $begingroup$


    I'm using this dataset and i'm trying to do logistic regression



    heart_data = pd.read_csv('../input/heart-disease-uci/heart.csv')
    X = heart_data.iloc[:,:-1]
    y = heart_data.iloc[:,-1]
    X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=0.20,random_state=5,shuffle=True)

    from sklearn.preprocessing import MinMaxScaler

    nr = MinMaxScaler()
    X_train = nr.fit_transform(X_train)
    X_test = nr.transform(X_test)

    from sklearn.metrics import accuracy_score,confusion_matrix

    def cal(method,c=1):
    lr = LogisticRegression(C=c,solver=method)
    for i in method:
    print(i,'->>>>>>>>',cal(i))


    enter image description here



    First is training accuracy and second one is testing accuracy.
    why am i getting more testing accuracy over training?



    And Is there another way to increase the both accuracy?
    I'm using min-max scaling so are there any other normalization to increase the accuracy more or this is the best accuracy we can get using logistic?










    share|improve this question









    New contributor




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







    $endgroup$














      0












      0








      0





      $begingroup$


      I'm using this dataset and i'm trying to do logistic regression



      heart_data = pd.read_csv('../input/heart-disease-uci/heart.csv')
      X = heart_data.iloc[:,:-1]
      y = heart_data.iloc[:,-1]
      X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=0.20,random_state=5,shuffle=True)

      from sklearn.preprocessing import MinMaxScaler

      nr = MinMaxScaler()
      X_train = nr.fit_transform(X_train)
      X_test = nr.transform(X_test)

      from sklearn.metrics import accuracy_score,confusion_matrix

      def cal(method,c=1):
      lr = LogisticRegression(C=c,solver=method)
      for i in method:
      print(i,'->>>>>>>>',cal(i))


      enter image description here



      First is training accuracy and second one is testing accuracy.
      why am i getting more testing accuracy over training?



      And Is there another way to increase the both accuracy?
      I'm using min-max scaling so are there any other normalization to increase the accuracy more or this is the best accuracy we can get using logistic?










      share|improve this question









      New contributor




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







      $endgroup$




      I'm using this dataset and i'm trying to do logistic regression



      heart_data = pd.read_csv('../input/heart-disease-uci/heart.csv')
      X = heart_data.iloc[:,:-1]
      y = heart_data.iloc[:,-1]
      X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=0.20,random_state=5,shuffle=True)

      from sklearn.preprocessing import MinMaxScaler

      nr = MinMaxScaler()
      X_train = nr.fit_transform(X_train)
      X_test = nr.transform(X_test)

      from sklearn.metrics import accuracy_score,confusion_matrix

      def cal(method,c=1):
      lr = LogisticRegression(C=c,solver=method)
      for i in method:
      print(i,'->>>>>>>>',cal(i))


      enter image description here



      First is training accuracy and second one is testing accuracy.
      why am i getting more testing accuracy over training?



      And Is there another way to increase the both accuracy?
      I'm using min-max scaling so are there any other normalization to increase the accuracy more or this is the best accuracy we can get using logistic?







      machine-learning feature-selection logistic-regression accuracy






      share|improve this question









      New contributor




      Utsav Patel 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




      Utsav Patel 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 hours ago









      oW_

      3,496933




      3,496933






      New contributor




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









      asked 2 hours ago









      Utsav PatelUtsav Patel

      1




      1




      New contributor




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





      New contributor





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






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




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "557"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Utsav Patel is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f50876%2faccuracy-of-the-model%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Utsav Patel is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          Utsav Patel is a new contributor. Be nice, and check out our Code of Conduct.












          Utsav Patel is a new contributor. Be nice, and check out our Code of Conduct.











          Utsav Patel is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Data Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f50876%2faccuracy-of-the-model%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown