Skip to content

Commit

Permalink
discojs-core/dataset/builder: fw config
Browse files Browse the repository at this point in the history
  • Loading branch information
tharvik committed Apr 26, 2024
1 parent c396a8a commit 8b3d4ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion discojs/discojs-core/src/dataset/dataset_builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class DatasetBuilder<Source> {
shuffle: false
}
const sources = this.labelledSources.valueSeq().toArray().flat()
dataTuple = await this.dataLoader.loadAll(sources, defaultConfig)
dataTuple = await this.dataLoader.loadAll(sources, { ...defaultConfig, ...config })
}
// TODO @s314cy: Support .csv labels for image datasets (supervised training or testing)
this._built = true
Expand Down
5 changes: 4 additions & 1 deletion web-client/src/components/training/Trainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ export default defineComponent({
let dataset: data.DataSplit
try {
dataset = await this.datasetBuilder.build()
dataset = await this.datasetBuilder.build({
shuffle: true,
validationSplit: this.task.trainingInformation.validationSplit
})
} catch (e) {
console.error(e)
if (e instanceof Error && e.message.includes('provided in columnConfigs does not match any of the column names')) {
Expand Down

0 comments on commit 8b3d4ec

Please sign in to comment.