learning_model 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.bundle.js +1 -1
- package/dist/learning/base.d.ts +1 -2
- package/dist/learning/mobilenet.d.ts +1 -2
- package/dist/learning/mobilenet.js +1 -1
- package/dist/lib/learning/base.d.ts +1 -2
- package/dist/lib/learning/mobilenet.d.ts +1 -2
- package/lib/learning/base.ts +1 -1
- package/lib/learning/mobilenet.ts +1 -1
- package/package.json +1 -1
package/dist/learning/base.d.ts
CHANGED
|
@@ -16,9 +16,8 @@ interface LearningInterface {
|
|
|
16
16
|
saveModel(handlerOrURL: io.IOHandler | string, config?: io.SaveConfig): Promise<void>;
|
|
17
17
|
running(): boolean;
|
|
18
18
|
ready(): boolean;
|
|
19
|
-
load({ jsonURL,
|
|
19
|
+
load({ jsonURL, labels }: {
|
|
20
20
|
jsonURL: string;
|
|
21
|
-
binFile: io.LoadOptions | undefined;
|
|
22
21
|
labels: Array<string>;
|
|
23
22
|
}): Promise<void>;
|
|
24
23
|
}
|
|
@@ -34,9 +34,8 @@ declare class LearningMobilenet implements LearningInterface {
|
|
|
34
34
|
onTrainBegin: (log: any) => void;
|
|
35
35
|
onTrainEnd: (log: any) => void;
|
|
36
36
|
onEpochEnd: (epoch: number, logs: any) => void;
|
|
37
|
-
load({ jsonURL,
|
|
37
|
+
load({ jsonURL, labels }: {
|
|
38
38
|
jsonURL: string;
|
|
39
|
-
binFile: io.LoadOptions | undefined;
|
|
40
39
|
labels: Array<string>;
|
|
41
40
|
}): Promise<void>;
|
|
42
41
|
addData(label: string, data: any): Promise<void>;
|
|
@@ -69,7 +69,7 @@ class LearningMobilenet {
|
|
|
69
69
|
}
|
|
70
70
|
//
|
|
71
71
|
// 기존의 모델 로드
|
|
72
|
-
load({ jsonURL,
|
|
72
|
+
load({ jsonURL, labels }) {
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
74
|
if (labels.length <= 0) {
|
|
75
75
|
return Promise.reject(new Error('Labels length is 0'));
|
|
@@ -16,9 +16,8 @@ interface LearningInterface {
|
|
|
16
16
|
saveModel(handlerOrURL: io.IOHandler | string, config?: io.SaveConfig): Promise<void>;
|
|
17
17
|
running(): boolean;
|
|
18
18
|
ready(): boolean;
|
|
19
|
-
load({ jsonURL,
|
|
19
|
+
load({ jsonURL, labels }: {
|
|
20
20
|
jsonURL: string;
|
|
21
|
-
binFile: io.LoadOptions | undefined;
|
|
22
21
|
labels: Array<string>;
|
|
23
22
|
}): Promise<void>;
|
|
24
23
|
}
|
|
@@ -34,9 +34,8 @@ declare class LearningMobilenet implements LearningInterface {
|
|
|
34
34
|
onTrainBegin: (log: any) => void;
|
|
35
35
|
onTrainEnd: (log: any) => void;
|
|
36
36
|
onEpochEnd: (epoch: number, logs: any) => void;
|
|
37
|
-
load({ jsonURL,
|
|
37
|
+
load({ jsonURL, labels }: {
|
|
38
38
|
jsonURL: string;
|
|
39
|
-
binFile: io.LoadOptions | undefined;
|
|
40
39
|
labels: Array<string>;
|
|
41
40
|
}): Promise<void>;
|
|
42
41
|
addData(label: string, data: any): Promise<void>;
|
package/lib/learning/base.ts
CHANGED
|
@@ -45,7 +45,7 @@ interface LearningInterface {
|
|
|
45
45
|
ready(): boolean;
|
|
46
46
|
|
|
47
47
|
// 모델 로드
|
|
48
|
-
load({jsonURL,
|
|
48
|
+
load({jsonURL, labels}: {jsonURL :string, labels : Array<string>}): Promise<void>;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export default LearningInterface;
|
|
@@ -66,7 +66,7 @@ class LearningMobilenet implements LearningInterface {
|
|
|
66
66
|
|
|
67
67
|
//
|
|
68
68
|
// 기존의 모델 로드
|
|
69
|
-
public async load({jsonURL,
|
|
69
|
+
public async load({jsonURL, labels}: {jsonURL :string, labels : Array<string>}): Promise<void> {
|
|
70
70
|
if (labels.length <= 0) {
|
|
71
71
|
return Promise.reject(new Error('Labels length is 0'));
|
|
72
72
|
}
|