|
1 | 1 | import { assert } from "chai" |
2 | 2 | import { Series } from '../../src/core/series' |
3 | | -import * as tf from '@tensorflow/tfjs-node' |
4 | | -// import * as tf from '@tensorflow/tfjs' |
| 3 | +// import * as tf from '@tensorflow/tfjs-node' |
| 4 | +import * as tf from '@tensorflow/tfjs' |
5 | 5 |
|
6 | 6 |
|
7 | 7 |
|
@@ -125,7 +125,7 @@ describe("Series", function () { |
125 | 125 | let data2 = [1, 2, 3, 4, 5, 6] |
126 | 126 | let sf = new Series(data) |
127 | 127 | let sf2 = new Series(data2) |
128 | | - assert.throws(() => { sf.add(sf2) }, Error, " Incompatible shapes: [4] vs. [6]") |
| 128 | + assert.throws(() => { sf.add(sf2) }, Error, "Operands could not be broadcast together with shapes 4 and 6") |
129 | 129 | }) |
130 | 130 |
|
131 | 131 | }) |
@@ -155,7 +155,7 @@ describe("Series", function () { |
155 | 155 | let data2 = [1, 2, 3, 4, 5, 6] |
156 | 156 | let sf = new Series(data) |
157 | 157 | let sf2 = new Series(data2) |
158 | | - assert.throws(() => { sf.sub(sf2) }, Error, " Incompatible shapes: [4] vs. [6]") |
| 158 | + assert.throws(() => { sf.sub(sf2) }, Error, "Operands could not be broadcast together with shapes 4 and 6") |
159 | 159 | }) |
160 | 160 |
|
161 | 161 | }) |
@@ -398,7 +398,7 @@ describe("Series", function () { |
398 | 398 | it("Computes the descriptive statistics on an int Series", function () { |
399 | 399 | let data1 = [10, 45, 56, 25, 23, 20, 10] |
400 | 400 | let sf = new Series(data1) |
401 | | - assert.deepEqual(sf.describe().values, [7, 27.000001907348633, 17.378147196982766, 10, 23, 56, 302]) |
| 401 | + assert.deepEqual(sf.describe().values, [7, 27, 17.378147196982766, 10, 23, 56, 302]) |
402 | 402 | }) |
403 | 403 | it("Computes the descriptive statistics on a float Series", function () { |
404 | 404 | let data1 = [30.1, 40.2, 3.1, 5.1] |
|
0 commit comments