Skip to content

Commit 1e72a05

Browse files
committed
Fix some lint error
1 parent 8539c0a commit 1e72a05

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

tests/js/data/loader/image.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ describe('ImageLoader', () => {
276276
}
277277
})
278278

279-
test('not normalize', () => {
279+
test('with threshold', () => {
280280
const imdata = []
281281
for (let i = 0; i < 50; i++) {
282282
imdata[i] = []

tests/lib/model/budget_perceptron.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test.each([undefined, 0, 2])('fit %i', n => {
1818
expect(acc).toBeGreaterThan(0.95)
1919
})
2020

21-
test.only.each([0, 2])('fit replace sv n: %p', n => {
21+
test.each([0, 2])('fit replace sv n: %p', n => {
2222
const model = new BudgetPerceptron(1, n)
2323
const x = [
2424
[0.44, 0.43],

tests/lib/model/co_training.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ test('semi-classifier', () => {
8181
test('semi-classifier not categorized', () => {
8282
const model = new CoTraining(
8383
{
84-
fit(x, y) {},
84+
fit() {},
8585
predict(x) {
86-
return x.map(v => ({ category: 0, score: 0 }))
86+
return x.map(() => ({ category: 0, score: 0 }))
8787
},
8888
threshold: 0.5,
8989
},
9090
{
91-
fit(x, y) {},
91+
fit() {},
9292
predict(x) {
9393
return x.map(() => ({ category: 0, score: 0 }))
9494
},

tests/lib/model/denclue.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ describe('clustering', () => {
8181

8282
test('large h', () => {
8383
const model = new DENCLUE(1e6)
84-
const n = 50
8584
const x = [
8685
[0, 0],
8786
[1, 1],

tests/lib/model/self_training.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ test('semi-classifier', () => {
4747
expect(acc).toBeGreaterThan(0.95)
4848
})
4949

50-
test('semi-classifier', () => {
51-
const dt = new DecisionTreeClassifier('CART')
50+
test('semi-classifier not categorized', () => {
5251
const model = new SelfTraining(
5352
{
54-
fit(x, y) {},
53+
fit() {},
5554
predict(x) {
5655
return x.map(() => ({ category: 0, score: 0 }))
5756
},

0 commit comments

Comments
 (0)