Created
July 12, 2016 20:33
-
-
Save lokeshh/cd1a0c635cda592b2c7925c2df6ebaed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [16] pry(main)> k | |
| => #<Daru::DataFrame(14x4)> | |
| b c_no c_yes y | |
| 0 62.1 1 0 0 | |
| 1 74.7 0 1 1 | |
| 2 69.7 1 0 1 | |
| 3 71 1 0 0 | |
| 4 56.9 1 0 1 | |
| 5 58.7 1 0 0 | |
| 6 63.3 1 0 0 | |
| 7 70.4 0 1 1 | |
| 8 70.5 1 0 1 | |
| 9 59.2 1 0 0 | |
| 10 76.4 1 0 0 | |
| 11 71.7 1 0 0 | |
| 12 57.5 0 1 1 | |
| 13 61.1 1 0 1 | |
| [17] pry(main)> t = Statsample::GLM.compute k, 'y', :logistic | |
| ExceptionForMatrix::ErrNotRegular: Not Regular Matrix | |
| from /home/ubuntu/.rvm/gems/ruby-2.2.3/gems/backports-3.6.8/lib/backports/1.9.2/stdlib/matrix.rb:933:in `block in inverse_from' | |
| [18] pry(main)> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment