From: hyeonseok lee Date: Fri, 28 Apr 2023 04:22:15 +0000 (+0900) Subject: [common][mltrain] decrease dataset size and batch size X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F292154%2F1;p=test%2Ftct%2Fweb%2Fapi.git [common][mltrain] decrease dataset size and batch size - To prevent timeout blocking decrease dataset size and batch size Change-Id: Ic700718b912451c03bc3b3ef432ec4337c81687f Signed-off-by: hyeonseok lee --- diff --git a/common/tct-mltrain-tizen-tests/media/testSet.dat b/common/tct-mltrain-tizen-tests/media/testSet.dat index 105708cfe..3ab1addb0 100755 Binary files a/common/tct-mltrain-tizen-tests/media/testSet.dat and b/common/tct-mltrain-tizen-tests/media/testSet.dat differ diff --git a/common/tct-mltrain-tizen-tests/media/test_model.ini b/common/tct-mltrain-tizen-tests/media/test_model.ini index 3faa9feb0..901786993 100755 --- a/common/tct-mltrain-tizen-tests/media/test_model.ini +++ b/common/tct-mltrain-tizen-tests/media/test_model.ini @@ -1,5 +1,5 @@ [model] -batch_size = 16 +batch_size = 2 continue_train = false epochs = 2 loss = cross @@ -7,13 +7,8 @@ save_path = /home/owner/share/Documents/webapi_tizen_model.bin type = NeuralNetwork [optimizer] -beta1 = 0.002 -beta2 = 0.001 -decay_rate = 0.960000 -decay_steps = 1000 -epsilon = 1e-07 learning_rate = 0.000100 -type = adam +type = sgd [train_set] buffer_size = 100 @@ -26,27 +21,13 @@ path = /opt/usr/home/owner/share/Documents/valSet.dat type = file [inputlayer] -input_shape = 16:1:1:62720 -name = inputlayer -normalization = true -standardization = false -trainable = true +input_shape = 1:1:1024 type = input [fc1] bias_initializer = zeros input_layers = inputlayer -name = fc1 trainable = true type = fully_connected +activation=softmax unit = 10 -weight_initializer = xavier_uniform -weight_regularizer = l2norm -weight_regularizer_constant = 0.005000 - -[cross_softmax1] -input_layers = fc1 -name = cross_softmax1 -trainable = true -type = cross_softmax - diff --git a/common/tct-mltrain-tizen-tests/media/trainingSet.dat b/common/tct-mltrain-tizen-tests/media/trainingSet.dat index a8d45f600..bbe4b63c7 100755 Binary files a/common/tct-mltrain-tizen-tests/media/trainingSet.dat and b/common/tct-mltrain-tizen-tests/media/trainingSet.dat differ diff --git a/common/tct-mltrain-tizen-tests/media/valSet.dat b/common/tct-mltrain-tizen-tests/media/valSet.dat index 546d09315..4b3be065f 100755 Binary files a/common/tct-mltrain-tizen-tests/media/valSet.dat and b/common/tct-mltrain-tizen-tests/media/valSet.dat differ diff --git a/common/tct-mltrain-tizen-tests/mltrain/Layer_setProperty.html b/common/tct-mltrain-tizen-tests/mltrain/Layer_setProperty.html index 93dc444a3..02cbe904c 100755 --- a/common/tct-mltrain-tizen-tests/mltrain/Layer_setProperty.html +++ b/common/tct-mltrain-tizen-tests/mltrain/Layer_setProperty.html @@ -38,7 +38,7 @@ Authors: test(function () { var model = tizen.ml.trainer.createModel(); var layer = tizen.ml.trainer.createLayer("LAYER_INPUT"); - layer.setProperty("input_shape", "1:1:62720"); + layer.setProperty("input_shape", "1:1:1024"); assert_equals(layer.type, "LAYER_INPUT", "layer setProperty should work properly"); }, document.title); diff --git a/common/tct-mltrain-tizen-tests/mltrain/Model_addLayer.html b/common/tct-mltrain-tizen-tests/mltrain/Model_addLayer.html index 913aac965..3c083228c 100755 --- a/common/tct-mltrain-tizen-tests/mltrain/Model_addLayer.html +++ b/common/tct-mltrain-tizen-tests/mltrain/Model_addLayer.html @@ -38,7 +38,7 @@ Authors: test(function () { var model = tizen.ml.trainer.createModel(); var layer = tizen.ml.trainer.createLayer("LAYER_INPUT") - layer.setProperty("input_shape", "1:1:62720") + layer.setProperty("input_shape", "1:1:1024") layer.setProperty("normalization", "true") layer.setProperty("name", "inputlayer") model.addLayer(layer) diff --git a/common/tct-mltrain-tizen-tests/mltrain/Model_compile_with_options.html b/common/tct-mltrain-tizen-tests/mltrain/Model_compile_with_options.html index 6a70af331..856a8e413 100755 --- a/common/tct-mltrain-tizen-tests/mltrain/Model_compile_with_options.html +++ b/common/tct-mltrain-tizen-tests/mltrain/Model_compile_with_options.html @@ -40,7 +40,7 @@ test(function () { model.load(modelFile, "FORMAT_INI"); var compileOpts = { - loss: "cross", batch_size: "16" + loss: "cross", batch_size: "2" } model.compile(compileOpts); }, document.title); diff --git a/common/tct-mltrain-tizen-tests/mltrain/Model_run.html b/common/tct-mltrain-tizen-tests/mltrain/Model_run.html index 74a878918..17d2eeedb 100755 --- a/common/tct-mltrain-tizen-tests/mltrain/Model_run.html +++ b/common/tct-mltrain-tizen-tests/mltrain/Model_run.html @@ -44,7 +44,7 @@ t.step(function () { Model.load(modelFile, "FORMAT_INI"); var compileOpts = { - loss: "cross", batch_size: "16" + loss: "cross", batch_size: "2" } Model.compile(compileOpts); diff --git a/common/tct-mltrain-tizen-tests/mltrain/Model_run_exist.html b/common/tct-mltrain-tizen-tests/mltrain/Model_run_exist.html index 9c37073f7..cf135b2f3 100755 --- a/common/tct-mltrain-tizen-tests/mltrain/Model_run_exist.html +++ b/common/tct-mltrain-tizen-tests/mltrain/Model_run_exist.html @@ -40,7 +40,7 @@ test(function () { model.load(modelFile, "FORMAT_INI"); var compileOpts = { - loss: "cross", batch_size: "16" + loss: "cross", batch_size: "2" } model.compile(compileOpts); check_method_exists(model, "run"); diff --git a/common/tct-mltrain-tizen-tests/mltrain/Model_run_options_TypeMismatch.html b/common/tct-mltrain-tizen-tests/mltrain/Model_run_options_TypeMismatch.html index 50da44651..e19b5fd9a 100755 --- a/common/tct-mltrain-tizen-tests/mltrain/Model_run_options_TypeMismatch.html +++ b/common/tct-mltrain-tizen-tests/mltrain/Model_run_options_TypeMismatch.html @@ -44,7 +44,7 @@ t.step(function () { Model.load(modelFile, "FORMAT_INI"); var compileOpts = { - loss: "cross", batch_size: "16" + loss: "cross", batch_size: "2" } Model.compile(compileOpts); successCallback = t.step_func(function () { diff --git a/common/tct-mltrain-tizen-tests/mltrain/Model_run_successCallback_TypeMismatch.html b/common/tct-mltrain-tizen-tests/mltrain/Model_run_successCallback_TypeMismatch.html index 2ab5bd858..bbc8a7db4 100755 --- a/common/tct-mltrain-tizen-tests/mltrain/Model_run_successCallback_TypeMismatch.html +++ b/common/tct-mltrain-tizen-tests/mltrain/Model_run_successCallback_TypeMismatch.html @@ -44,7 +44,7 @@ t.step(function () { Model.load(modelFile, "FORMAT_INI"); var compileOpts = { - loss: "cross", batch_size: "16" + loss: "cross", batch_size: "2" } Model.compile(compileOpts); runOpts = {epochs: "2", save_path: outputFile}; diff --git a/common/tct-mltrain-tizen-tests/mltrain/Model_run_successCallback_invalid_cb.html b/common/tct-mltrain-tizen-tests/mltrain/Model_run_successCallback_invalid_cb.html index 84653b971..18d282147 100755 --- a/common/tct-mltrain-tizen-tests/mltrain/Model_run_successCallback_invalid_cb.html +++ b/common/tct-mltrain-tizen-tests/mltrain/Model_run_successCallback_invalid_cb.html @@ -43,7 +43,7 @@ t.step(function () { Model.load(modelFile, "FORMAT_INI"); var compileOpts = { - loss: "cross", batch_size: "16" + loss: "cross", batch_size: "2" } Model.compile(compileOpts); successCallback = {