How to copy/paste from "Sorry, the application XXX has stopped unexpectedly"

76

Nope, there is no way to copy/paste. You can "vote" for this issue to be fixed at:

Share:
76

Related videos on Youtube

abc196998
Author by

abc196998

Updated on September 18, 2022

Comments

  • abc196998
    abc196998 almost 2 years

    I want to calculate the odds ratio between 2 features, but I got different results as follows:

    import numpy as np
    x= [1,2,3,2,1]
    y= [1,0,1,0,1]
    x1 = np.array(x).reshape(-1,1)
    y1 = np.array(y).reshape(-1,1)
    
    # method1
    from sklearn.linear_model import LogisticRegression
    clf = LogisticRegression()
    clf.fit(x1,y1)
    np.exp(clf.coef_)
    
    # method2 
    import statsmodels.api as sm
    res = sm.Logit(y1, x1).fit()
    np.exp(res.params)
    
    

    I got 0.79 for the first one and 1.11 for the second. I am not sure where I was wrong and really appreciate your help. Thanks.

    • Admin
      Admin almost 9 years
      Have you tried middle clicking? I used to run into this problem at my last job, but if I highlighted the text then switched over to a notepad app, middle clicking would simultaneously copy/paste in Ubuntu when nothing else would work.
    • Admin
      Admin over 7 years
      There is the feature request for the text to be copy/paste-able. Please vote here.
  • Admin
    Admin almost 9 years
    Great simple and effective.
  • Admin
    Admin over 7 years
    @DanDascalescu - That bug seems to be a duplicate of this one.