bugGNU Octave - Bugs: bug #44863, [octave forge] (statistics)...

 
 

bug #44863: [octave forge] (statistics) version 1.2.4 fails tests

Submitter:  John Donoghue <lostbard>
Submitted:  Fri 17 Apr 2015 02:24:26 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  lostbard
Originator Name:  JohnD Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 10 May 2018 06:49:57 PM UTC, comment #3: 

Other changes pushed to repo as well - current dev statistics runs tests.

Linux (tested on fedora octave 4.4)
  PASS                             2413
  FAIL                                0
  XFAIL (reported bug)                4


Windows(tested on Windows 10 64bit octave 4.4)
  PASS                             2413
  FAIL                                0
  XFAIL (reported bug)                4

Closing as fixed

John Donoghue <lostbard>
Group Member
Thu 10 May 2018 06:15:38 PM UTC, comment #2: 

Version 1.3.0 fails test also

missing dat files fixed on:
https://sourceforge.net/p/octave/statistics/ci/9a015fc02a506d5546dffbb16898bc9a1c228cc7/


John Donoghue <lostbard>
Group Member
Fri 17 Apr 2015 02:32:56 PM UTC, comment #1: 

In Linux:
PASS 221
FAIL 23

The difference in test failures is that it didn't fail the two tests below for tolerance issues.

John Donoghue <lostbard>
Group Member
Fri 17 Apr 2015 02:24:26 PM UTC, original submission:  

PASS       219
FAIL        25

12 of the failures are due to tests in private functions.

The others:

>>>>> processing C:OctaveOctave-4.0.0-rc3shareoctavepackagesstatistics-1.2.4caseread.m
***** assert (caseread ("caseread.dat"), n);
!!!!! test failed
caseread: cannot open caseread.dat: No such file or directory
>>>>> processing C:OctaveOctave-4.0.0-rc3shareoctavepackagesstatistics-1.2.4gevcdf.m
***** test #check for continuity for k near 0
 x = 1;
 sigma = 0.5;
 k = -0.03:0.01:0.03;
 mu = 0;
 p = gevcdf (x, k, sigma, mu);
 expected_p = [0.88062   0.87820   0.87580   0.87342   0.87107   0.86874   0.86643];
 assert (p, expected_p, 0.001);
!!!!! test failed
ASSERT errors for:  assert (p,expected_p,0.001)

  Location  |  Observed  |  Expected  |  Reason
    (4)        0.36788      0.87342      Abs err 0.50554 exceeds tol 0.001
>>>>> processing C:OctaveOctave-4.0.0-rc3shareoctavepackagesstatistics-1.2.4gevpdf.m
***** test #check for continuity for k near 0
 x = 1;
 sigma = 0.5;
 k = -0.03:0.01:0.03;
 mu = 0;
 y = gevpdf (x, k, sigma, mu);
 expected_y = [0.23820   0.23764   0.23704   0.23641   0.23576   0.23508   0.23438];
 assert (y, expected_y, 0.001);
!!!!! test failed
ASSERT errors for:  assert (y,expected_y,0.001)

  Location  |  Observed  |  Expected  |  Reason
    (4)        0.73576      0.23641      Abs err 0.49935 exceeds tol 0.001
>>>>> processing C:OctaveOctave-4.0.0-rc3shareoctavepackagesstatistics-1.2.4linkage.m
***** warning <monotonically> linkage (pdist (x), "centroid");
!!!!! warning failed.
Expected <monotonically>, but got <clustering>

shared variables
  scalar structure containing the fields:

    x =

       0   1   4
       3   2   3
       1   2   2
       3   3   0
       0   4   4
       4   4   3
       1   1   4
       2   1   0
       4   2   0
       3   2   0
       0   2   1
       1   3   1

    t =   1.0000e-006
***** warning <monotonically> linkage (pdist (x), "median");
!!!!! warning failed.
Expected <monotonically>, but got <clustering>
shared variables
  scalar structure containing the fields:

    x =

       0   1   4
       3   2   3
       1   2   2
       3   3   0
       0   4   4
       4   4   3
       1   1   4
       2   1   0
       4   2   0
       3   2   0
       0   2   1
      1   3   1

    t =   1.0000e-006
>>>>> processing C:OctaveOctave-4.0.0-rc3shareoctavepackagesstatistics-1.2.4pdist.m
***** assert(pdist(xy,"correlation"),[0.000 2.000 0.000 2.000 0.000 2.000],t);
!!!!! test failed
'cor' undefined near line 172 column 16
shared variables
  scalar structure containing the fields:

    xy =

       0   1
       0   2
       7   6
       5   6

    t =  0.0010000
    eucl =
@(v, m) sqrt (sumsq (repmat (v, rows (m), 1) - m, 2))

>>>>> processing C:OctaveOctave-4.0.0-rc3shareoctavepackagesstatistics-1.2.4stepwisefit.m
***** test
 % Sample data from Draper and Smith (n = 13, k = 4)
 X = [7 1 11 11 7 11 3 1 2 21 1 11 10; ...
     26 29 56 31 52 55 71 31 54 47 40 66 68; ...
     6 15 8 8 6 9 17 22 18 4 23 9 8; ...
     60 52 20 47 33 22 6 44 22 26 34 12 12]';
 y = [78.5 74.3 104.3 87.6 95.9 109.2 102.7 72.5 93.1 115.9 83.8 113.3 109.4]';
 [X_use, b, bint, r, rint, stats] = stepwisefit(y, X);
 assert(X_use, [4 1])
 assert(b, regress(y, [ones(size(y)) X(:, X_use)], 0.05))
!!!!! test failed
'corrcoef' undefined near line 78 column 29
>>>>> processing C:OctaveOctave-4.0.0-rc3shareoctavepackagesstatistics-1.2.4tblread.m
***** test
 [dt vt ct] = tblread ("tblread-space.dat");
 assert (dt, d);
 assert (vt, v);
 assert (ct, c);
!!!!! test failed
csv2cell: cannot open file tblread-space.dat for reading
***** test
 [dt vt ct] = tblread ("tblread-space.dat", " ");
 assert (dt, d);
 assert (vt, v);
 assert (ct, c);
!!!!! test failed
csv2cell: cannot open file tblread-space.dat for reading
.
.
(other tests here with same failure....)
.



mercurial sources appear to have the same failures.


John Donoghue <lostbard>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by lostbard (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-10 lostbard StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2018-05-10 lostbard StatusNone In Progress
        Assigned toNone lostbard
    2017-08-13 jwe Summaryoctave forge statistics 1.2.4 fails tests [octave forge] (statistics) version 1.2.4 fails tests
    2015-04-17 lostbard Operating SystemMicrosoft Windows Any
        Summaryoctave forge statistics 1.2.4 fails tests in windows octave forge statistics 1.2.4 fails tests

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code