create-pipcook-script
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "create-pipcook-script", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/bin/pipcook-script.js", |
@@ -6,3 +6,3 @@ "use strict"; | ||
*/ | ||
class Accessor { | ||
class DataAccessorImpl { | ||
constructor(data) { | ||
@@ -23,2 +23,5 @@ this.data = data; | ||
} | ||
shuffle() { | ||
throw new TypeError('not implemented'); | ||
} | ||
} | ||
@@ -35,8 +38,13 @@ class DataSource { | ||
*/ | ||
async init() { | ||
init() { | ||
throw new TypeError('not implemented'); | ||
} | ||
async getDataSourceMeta() { | ||
getDatasetMeta() { | ||
throw new TypeError('not implemented'); | ||
} | ||
shuffle() { | ||
this.test.shuffle(); | ||
this.train.shuffle(); | ||
this.valid?.shuffle(); | ||
} | ||
} | ||
@@ -46,4 +54,7 @@ /** | ||
*/ | ||
const datasourceEntry = async (option) => { | ||
const { url = '' } = option; | ||
const { | ||
url = '' | ||
} = option; | ||
if (!url) { | ||
@@ -50,0 +61,0 @@ throw new TypeError('url should be defined'); |
42973
19
463