Skip to content

Commit

Permalink
discojs-core/specs: prefer local import
Browse files Browse the repository at this point in the history
  • Loading branch information
tharvik committed Feb 13, 2024
1 parent b6b8db1 commit 9e1bc30
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion discojs/discojs-core/src/aggregator/mean.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { assert, expect } from 'chai'
import { Map } from 'immutable'

import { aggregator, defaultTasks, client, Task, tf } from '@epfml/discojs-node'
import { aggregator, defaultTasks, client, Task, tf } from '..'
import { AggregationStep } from './base'

const task = defaultTasks.titanic.getTask()
Expand Down
2 changes: 1 addition & 1 deletion discojs/discojs-core/src/serialization/model.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert } from 'chai'

import { tf, serialization } from '@epfml/discojs-node'
import { tf, serialization } from '..'

async function getRawWeights (model: tf.LayersModel): Promise<Array<[number, Float32Array]>> {
return Array.from(
Expand Down
2 changes: 1 addition & 1 deletion discojs/discojs-core/src/serialization/weights.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert } from 'chai'

import { WeightsContainer, serialization } from '@epfml/discojs-node'
import { WeightsContainer, serialization } from '..'

describe('weights', () => {
it('can encode what it decodes', async () => {
Expand Down
2 changes: 1 addition & 1 deletion discojs/discojs-core/src/validation/validator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('validator', () => {
.map((file: string) => dir + subdir + file))
const labels = files.flatMap((files, index) => Array(files.length).fill(index))

const data: data.Data = (await new node.data.NodeImageLoader(simplefaceMock)
const data = (await new node.data.NodeImageLoader(simplefaceMock)
.loadAll(files.flat(), { labels })).train
const buffer = new aggregator.MeanAggregator(simplefaceMock)
const client = new clients.Local(new URL('http://localhost:8080'), simplefaceMock, buffer)
Expand Down

0 comments on commit 9e1bc30

Please sign in to comment.