Skip to content

Instantly share code, notes, and snippets.

@v0dro
Created May 7, 2015 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save v0dro/f8c71232f318a4c9f23b to your computer and use it in GitHub Desktop.
Save v0dro/f8c71232f318a4c9f23b to your computer and use it in GitHub Desktop.
statsample build failure with gsl-nmatrix
1) Error:
StatsampleFactorTestCase#test_covariance_matrix:
NoMethodError: private method `[]=' called for #<Matrix:0xa1667a0>
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:156:in `block (2 levels) in component_matrix_covariance'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:155:in `times'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:155:in `block in component_matrix_covariance'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:154:in `times'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:154:in `component_matrix_covariance'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:145:in `component_matrix'
/home/sameer/gitrepos/statsample/test/test_factor.rb:25:in `test_covariance_matrix'
2) Error:
StatsampleFactorTestCase#test_principalcomponents_ruby_gsl:
NoMethodError: private method `[]=' called for Matrix[[1, 0, 0], [0, 1, 0], [0, 0, 1]]:Matrix
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:1086:in `J'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:1104:in `cJacobi'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:1116:in `cJacobiA'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:1124:in `eigenvaluesJacobi'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:511:in `eigenpairs'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:209:in `calculate_eigenpairs'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:78:in `initialize'
/home/sameer/gitrepos/statsample/test/test_factor.rb:55:in `new'
/home/sameer/gitrepos/statsample/test/test_factor.rb:55:in `block in test_principalcomponents_ruby_gsl'
/home/sameer/gitrepos/statsample/test/test_factor.rb:42:in `each'
/home/sameer/gitrepos/statsample/test/test_factor.rb:42:in `test_principalcomponents_ruby_gsl'
3) Error:
StatsampleFactorTestCase#test_kmo_univariate:
NoMethodError: private method `[]=' called for #<Matrix:0xa388470>
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:356:in `block in diag'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:354:in `times'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:354:in `diag'
/home/sameer/gitrepos/statsample/lib/statsample/factor.rb:45:in `anti_image_correlation_matrix'
/home/sameer/gitrepos/statsample/lib/statsample/factor.rb:91:in `kmo_univariate'
/home/sameer/gitrepos/statsample/test/test_factor.rb:137:in `block in test_kmo_univariate'
/home/sameer/gitrepos/statsample/test/test_factor.rb:136:in `times'
/home/sameer/gitrepos/statsample/test/test_factor.rb:136:in `each'
/home/sameer/gitrepos/statsample/test/test_factor.rb:136:in `map'
/home/sameer/gitrepos/statsample/test/test_factor.rb:136:in `test_kmo_univariate'
4) Error:
StatsampleFactorTestCase#test_principalcomponents:
NoMethodError: private method `[]=' called for Matrix[[1, 0], [0, 1]]:Matrix
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:1086:in `J'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:1104:in `cJacobi'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:1116:in `cJacobiA'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:1124:in `eigenvaluesJacobi'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:511:in `eigenpairs'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:209:in `calculate_eigenpairs'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:78:in `initialize'
/home/sameer/gitrepos/statsample/test/test_factor.rb:94:in `new'
/home/sameer/gitrepos/statsample/test/test_factor.rb:94:in `principalcomponents'
/home/sameer/gitrepos/statsample/test/test_factor.rb:82:in `test_principalcomponents'
5) Error:
StatsampleFactorTestCase#test_kmo:
NoMethodError: private method `[]=' called for Matrix[[0, 0, 0], [0, 0, 0], [0, 0, 0]]:Matrix
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:356:in `block in diag'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:354:in `times'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:354:in `diag'
/home/sameer/gitrepos/statsample/lib/statsample/factor.rb:45:in `anti_image_correlation_matrix'
/home/sameer/gitrepos/statsample/lib/statsample/factor.rb:64:in `kmo'
/home/sameer/gitrepos/statsample/test/test_factor.rb:128:in `test_kmo'
6) Error:
StatsampleFactorTestCase#test_pca:
NoMethodError: private method `[]=' called for Matrix[[0], [0]]:Matrix
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:156:in `block (2 levels) in component_matrix_covariance'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:155:in `times'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:155:in `block in component_matrix_covariance'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:154:in `times'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:154:in `component_matrix_covariance'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:145:in `component_matrix'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:231:in `block in report_building'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:71:in `call'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:71:in `parse_element'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:56:in `block in parse_cycle'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:55:in `each'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:55:in `parse_cycle'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/section.rb:31:in `report_building_text'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:73:in `parse_element'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:108:in `section'
/home/sameer/gitrepos/statsample/lib/statsample/factor/pca.rb:214:in `report_building'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:75:in `parse_element'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:56:in `block in parse_cycle'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:55:in `each'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder.rb:55:in `parse_cycle'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder/builder/text.rb:17:in `parse'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/reportbuilder-1.4.2/lib/reportbuilder.rb:169:in `to_text'
/home/sameer/gitrepos/statsample/lib/statsample.rb:271:in `summary'
/home/sameer/gitrepos/statsample/test/test_factor.rb:173:in `pca_set'
/home/sameer/gitrepos/statsample/test/test_factor.rb:150:in `test_pca'
7) Error:
StatsampleFactorTestCase#test_antiimage:
NoMethodError: private method `[]=' called for Matrix[[0, 0, 0], [0, 0, 0], [0, 0, 0]]:Matrix
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:356:in `block in diag'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:354:in `times'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/extendmatrix-0.3.1/lib/extendmatrix.rb:354:in `diag'
/home/sameer/gitrepos/statsample/lib/statsample/factor.rb:37:in `anti_image_covariance_matrix'
/home/sameer/gitrepos/statsample/test/test_factor.rb:117:in `test_antiimage'
8) Error:
StatsampleFactorMpaTestCase#test_: Statsample::Factor::MAP should return correct values with pure ruby. :
TypeError: no implicit conversion of Range into Integer
/home/sameer/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/1.9.2/stdlib/matrix.rb:315:in `fetch'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/backports-3.6.4/lib/backports/1.9.2/stdlib/matrix.rb:315:in `[]'
/home/sameer/gitrepos/statsample/lib/statsample/factor/map.rb:78:in `block in compute'
/home/sameer/gitrepos/statsample/lib/statsample/factor/map.rb:76:in `times'
/home/sameer/gitrepos/statsample/lib/statsample/factor/map.rb:76:in `compute'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/dirty-memoize-0.0.4/lib/dirty-memoize.rb:59:in `block (2 levels) in dirty_memoize'
/home/sameer/gitrepos/statsample/test/test_factor_map.rb:33:in `map_assertions'
/home/sameer/gitrepos/statsample/test/test_factor_map.rb:22:in `block (2 levels) in <class:StatsampleFactorMpaTestCase>'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `instance_exec'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/shoulda-context-1.2.1/lib/shoulda/context/context.rb:413:in `block in create_test_from_should_hash'
403 runs, 1464 assertions, 0 failures, 8 errors, 0 skips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment