add machinelearning

This commit is contained in:
LeeJu 2026-05-23 09:33:24 +08:00
parent de9fbd3960
commit 4b61e97941
275 changed files with 25885 additions and 0 deletions

21
machinelearning/README.md Normal file
View File

@ -0,0 +1,21 @@
# machinelearning
### 1、项目说明
总体思路项目开发总体思路如图1.1示意卷积神经网络可视化模型构建与训练系统1提供一组构建卷积神经网络模型的基本图元如卷积、池化、非线性、全连接、分类等。2利用基本图元用户可以可视化交互式地构建一个卷积神经网络模型。3系统支持用户针对该神经网络模型开展训练、模型输出和模型应用等工作即用户所建立地卷积神经网络模型是一个可以执行训练和分类任务的模型。
图1.1 项目开发的总体思路图
<img src="figs/overall.png" width=80% /></center>
### 2、开发环境说明
1系统版本OpenHarmony 4.0 Release
2SDK版本API 10
3Model类型Stage
4DevEco Studio版本Deveco Studio 4.0 release
5硬件环境Unionpi Whale、RK3566开发板
6预览器参数(1)DeviceType:default;(2)Resolution:560-1280;(3)DPI:240;其余参数自定。
### 3、项目主要函数调用关系图与项目输出界面演进图
图3.1 项目主要函数调用关系图
<img src="figs/relation.png" width=80% /></center>
图3.2 项目输出界面演进图
<img src="figs/evolution.png" width=80% /></center>

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,16 @@
{
"totalTime": 10183774900,
"moduleNum": 1,
"taskTime": {
"compileArkTS": 0,
"buildArkTS": 0,
"compileJS": 0,
"buildJS": 0,
"compileResource": 521018500,
"packageHap": 0,
"signHap": 0
},
"isIncremental": true,
"hasIncremental": true,
"isParallel": true
}

View File

@ -0,0 +1,61 @@
{
"ohos-module-entry": {
"SELECT_TARGET": "default",
"MODULE_BUILD_DIR": "F:\\jiaocai\\machine_learning16\\entry\\build",
"TARGETS": {
"default": {
"SOURCE_ROOT": "F:\\jiaocai\\machine_learning16\\entry\\src\\main",
"RESOURCES_PATH": [
"F:\\jiaocai\\machine_learning16\\entry\\src\\main\\resources"
],
"BUILD_PATH": {
"OUTPUT_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\outputs\\default",
"INTERMEDIA_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates",
"JS_ASSETS_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\loader_out\\default",
"JS_LITE_ASSETS_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\loader_out_lite\\default",
"RES_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\res\\default",
"RES_PROFILE_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
"ETS_SUPER_VISUAL_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule",
"JS_SUPER_VISUAL_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\cache\\default\\default@CompileJS\\jsbundle",
"WORKER_LOADER": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\loader\\default\\loader.json",
"MANIFEST_JSON": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\manifest\\default",
"OUTPUT_METADATA_JSON": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json"
},
"BUILD_OPTION": {
"debuggable": true
}
},
"ohosTest": {
"SOURCE_ROOT": "F:\\jiaocai\\machine_learning16\\entry\\src\\ohosTest",
"RESOURCES_PATH": [
"F:\\jiaocai\\machine_learning16\\entry\\src\\ohosTest\\resources"
],
"BUILD_PATH": {
"OUTPUT_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\outputs\\ohosTest",
"INTERMEDIA_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates",
"JS_ASSETS_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\loader_out\\ohosTest",
"JS_LITE_ASSETS_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\loader_out_lite\\ohosTest",
"RES_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\res\\ohosTest",
"RES_PROFILE_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\res\\ohosTest\\resources\\base\\profile",
"ETS_SUPER_VISUAL_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\cache\\ohosTest\\ohosTest@OhosTestCompileArkTS\\esmodule",
"JS_SUPER_VISUAL_PATH": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\cache\\ohosTest\\ohosTest@OhosTestCompileJS\\jsbundle",
"WORKER_LOADER": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\loader\\ohosTest\\loader.json",
"MANIFEST_JSON": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\manifest\\ohosTest",
"OUTPUT_METADATA_JSON": "F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\hap_metadata\\ohosTest\\output_metadata.json"
},
"BUILD_OPTION": {
"debuggable": true
}
}
}
},
"ohos-project": {
"SELECT_PRODUCT_NAME": "default",
"MODULE_BUILD_DIR": "F:\\jiaocai\\machine_learning16\\build",
"BUNDLE_NAME": "com.example.machinelearning",
"BUILD_PATH": {
"OUTPUT_PATH": "F:\\jiaocai\\machine_learning16\\build\\outputs\\default"
}
},
"version": 1
}

View File

@ -0,0 +1,955 @@
{
"version": "1.0",
"workLog": [],
"workerIdList": [
-1
],
"metrics": [
{
"type": "build_line",
"endTime": 1727158796204,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "init",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158796203
},
{
"type": "build_line",
"endTime": 1727158796206,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "init",
"taskPath": "machine_learning16",
"workerId": -1,
"startTime": 1727158796206
},
{
"type": "build_line",
"endTime": 1727158842609,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158842605
},
{
"type": "build_line",
"endTime": 1727158842612,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@MergeProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158842610
},
{
"type": "build_line",
"endTime": 1727158842618,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@GenerateLoaderJson",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158842612
},
{
"type": "build_line",
"endTime": 1727158842623,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ProcessProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158842622
},
{
"type": "build_line",
"endTime": 1727158842624,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewProcessResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158842623
},
{
"type": "build_line",
"endTime": 1727158843185,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158842624
},
{
"type": "build_line",
"endTime": 1727158843185,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewHookCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158843185
},
{
"type": "build_line",
"endTime": 1727158843194,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ReplacePreviewerPage",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158843186
},
{
"type": "build_line",
"endTime": 1727158843194,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "buildPreviewerResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158843194
},
{
"type": "build_line",
"endTime": 1727158843197,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewUpdateAssets",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158843194
},
{
"type": "build_line",
"endTime": 1727158852624,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewArkTS",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158843197
},
{
"type": "build_line",
"endTime": 1727158852631,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "PreviewBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727158852630
},
{
"type": "build_line",
"endTime": 1727159046957,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046955
},
{
"type": "build_line",
"endTime": 1727159046959,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@MergeProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046958
},
{
"type": "build_line",
"endTime": 1727159046965,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@GenerateLoaderJson",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046959
},
{
"type": "build_line",
"endTime": 1727159046968,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ProcessProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046968
},
{
"type": "build_line",
"endTime": 1727159046969,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewProcessResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046969
},
{
"type": "build_line",
"endTime": 1727159046981,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046969
},
{
"type": "build_line",
"endTime": 1727159046982,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewHookCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046982
},
{
"type": "build_line",
"endTime": 1727159046986,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ReplacePreviewerPage",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046982
},
{
"type": "build_line",
"endTime": 1727159046987,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "buildPreviewerResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046986
},
{
"type": "build_line",
"endTime": 1727159046989,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewUpdateAssets",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046987
},
{
"type": "build_line",
"endTime": 1727159055486,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewArkTS",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159046989
},
{
"type": "build_line",
"endTime": 1727159055492,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "PreviewBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159055491
},
{
"type": "build_line",
"endTime": 1727159347615,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347614
},
{
"type": "build_line",
"endTime": 1727159347618,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@MergeProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347616
},
{
"type": "build_line",
"endTime": 1727159347626,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@GenerateLoaderJson",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347618
},
{
"type": "build_line",
"endTime": 1727159347632,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ProcessProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347631
},
{
"type": "build_line",
"endTime": 1727159347633,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewProcessResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347632
},
{
"type": "build_line",
"endTime": 1727159347941,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347633
},
{
"type": "build_line",
"endTime": 1727159347941,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewHookCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347941
},
{
"type": "build_line",
"endTime": 1727159347945,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ReplacePreviewerPage",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347941
},
{
"type": "build_line",
"endTime": 1727159347945,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "buildPreviewerResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347945
},
{
"type": "build_line",
"endTime": 1727159347948,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewUpdateAssets",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347946
},
{
"type": "build_line",
"endTime": 1727159356411,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewArkTS",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159347948
},
{
"type": "build_line",
"endTime": 1727159356415,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "PreviewBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159356415
},
{
"type": "build_line",
"endTime": 1727159643041,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643040
},
{
"type": "build_line",
"endTime": 1727159643043,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@MergeProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643042
},
{
"type": "build_line",
"endTime": 1727159643049,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@GenerateLoaderJson",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643043
},
{
"type": "build_line",
"endTime": 1727159643051,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ProcessProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643051
},
{
"type": "build_line",
"endTime": 1727159643052,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewProcessResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643052
},
{
"type": "build_line",
"endTime": 1727159643063,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643052
},
{
"type": "build_line",
"endTime": 1727159643063,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewHookCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643063
},
{
"type": "build_line",
"endTime": 1727159643066,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ReplacePreviewerPage",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643063
},
{
"type": "build_line",
"endTime": 1727159643066,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "buildPreviewerResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643066
},
{
"type": "build_line",
"endTime": 1727159643069,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewUpdateAssets",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643067
},
{
"type": "build_line",
"endTime": 1727159651375,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewArkTS",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159643069
},
{
"type": "build_line",
"endTime": 1727159651379,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "PreviewBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159651379
},
{
"type": "build_line",
"endTime": 1727159872132,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872131
},
{
"type": "build_line",
"endTime": 1727159872134,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@MergeProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872132
},
{
"type": "build_line",
"endTime": 1727159872138,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@GenerateLoaderJson",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872134
},
{
"type": "build_line",
"endTime": 1727159872141,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ProcessProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872140
},
{
"type": "build_line",
"endTime": 1727159872141,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewProcessResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872141
},
{
"type": "build_line",
"endTime": 1727159872438,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872141
},
{
"type": "build_line",
"endTime": 1727159872439,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewHookCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872439
},
{
"type": "build_line",
"endTime": 1727159872443,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ReplacePreviewerPage",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872439
},
{
"type": "build_line",
"endTime": 1727159872444,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "buildPreviewerResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872443
},
{
"type": "build_line",
"endTime": 1727159872446,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewUpdateAssets",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872444
},
{
"type": "build_line",
"endTime": 1727159880515,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewArkTS",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159872446
},
{
"type": "build_line",
"endTime": 1727159880521,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "PreviewBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159880521
},
{
"type": "build_line",
"endTime": 1727159936591,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936589
},
{
"type": "build_line",
"endTime": 1727159936592,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@MergeProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936591
},
{
"type": "build_line",
"endTime": 1727159936596,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@GenerateLoaderJson",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936592
},
{
"type": "build_line",
"endTime": 1727159936599,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ProcessProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936598
},
{
"type": "build_line",
"endTime": 1727159936601,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewProcessResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936600
},
{
"type": "build_line",
"endTime": 1727159936610,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936601
},
{
"type": "build_line",
"endTime": 1727159936611,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewHookCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936611
},
{
"type": "build_line",
"endTime": 1727159936614,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ReplacePreviewerPage",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936611
},
{
"type": "build_line",
"endTime": 1727159936614,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "buildPreviewerResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936614
},
{
"type": "build_line",
"endTime": 1727159936616,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewUpdateAssets",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936614
},
{
"type": "build_line",
"endTime": 1727159944755,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewArkTS",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159936617
},
{
"type": "build_line",
"endTime": 1727159944760,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "PreviewBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727159944759
},
{
"type": "build_line",
"endTime": 1727166616922,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166616919
},
{
"type": "build_line",
"endTime": 1727166616924,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@MergeProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166616922
},
{
"type": "build_line",
"endTime": 1727166616930,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@GenerateLoaderJson",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166616924
},
{
"type": "build_line",
"endTime": 1727166616934,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ProcessProfile",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166616933
},
{
"type": "build_line",
"endTime": 1727166616934,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewProcessResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166616934
},
{
"type": "build_line",
"endTime": 1727166617455,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166616934
},
{
"type": "build_line",
"endTime": 1727166617456,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewHookCompileResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166617456
},
{
"type": "build_line",
"endTime": 1727166617461,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@ReplacePreviewerPage",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166617456
},
{
"type": "build_line",
"endTime": 1727166617461,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "buildPreviewerResource",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166617461
},
{
"type": "build_line",
"endTime": 1727166617463,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewUpdateAssets",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166617461
},
{
"type": "build_line",
"endTime": 1727166626770,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "default@PreviewArkTS",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166617464
},
{
"type": "build_line",
"endTime": 1727166626775,
"status": "closed",
"children": [],
"name": "overallTime",
"taskName": "PreviewBuild",
"taskPath": "entry",
"workerId": -1,
"startTime": 1727166626775
}
]
}

View File

@ -0,0 +1,21 @@
{
"BuildOptions":{
"SELECT_BUILD_TARGET":"default",
"BUILD_PATH":{
"OUTPUT_METADATA_JSON":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json",
"OUTPUT_PATH":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\outputs\\default",
"RES_PATH":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\res\\default",
"ETS_SUPER_VISUAL_PATH":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule",
"JS_ASSETS_PATH":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\loader_out\\default",
"INTERMEDIA_PATH":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates",
"RES_PROFILE_PATH":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\res\\default\\resources\\base\\profile",
"WORKER_LOADER":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\loader\\default\\loader.json",
"MANIFEST_JSON":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\manifest\\default",
"JS_LITE_ASSETS_PATH":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\intermediates\\loader_out_lite\\default",
"JS_SUPER_VISUAL_PATH":"F:\\jiaocai\\machine_learning16\\entry\\build\\default\\cache\\default\\default@CompileJS\\jsbundle"
}
},
"CommonInfo":{
"current.select.target":"default"
}
}

View File

@ -0,0 +1,16 @@
{
"BuildOptions":{
"BUNDLE_NAME":"com.example.machinelearning",
"SELECT_BUILD_MODE":"",
"BUILD_PATH":{
"OUTPUT_PATH":"F:\\jiaocai\\machine_learning16\\build\\outputs\\default"
},
"SELECT_BUILD_PRODUCT":"default"
},
"CommonInfo":{
"crossplatform.projectType":"",
"project.ide.version":"4.0.0.600",
"current.select.product":"default",
"current.select.buildMode":""
}
}

View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/modules/entry/entry.iml" filepath="$PROJECT_DIR$/.idea/modules/entry/entry.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/modules/machine_learning16.iml" filepath="$PROJECT_DIR$/.idea/modules/machine_learning16.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="EMPTY_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$/../..">
<excludeFolder url="file://$MODULE_DIR$/../../node_modules" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/oh_modules" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/.preview" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/node_modules" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/.test" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/.cxx" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/build" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/library/.cxx" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/app/.cxx" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/ios/build" />
<excludeFolder url="file://$MODULE_DIR$/../../build" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/app/build" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/library/build" />
<excludeFolder url="file://$MODULE_DIR$/../../oh_modules" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library name="ArkTS-API 10" type="ArkUI">
<CLASSES />
<JAVADOC />
<SOURCES>
<root url="file://$MODULE_DIR$/../../../../../software/Openharmony-SDK/Openharmony-SDK.b/10/ets/api" />
<root url="file://$MODULE_DIR$/../../../../../software/Openharmony-SDK/Openharmony-SDK.b/10/ets/component" />
</SOURCES>
</library>
</orderEntry>
</component>
</module>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="EMPTY_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$/../../../entry" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="EMPTY_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$/../..">
<excludeFolder url="file://$MODULE_DIR$/../../build" />
<excludeFolder url="file://$MODULE_DIR$/../../node_modules" />
<excludeFolder url="file://$MODULE_DIR$/../../oh_modules" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/app/build" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/library/build" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/ios/build" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/app/.cxx" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/library/.cxx" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/build" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/node_modules" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/.cxx" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/.test" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/.preview" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/oh_modules" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library name="ArkTS-API 10" type="ArkUI">
<CLASSES />
<JAVADOC />
<SOURCES>
<root url="file://$MODULE_DIR$/../../../../../software/Openharmony-SDK/Openharmony-SDK.b/10/ets/api" />
<root url="file://$MODULE_DIR$/../../../../../software/Openharmony-SDK/Openharmony-SDK.b/10/ets/component" />
</SOURCES>
</library>
</orderEntry>
</component>
</module>

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="EMPTY_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$/../..">
<excludeFolder url="file://$MODULE_DIR$/../../build" />
<excludeFolder url="file://$MODULE_DIR$/../../node_modules" />
<excludeFolder url="file://$MODULE_DIR$/../../oh_modules" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/.gradle" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/app/build" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/library/build" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/ios/build" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/app/.cxx" />
<excludeFolder url="file://$MODULE_DIR$/../../.arkui-x/android/library/.cxx" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/build" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/node_modules" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/.cxx" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/.test" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/.preview" />
<excludeFolder url="file://$MODULE_DIR$/../../entry/oh_modules" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library name="ArkTS-API 10" type="ArkUI">
<CLASSES />
<JAVADOC />
<SOURCES>
<root url="file://$MODULE_DIR$/../../../../Huawei/SDK2/10/ets/api" />
<root url="file://$MODULE_DIR$/../../../../Huawei/SDK2/10/ets/component" />
</SOURCES>
</library>
</orderEntry>
</component>
</module>

View File

@ -0,0 +1,25 @@
{
"setting": {
"1.0.1": {
"Language": {
"args": {
"Language": "zh_CN"
}
}
}
},
"frontend": {
"1.0.0": {
"Resolution": {
"args": {
"Resolution": "360*780"
}
},
"DeviceType": {
"args": {
"DeviceType": "default"
}
}
}
}
}

View File

@ -0,0 +1,37 @@
{
"1.0.0": {
"LastPreviewDevice": {}
},
"1.0.1": {
"profileList": [
{
"id": "Default",
"deviceType": "default",
"width": 1080,
"height": 2340,
"shape": "rect",
"dpi": 480,
"orientation": "portrait",
"language": "zh_CN",
"colorMode": "light"
},
{
"id": "Tablet",
"deviceType": "tablet",
"width": 2560,
"height": 1600,
"shape": "rect",
"dpi": 400,
"orientation": "landscape",
"language": "zh_CN",
"colorMode": "light"
}
],
"runningProfileList": [
"Default"
],
"availableProfileList": [
"Tablet"
]
}
}

View File

@ -0,0 +1,25 @@
{
"setting": {
"1.0.1": {
"Language": {
"args": {
"Language": "zh-CN"
}
}
}
},
"frontend": {
"1.0.0": {
"Resolution": {
"args": {
"Resolution": "1024*640"
}
},
"DeviceType": {
"args": {
"DeviceType": "tablet"
}
}
}
}
}

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View File

@ -0,0 +1,10 @@
{
"app": {
"bundleName": "com.example.machinelearning",
"vendor": "example",
"versionCode": 1000000,
"versionName": "1.0.0",
"icon": "$media:app_icon",
"label": "$string:app_name"
}
}

View File

@ -0,0 +1,8 @@
{
"string": [
{
"name": "app_name",
"value": "MachineLearning"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,36 @@
{
"app": {
"signingConfigs": [],
"products": [
{
"name": "default",
"signingConfig": "debug_default",
"compileSdkVersion": 10,
"compatibleSdkVersion": 9,
"runtimeOS": "OpenHarmony"
}
],
"buildModeSet": [
{
"name": "debug"
},
{
"name": "release"
}
]
},
"modules": [
{
"name": "entry",
"srcPath": "./entry",
"targets": [
{
"name": "default",
"applyToProducts": [
"default"
]
}
]
}
]
}

View File

@ -0,0 +1 @@
{"APP_RESOURCES":"F:\\jiaocai\\machine_learning16\\AppScope\\resources","MODULE_RESOURCES":"{\"F:\\\\jiaocai\\\\machine_learning16\\\\entry\\\\src\\\\main\\\\resources\":\"module_compiled\"}","HAR_RESOURCES":"{}","PREVIEW_GENERATE_SOURCE_DIR":"F:\\jiaocai\\machine_learning16\\entry\\.preview\\default\\generated\\r\\default","PREVIEW_COMPILE_MODULE_NAMES":"entry"}

View File

@ -0,0 +1 @@
[{"time":"2024-09-24T06:39:03.479Z","category":"etsChecker","level":"warn","msg":"\u001b[33mArkTS:WARN: Has 401 ArkTS Linter Error. You can get the output in F:/jiaocai/machine_learning16/entry/.preview/cache/.default/ArkTS/ArkTSLinter_output.json","type":"plugin_log"}]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,21 @@
string EntryAbility_desc 0x01000004
string EntryAbility_label 0x01000005
string app_name 0x01000001
string module_desc 0x01000006
color start_window_background 0x01000011
media adjust 0x01000013
media app_icon 0x01000000
media arrow 0x01000012
media arrow1 0x01000007
media arrow2 0x01000003
media classifier 0x01000002
media conv 0x0100000b
media data 0x01000010
media error 0x0100000a
media full_connect 0x01000014
media icon 0x0100000c
media icon_logo 0x01000009
media nonlinear 0x0100000d
media pool 0x0100000e
media startIcon 0x01000008
profile main_pages 0x0100000f

View File

@ -0,0 +1,260 @@
interface Display_Params {
TrainList?: any[];
AllModelObjArr?: any[];
ModelID?: number;
showArr?: string[];
scrollerForList?: Scroller;
TrainSettingDialogController?: CustomDialogController;
}
import TrainSettingDialog from "@bundle:com.example.machinelearning/entry/ets/Components/TrainSettingDialog";
export default class Display extends ViewPU {
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined) {
super(parent, __localStorage, elmtId);
if (typeof paramsLambda === "function") {
this.paramsGenerator_ = paramsLambda;
}
this.__TrainList = new SynchedPropertyObjectTwoWayPU(params.TrainList, this, "TrainList");
this.__AllModelObjArr = new SynchedPropertyObjectTwoWayPU(params.AllModelObjArr, this, "AllModelObjArr");
this.__ModelID = new SynchedPropertySimpleTwoWayPU(params.ModelID, this, "ModelID");
this.__showArr = new SynchedPropertyObjectTwoWayPU(params.showArr, this, "showArr");
this.scrollerForList = new Scroller();
this.TrainSettingDialogController = new CustomDialogController({
builder: () => {
let paramsLambda = () => {
return {
TrainList: this.__TrainList
};
};
let jsDialog = new TrainSettingDialog(this, { TrainList: this.__TrainList }, undefined, -1, paramsLambda);
jsDialog.setController(this.TrainSettingDialogController);
ViewPU.create(jsDialog);
},
gridCount: 4
}, this);
this.setInitiallyProvidedValue(params);
}
setInitiallyProvidedValue(params: Display_Params) {
if (params.scrollerForList !== undefined) {
this.scrollerForList = params.scrollerForList;
}
if (params.TrainSettingDialogController !== undefined) {
this.TrainSettingDialogController = params.TrainSettingDialogController;
}
}
updateStateVars(params: Display_Params) {
}
purgeVariableDependenciesOnElmtId(rmElmtId) {
this.__TrainList.purgeDependencyOnElmtId(rmElmtId);
this.__AllModelObjArr.purgeDependencyOnElmtId(rmElmtId);
this.__ModelID.purgeDependencyOnElmtId(rmElmtId);
this.__showArr.purgeDependencyOnElmtId(rmElmtId);
}
aboutToBeDeleted() {
this.__TrainList.aboutToBeDeleted();
this.__AllModelObjArr.aboutToBeDeleted();
this.__ModelID.aboutToBeDeleted();
this.__showArr.aboutToBeDeleted();
SubscriberManager.Get().delete(this.id__());
this.aboutToBeDeletedInternal();
}
private __TrainList: SynchedPropertySimpleOneWayPU<any[]>;
get TrainList() {
return this.__TrainList.get();
}
set TrainList(newValue: any[]) {
this.__TrainList.set(newValue);
}
private __AllModelObjArr: SynchedPropertySimpleOneWayPU<any[]>;
get AllModelObjArr() {
return this.__AllModelObjArr.get();
}
set AllModelObjArr(newValue: any[]) {
this.__AllModelObjArr.set(newValue);
}
private __ModelID: SynchedPropertySimpleTwoWayPU<number>;
get ModelID() {
return this.__ModelID.get();
}
set ModelID(newValue: number) {
this.__ModelID.set(newValue);
}
private __showArr: SynchedPropertySimpleOneWayPU<string[]>;
get showArr() {
return this.__showArr.get();
}
set showArr(newValue: string[]) {
this.__showArr.set(newValue);
}
private scrollerForList: Scroller;
private TrainSettingDialogController: CustomDialogController;
initialRender() {
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Column.create();
Column.debugLine("Components/Display.ets(17:5)");
Column.width('100%');
Column.height('100%');
if (!isInitialRender) {
Column.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//功能按钮
Row.create({ space: 5 });
Row.debugLine("Components/Display.ets(19:7)");
//功能按钮
Row.margin({ top: 3, bottom: 3 });
//功能按钮
Row.justifyContent(FlexAlign.Start);
//功能按钮
Row.width('100%');
//功能按钮
Row.height('15%');
if (!isInitialRender) {
//功能按钮
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('训练参数设置');
Text.debugLine("Components/Display.ets(20:9)");
Text.fontSize(14);
Text.fontWeight(700);
Text.backgroundColor('#00BBFF');
Text.border({ width: 1 });
Text.onClick(() => {
this.TrainSettingDialogController.open();
});
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('训练');
Text.debugLine("Components/Display.ets(29:9)");
Text.fontSize(14);
Text.fontWeight(700);
Text.backgroundColor('#00BBFF');
Text.border({ width: 1 });
Text.onClick(() => {
});
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('输出模型程序');
Text.debugLine("Components/Display.ets(38:9)");
Text.fontSize(14);
Text.fontWeight(700);
Text.backgroundColor('#00BBFF');
Text.border({ width: 1 });
Text.onClick(() => {
});
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('测试');
Text.debugLine("Components/Display.ets(47:9)");
Text.fontSize(14);
Text.fontWeight(700);
Text.backgroundColor('#00BBFF');
Text.border({ width: 1 });
Text.onClick(() => {
});
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
//功能按钮
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Scroll.create();
Scroll.debugLine("Components/Display.ets(61:7)");
Scroll.borderWidth(1);
Scroll.width('100%');
Scroll.height('83%');
if (!isInitialRender) {
Scroll.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
List.create({ space: 2, scroller: this.scrollerForList });
List.debugLine("Components/Display.ets(62:9)");
if (!isInitialRender) {
List.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
ForEach.create();
const forEachItemGenFunction = (_item, index: number) => {
const item = _item;
{
const itemCreation = (elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
ListItem.create(deepRenderFunction, true);
ListItem.width("100%");
ListItem.height(16);
ListItem.debugLine("Components/Display.ets(64:13)");
if (!isInitialRender) {
ListItem.pop();
}
ViewStackProcessor.StopGetAccessRecording();
};
const deepRenderFunction = (elmtId, isInitialRender) => {
itemCreation(elmtId, isInitialRender);
this.updateFuncByElmtId.set(elmtId, itemCreation);
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create(item);
Text.debugLine("Components/Display.ets(65:15)");
Text.fontSize(14);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
ListItem.pop();
};
this.observeComponentCreation(itemCreation);
ListItem.pop();
}
};
this.forEachUpdateFunction(elmtId, this.showArr, forEachItemGenFunction, (item: string) => item, true, false);
if (!isInitialRender) {
ForEach.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
ForEach.pop();
List.pop();
Scroll.pop();
Column.pop();
}
rerender() {
this.updateDirtyElements();
}
}

View File

@ -0,0 +1,752 @@
interface ToolBar_Params {
ModelID?: number;
DataArr?: any[];
Listinstance?: any[][];
showArr?: string[];
ModelDialogController?: CustomDialogController;
}
import ModelDialog from "@bundle:com.example.machinelearning/entry/ets/Components/ModelDialog";
export default class ToolBar extends ViewPU {
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined) {
super(parent, __localStorage, elmtId);
if (typeof paramsLambda === "function") {
this.paramsGenerator_ = paramsLambda;
}
this.__ModelID = new SynchedPropertySimpleTwoWayPU(params.ModelID, this, "ModelID");
this.__DataArr = new SynchedPropertyObjectTwoWayPU(params.DataArr, this, "DataArr");
this.__Listinstance = new SynchedPropertyObjectTwoWayPU(params.Listinstance, this, "Listinstance");
this.__showArr = new SynchedPropertyObjectTwoWayPU(params.showArr, this, "showArr");
this.ModelDialogController = new CustomDialogController({
builder: () => {
let paramsLambda = () => {
return {
Listinstance: this.__Listinstance,
ModelID: this.__ModelID,
DataArr: this.__DataArr,
showArr: this.__showArr
};
};
let jsDialog = new ModelDialog(this, { Listinstance: this.__Listinstance, ModelID: this.__ModelID, DataArr: this.__DataArr, showArr: this.__showArr }, undefined, -1, paramsLambda);
jsDialog.setController(this.ModelDialogController);
ViewPU.create(jsDialog);
},
gridCount: 4
}, this);
this.setInitiallyProvidedValue(params);
}
setInitiallyProvidedValue(params: ToolBar_Params) {
if (params.ModelDialogController !== undefined) {
this.ModelDialogController = params.ModelDialogController;
}
}
updateStateVars(params: ToolBar_Params) {
}
purgeVariableDependenciesOnElmtId(rmElmtId) {
this.__ModelID.purgeDependencyOnElmtId(rmElmtId);
this.__DataArr.purgeDependencyOnElmtId(rmElmtId);
this.__Listinstance.purgeDependencyOnElmtId(rmElmtId);
this.__showArr.purgeDependencyOnElmtId(rmElmtId);
}
aboutToBeDeleted() {
this.__ModelID.aboutToBeDeleted();
this.__DataArr.aboutToBeDeleted();
this.__Listinstance.aboutToBeDeleted();
this.__showArr.aboutToBeDeleted();
SubscriberManager.Get().delete(this.id__());
this.aboutToBeDeletedInternal();
}
private __ModelID: SynchedPropertySimpleTwoWayPU<number>;
get ModelID() {
return this.__ModelID.get();
}
set ModelID(newValue: number) {
this.__ModelID.set(newValue);
}
private __DataArr: SynchedPropertySimpleOneWayPU<any[]>;
get DataArr() {
return this.__DataArr.get();
}
set DataArr(newValue: any[]) {
this.__DataArr.set(newValue);
}
private __Listinstance: SynchedPropertySimpleOneWayPU<any[][]>;
get Listinstance() {
return this.__Listinstance.get();
}
set Listinstance(newValue: any[][]) {
this.__Listinstance.set(newValue);
}
private __showArr: SynchedPropertySimpleOneWayPU<string[]>;
get showArr() {
return this.__showArr.get();
}
set showArr(newValue: string[]) {
this.__showArr.set(newValue);
}
private ModelDialogController: CustomDialogController;
initialRender() {
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Column.create();
Column.debugLine("Components/ToolBar.ets(15:5)");
Column.width('100%');
Column.height('100%');
Column.justifyContent(FlexAlign.Center);
Column.borderWidth(1);
if (!isInitialRender) {
Column.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//加载数据集和卷积
Row.create();
Row.debugLine("Components/ToolBar.ets(17:7)");
//加载数据集和卷积
Row.width('100%');
//加载数据集和卷积
Row.height('16%');
if (!isInitialRender) {
//加载数据集和卷积
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//加载数据集
Row.create();
Row.debugLine("Components/ToolBar.ets(19:9)");
//加载数据集
Row.width('50%');
if (!isInitialRender) {
//加载数据集
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('加载数据集');
Text.debugLine("Components/ToolBar.ets(20:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/data.png');
Image.debugLine("Components/ToolBar.ets(25:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
Image.border({
color: this.ModelID == 0 ? Color.Red : Color.Transparent,
width: 1
});
Image.onClick(() => {
this.ModelID = 0;
});
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//加载数据集
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//卷积
Row.create();
Row.debugLine("Components/ToolBar.ets(39:9)");
//卷积
Row.width('50%');
if (!isInitialRender) {
//卷积
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('卷积');
Text.debugLine("Components/ToolBar.ets(40:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/conv.png');
Image.debugLine("Components/ToolBar.ets(45:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
Image.border({
color: this.ModelID == 1 ? Color.Red : Color.Transparent,
width: 1
});
Image.onClick(() => {
this.ModelID = 1;
this.ModelDialogController.open();
});
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//卷积
Row.pop();
//加载数据集和卷积
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//池化和全连接函数
Row.create();
Row.debugLine("Components/ToolBar.ets(63:7)");
//池化和全连接函数
Row.width('100%');
//池化和全连接函数
Row.height('16%');
if (!isInitialRender) {
//池化和全连接函数
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//池化
Row.create();
Row.debugLine("Components/ToolBar.ets(65:9)");
//池化
Row.width('50%');
if (!isInitialRender) {
//池化
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('池化');
Text.debugLine("Components/ToolBar.ets(66:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/pool.png');
Image.debugLine("Components/ToolBar.ets(71:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
Image.border({
color: this.ModelID == 2 ? Color.Red : Color.Transparent,
width: 1
});
Image.onClick(() => {
this.ModelID = 2;
this.ModelDialogController.open();
});
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//池化
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//全连接函数
Row.create();
Row.debugLine("Components/ToolBar.ets(86:9)");
//全连接函数
Row.width('50%');
if (!isInitialRender) {
//全连接函数
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('全连接函数');
Text.debugLine("Components/ToolBar.ets(87:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/full_connect.png');
Image.debugLine("Components/ToolBar.ets(92:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
Image.border({
color: this.ModelID == 3 ? Color.Red : Color.Transparent,
width: 1
});
Image.onClick(() => {
this.ModelID = 3;
this.ModelDialogController.open();
});
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//全连接函数
Row.pop();
//池化和全连接函数
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//非线性函数和类别
Row.create();
Row.debugLine("Components/ToolBar.ets(110:7)");
//非线性函数和类别
Row.width('100%');
//非线性函数和类别
Row.height('16%');
if (!isInitialRender) {
//非线性函数和类别
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//非线性函数
Row.create();
Row.debugLine("Components/ToolBar.ets(112:9)");
//非线性函数
Row.width('50%');
if (!isInitialRender) {
//非线性函数
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('非线性函数');
Text.debugLine("Components/ToolBar.ets(113:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/nonlinear.png');
Image.debugLine("Components/ToolBar.ets(118:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
Image.border({
color: this.ModelID == 4 ? Color.Red : Color.Transparent,
width: 1
});
Image.onClick(() => {
this.ModelID = 4;
this.ModelDialogController.open();
});
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//非线性函数
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//类别
Row.create();
Row.debugLine("Components/ToolBar.ets(133:9)");
//类别
Row.width('50%');
if (!isInitialRender) {
//类别
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('类别');
Text.debugLine("Components/ToolBar.ets(134:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/classifier.png');
Image.debugLine("Components/ToolBar.ets(139:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
Image.border({
color: this.ModelID == 5 ? Color.Red : Color.Transparent,
width: 1
});
Image.onClick(() => {
this.ModelID = 5;
this.ModelDialogController.open();
});
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//类别
Row.pop();
//非线性函数和类别
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//误差和调整1
Row.create();
Row.debugLine("Components/ToolBar.ets(157:7)");
//误差和调整1
Row.width('100%');
//误差和调整1
Row.height('16%');
if (!isInitialRender) {
//误差和调整1
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//误差
Row.create();
Row.debugLine("Components/ToolBar.ets(159:9)");
//误差
Row.width('50%');
if (!isInitialRender) {
//误差
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('误差');
Text.debugLine("Components/ToolBar.ets(160:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/error.png');
Image.debugLine("Components/ToolBar.ets(165:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
Image.border({
color: this.ModelID == 6 ? Color.Red : Color.Transparent,
width: 1
});
Image.onClick(() => {
this.ModelID = 6;
this.ModelDialogController.open();
});
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//误差
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//调整1
Row.create();
Row.debugLine("Components/ToolBar.ets(180:9)");
//调整1
Row.width('50%');
if (!isInitialRender) {
//调整1
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('调整1');
Text.debugLine("Components/ToolBar.ets(181:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/adjust.png');
Image.debugLine("Components/ToolBar.ets(186:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
Image.border({
color: this.ModelID == 7 ? Color.Red : Color.Transparent,
width: 1
});
Image.onClick(() => {
this.ModelID = 7;
});
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//调整1
Row.pop();
//误差和调整1
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//调整2和调整3
Row.create();
Row.debugLine("Components/ToolBar.ets(204:7)");
//调整2和调整3
Row.width('100%');
//调整2和调整3
Row.height('16%');
if (!isInitialRender) {
//调整2和调整3
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//调整2
Row.create();
Row.debugLine("Components/ToolBar.ets(206:9)");
//调整2
Row.width('50%');
if (!isInitialRender) {
//调整2
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('调整2');
Text.debugLine("Components/ToolBar.ets(207:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/adjust.png');
Image.debugLine("Components/ToolBar.ets(212:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
Image.border({
color: this.ModelID == 8 ? Color.Red : Color.Transparent,
width: 1
});
Image.onClick(() => {
this.ModelID = 8;
});
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//调整2
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//调整3
Row.create();
Row.debugLine("Components/ToolBar.ets(227:9)");
//调整3
Row.width('50%');
if (!isInitialRender) {
//调整3
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('调整3');
Text.debugLine("Components/ToolBar.ets(228:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/adjust.png');
Image.debugLine("Components/ToolBar.ets(233:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
Image.border({
color: this.ModelID == 9 ? Color.Red : Color.Transparent,
width: 1
});
Image.onClick(() => {
this.ModelID = 9;
});
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//调整3
Row.pop();
//调整2和调整3
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//主数据连接线和参数连接线
Row.create();
Row.debugLine("Components/ToolBar.ets(250:7)");
//主数据连接线和参数连接线
Row.width('100%');
//主数据连接线和参数连接线
Row.height('16%');
if (!isInitialRender) {
//主数据连接线和参数连接线
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//主数据连接线
Row.create();
Row.debugLine("Components/ToolBar.ets(252:9)");
//主数据连接线
Row.width('50%');
if (!isInitialRender) {
//主数据连接线
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('主数据连接线');
Text.debugLine("Components/ToolBar.ets(253:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/arrow.png');
Image.debugLine("Components/ToolBar.ets(258:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//主数据连接线
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
//参数连接线
Row.create();
Row.debugLine("Components/ToolBar.ets(265:9)");
//参数连接线
Row.width('50%');
if (!isInitialRender) {
//参数连接线
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('参数连接线');
Text.debugLine("Components/ToolBar.ets(266:11)");
Text.width(50);
Text.fontSize(14);
Text.textAlign(TextAlign.Center);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('/common/pictures/arrow2.png');
Image.debugLine("Components/ToolBar.ets(271:11)");
Image.objectFit(ImageFit.Contain);
Image.width(50);
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
//参数连接线
Row.pop();
//主数据连接线和参数连接线
Row.pop();
Column.pop();
}
rerender() {
this.updateDirtyElements();
}
}

View File

@ -0,0 +1,227 @@
interface TrainSettingDialog_Params {
controller?: CustomDialogController;
TrainList?: any[];
epoch_entry?: string;
batch_size_entry?: string;
rate_entry?: string;
}
export default class TrainSettingDialog extends ViewPU {
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined) {
super(parent, __localStorage, elmtId);
if (typeof paramsLambda === "function") {
this.paramsGenerator_ = paramsLambda;
}
this.controller = undefined;
this.__TrainList = new SynchedPropertyObjectTwoWayPU(params.TrainList, this, "TrainList");
this.epoch_entry = '' //训练轮数
;
this.batch_size_entry = '' //批次
;
this.rate_entry = '' //学习率
;
this.setInitiallyProvidedValue(params);
}
setInitiallyProvidedValue(params: TrainSettingDialog_Params) {
if (params.controller !== undefined) {
this.controller = params.controller;
}
if (params.epoch_entry !== undefined) {
this.epoch_entry = params.epoch_entry;
}
if (params.batch_size_entry !== undefined) {
this.batch_size_entry = params.batch_size_entry;
}
if (params.rate_entry !== undefined) {
this.rate_entry = params.rate_entry;
}
}
updateStateVars(params: TrainSettingDialog_Params) {
}
purgeVariableDependenciesOnElmtId(rmElmtId) {
this.__TrainList.purgeDependencyOnElmtId(rmElmtId);
}
aboutToBeDeleted() {
this.__TrainList.aboutToBeDeleted();
SubscriberManager.Get().delete(this.id__());
this.aboutToBeDeletedInternal();
}
private controller: CustomDialogController;
setController(ctr: CustomDialogController) {
this.controller = ctr;
}
private __TrainList: SynchedPropertySimpleOneWayPU<any[]>;
get TrainList() {
return this.__TrainList.get();
}
set TrainList(newValue: any[]) {
this.__TrainList.set(newValue);
}
private epoch_entry: string; //训练轮数
private batch_size_entry: string; //批次
private rate_entry: string; //学习率
initialRender() {
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Column.create();
Column.debugLine("Components/TrainSettingDialog.ets(11:5)");
Column.justifyContent(FlexAlign.Center);
Column.width('100%');
Column.height('100%');
Column.backgroundColor('#dddddd');
if (!isInitialRender) {
Column.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Row.create();
Row.debugLine("Components/TrainSettingDialog.ets(12:7)");
Row.width('100%');
Row.height('10%');
Row.padding({ left: '3%' });
if (!isInitialRender) {
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Image.create('../common/pictures/icon_logo.png');
Image.debugLine("Components/TrainSettingDialog.ets(13:9)");
Image.objectFit(ImageFit.Contain);
Image.width(16);
if (!isInitialRender) {
Image.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('训练参数配置');
Text.debugLine("Components/TrainSettingDialog.ets(17:9)");
Text.fontSize(16);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Column.create();
Column.debugLine("Components/TrainSettingDialog.ets(24:7)");
Column.width('100%');
Column.height('90%');
Column.justifyContent(FlexAlign.SpaceEvenly);
if (!isInitialRender) {
Column.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('训练轮数:');
Text.debugLine("Components/TrainSettingDialog.ets(25:9)");
Text.fontSize(16);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
TextInput.create({ placeholder: '4' });
TextInput.debugLine("Components/TrainSettingDialog.ets(28:9)");
TextInput.width(200);
TextInput.borderRadius(0);
TextInput.backgroundColor('#eeeeee');
TextInput.onChange((value: string) => {
this.epoch_entry = value;
});
if (!isInitialRender) {
TextInput.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('批次:');
Text.debugLine("Components/TrainSettingDialog.ets(36:9)");
Text.fontSize(16);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
TextInput.create({ placeholder: '0.1' });
TextInput.debugLine("Components/TrainSettingDialog.ets(39:9)");
TextInput.width(200);
TextInput.borderRadius(0);
TextInput.backgroundColor('#eeeeee');
TextInput.onChange((value: string) => {
this.rate_entry = value;
});
if (!isInitialRender) {
TextInput.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Text.create('学习率:');
Text.debugLine("Components/TrainSettingDialog.ets(47:9)");
Text.fontSize(16);
if (!isInitialRender) {
Text.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Text.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
TextInput.create({ placeholder: '32' });
TextInput.debugLine("Components/TrainSettingDialog.ets(50:9)");
TextInput.width(200);
TextInput.borderRadius(0);
TextInput.backgroundColor('#eeeeee');
TextInput.onChange((value: string) => {
this.batch_size_entry = value;
});
if (!isInitialRender) {
TextInput.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Button.createWithLabel('获取信息');
Button.debugLine("Components/TrainSettingDialog.ets(58:9)");
Button.fontSize(16);
Button.height(40);
Button.onClick(() => {
this.TrainList.push({
'epoch_entry': this.epoch_entry,
'rate_entry': this.rate_entry,
'batch_size_entry': this.batch_size_entry
});
this.controller.close();
});
if (!isInitialRender) {
Button.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
Button.pop();
Column.pop();
Column.pop();
}
rerender() {
this.updateDirtyElements();
}
}

View File

@ -0,0 +1,15 @@
//绘图组件canvas的设置及上下文
export const settings: RenderingContextSettings = new RenderingContextSettings(true);
export const context: CanvasRenderingContext2D = new CanvasRenderingContext2D(settings);
// 图片资源
export const adjust: ImageBitmap = new ImageBitmap("common/pictures/adjust.png");
export const arrow: ImageBitmap = new ImageBitmap("common/pictures/arrow.png");
export const arrow1: ImageBitmap = new ImageBitmap("common/pictures/arrow1.png");
export const arrow2: ImageBitmap = new ImageBitmap("common/pictures/arrow2.png");
export const classifier: ImageBitmap = new ImageBitmap("common/pictures/classifier.png");
export const conv: ImageBitmap = new ImageBitmap("common/pictures/conv.png");
export const data: ImageBitmap = new ImageBitmap("common/pictures/data.png");
export const error: ImageBitmap = new ImageBitmap("common/pictures/error.png");
export const full_connect: ImageBitmap = new ImageBitmap("common/pictures/full_connect.png");
export const nonlinear: ImageBitmap = new ImageBitmap("common/pictures/nonlinear.png");
export const pool: ImageBitmap = new ImageBitmap("common/pictures/pool.png");

View File

@ -0,0 +1,37 @@
import type AbilityConstant from "@ohos:app.ability.AbilityConstant";
import hilog from "@ohos:hilog";
import UIAbility from "@ohos:app.ability.UIAbility";
import type Want from "@ohos:app.ability.Want";
import type window from "@ohos:window";
export default class EntryAbility extends UIAbility {
onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void {
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate');
AppStorage.setOrCreate("SaveText", []);
}
onDestroy(): void {
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy');
}
onWindowStageCreate(windowStage: window.WindowStage): void {
// Main window is created, set main page for this ability
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate');
windowStage.loadContent('pages/Index', (err, data) => {
if (err.code) {
hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? '');
return;
}
hilog.info(0x0000, 'testTag', 'Succeeded in loading the content. Data: %{public}s', JSON.stringify(data) ?? '');
});
}
onWindowStageDestroy(): void {
// Main window is destroyed, release UI related resources
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy');
}
onForeground(): void {
// Ability has brought to foreground
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onForeground');
}
onBackground(): void {
// Ability has back to background
hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onBackground');
}
}

View File

@ -0,0 +1,263 @@
interface Index_Params {
Listinstance?: any[][];
ModelID?: number;
DataArr?: any[];
TrainList?: any[];
AllModelObjArr?: any[];
showArr?: string[];
}
import ToolBar from "@bundle:com.example.machinelearning/entry/ets/Components/ToolBar";
import Display from "@bundle:com.example.machinelearning/entry/ets/Components/Display";
import Content from "@bundle:com.example.machinelearning/entry/ets/Components/Content";
import type common from "@ohos:app.ability.common";
import Window from "@ohos:window";
import type { BusinessError } from "@ohos:base";
class Index extends ViewPU {
constructor(parent, params, __localStorage, elmtId = -1, paramsLambda = undefined) {
super(parent, __localStorage, elmtId);
if (typeof paramsLambda === "function") {
this.paramsGenerator_ = paramsLambda;
}
this.__Listinstance = new ObservedPropertyObjectPU([], this, "Listinstance");
this.__ModelID = new ObservedPropertySimplePU(-1, this, "ModelID");
this.__DataArr = new ObservedPropertyObjectPU([], this, "DataArr");
this.__TrainList = new ObservedPropertyObjectPU([], this, "TrainList");
this.__AllModelObjArr = new ObservedPropertyObjectPU([], this, "AllModelObjArr");
this.__showArr = new ObservedPropertyObjectPU([], this, "showArr");
this.setInitiallyProvidedValue(params);
}
setInitiallyProvidedValue(params: Index_Params) {
if (params.Listinstance !== undefined) {
this.Listinstance = params.Listinstance;
}
if (params.ModelID !== undefined) {
this.ModelID = params.ModelID;
}
if (params.DataArr !== undefined) {
this.DataArr = params.DataArr;
}
if (params.TrainList !== undefined) {
this.TrainList = params.TrainList;
}
if (params.AllModelObjArr !== undefined) {
this.AllModelObjArr = params.AllModelObjArr;
}
if (params.showArr !== undefined) {
this.showArr = params.showArr;
}
}
updateStateVars(params: Index_Params) {
}
purgeVariableDependenciesOnElmtId(rmElmtId) {
this.__Listinstance.purgeDependencyOnElmtId(rmElmtId);
this.__ModelID.purgeDependencyOnElmtId(rmElmtId);
this.__DataArr.purgeDependencyOnElmtId(rmElmtId);
this.__TrainList.purgeDependencyOnElmtId(rmElmtId);
this.__AllModelObjArr.purgeDependencyOnElmtId(rmElmtId);
this.__showArr.purgeDependencyOnElmtId(rmElmtId);
}
aboutToBeDeleted() {
this.__Listinstance.aboutToBeDeleted();
this.__ModelID.aboutToBeDeleted();
this.__DataArr.aboutToBeDeleted();
this.__TrainList.aboutToBeDeleted();
this.__AllModelObjArr.aboutToBeDeleted();
this.__showArr.aboutToBeDeleted();
SubscriberManager.Get().delete(this.id__());
this.aboutToBeDeletedInternal();
}
// 设置开发板横屏显示
private changeOrientation() {
let windowClass: Window.Window | undefined = undefined;
// 获取上下文使用common模块
let context = getContext(this) as common.UIAbilityContext;
let promise = Window.getLastWindow(context);
promise.then((data) => {
windowClass = data;
//切换成横屏
let orientation = Window.Orientation.LANDSCAPE;
windowClass.setPreferredOrientation(orientation, (err: BusinessError) => {
});
console.info('Succeeded in obtaining the top window. Data: ' + JSON.stringify(data));
}).catch((err: BusinessError) => {
console.error('Failed to obtain the top window. Cause: ' + JSON.stringify(err));
});
}
private __Listinstance: ObservedPropertyObjectPU<any[][]>;
get Listinstance() {
return this.__Listinstance.get();
}
set Listinstance(newValue: any[][]) {
this.__Listinstance.set(newValue);
}
private __ModelID: ObservedPropertySimplePU<number>;
get ModelID() {
return this.__ModelID.get();
}
set ModelID(newValue: number) {
this.__ModelID.set(newValue);
}
private __DataArr: ObservedPropertyObjectPU<any[]>;
get DataArr() {
return this.__DataArr.get();
}
set DataArr(newValue: any[]) {
this.__DataArr.set(newValue);
}
private __TrainList: ObservedPropertyObjectPU<any[]>;
get TrainList() {
return this.__TrainList.get();
}
set TrainList(newValue: any[]) {
this.__TrainList.set(newValue);
}
private __AllModelObjArr: ObservedPropertyObjectPU<any[]>;
get AllModelObjArr() {
return this.__AllModelObjArr.get();
}
set AllModelObjArr(newValue: any[]) {
this.__AllModelObjArr.set(newValue);
}
private __showArr: ObservedPropertyObjectPU<string[]>;
get showArr() {
return this.__showArr.get();
}
set showArr(newValue: string[]) {
this.__showArr.set(newValue);
}
aboutToAppear() {
this.changeOrientation();
}
initialRender() {
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Column.create();
Column.debugLine("pages/Index.ets(42:5)");
Column.padding(5);
Column.width('100%');
Column.height('100%');
if (!isInitialRender) {
Column.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
Row.create();
Row.debugLine("pages/Index.ets(43:7)");
Row.width('100%');
Row.height('65%');
if (!isInitialRender) {
Row.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
__Common__.create();
__Common__.width('27%');
__Common__.height('100%');
if (!isInitialRender) {
__Common__.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
{
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
if (isInitialRender) {
let paramsLambda = () => {
return {
Listinstance: this.Listinstance,
ModelID: this.ModelID,
DataArr: this.DataArr,
showArr: this.showArr
};
};
ViewPU.create(new
//功能栏
ToolBar(this, { Listinstance: this.__Listinstance, ModelID: this.__ModelID, DataArr: this.__DataArr, showArr: this.__showArr }, undefined, elmtId, paramsLambda));
}
else {
this.updateStateVarsOfChildByElmtId(elmtId, {});
}
ViewStackProcessor.StopGetAccessRecording();
});
}
__Common__.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
__Common__.create();
__Common__.width('73%');
__Common__.height('100%');
if (!isInitialRender) {
__Common__.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
{
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
if (isInitialRender) {
let paramsLambda = () => {
return {
ModelID: this.ModelID,
DataArr: this.DataArr,
AllModelObjArr: this.AllModelObjArr,
showArr: this.showArr
};
};
ViewPU.create(new
//内容区
Content(this, { ModelID: this.__ModelID, DataArr: this.__DataArr, AllModelObjArr: this.__AllModelObjArr, showArr: this.__showArr }, undefined, elmtId, paramsLambda));
}
else {
this.updateStateVarsOfChildByElmtId(elmtId, {});
}
ViewStackProcessor.StopGetAccessRecording();
});
}
__Common__.pop();
Row.pop();
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
__Common__.create();
__Common__.width('100%');
__Common__.height('35%');
if (!isInitialRender) {
__Common__.pop();
}
ViewStackProcessor.StopGetAccessRecording();
});
{
this.observeComponentCreation((elmtId, isInitialRender) => {
ViewStackProcessor.StartGetAccessRecordingFor(elmtId);
if (isInitialRender) {
let paramsLambda = () => {
return {
TrainList: this.TrainList,
AllModelObjArr: this.AllModelObjArr,
ModelID: this.ModelID,
showArr: this.showArr
};
};
ViewPU.create(new
//展示区
Display(this, { TrainList: this.__TrainList, AllModelObjArr: this.__AllModelObjArr, ModelID: this.__ModelID, showArr: this.__showArr }, undefined, elmtId, paramsLambda));
}
else {
this.updateStateVarsOfChildByElmtId(elmtId, {});
}
ViewStackProcessor.StopGetAccessRecording();
});
}
__Common__.pop();
Column.pop();
}
rerender() {
this.updateDirtyElements();
}
}
ViewStackProcessor.StartGetAccessRecordingFor(ViewStackProcessor.AllocateNewElmetIdForNextComponent());
loadDocument(new Index(undefined, {}));
ViewStackProcessor.StopGetAccessRecording();

View File

@ -0,0 +1,8 @@
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/entryability/EntryAbility.ts;com.example.machinelearning/entry/ets/entryability/EntryAbility;esm;entry/src/main/ets/entryability/EntryAbility.ets;entry
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/pages/Index.ts;com.example.machinelearning/entry/ets/pages/Index;esm;entry/src/main/ets/pages/Index.ets;entry
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/ToolBar.ts;com.example.machinelearning/entry/ets/Components/ToolBar;esm;entry/src/main/ets/Components/ToolBar.ets;entry
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/Display.ts;com.example.machinelearning/entry/ets/Components/Display;esm;entry/src/main/ets/Components/Display.ets;entry
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/Content.ts;com.example.machinelearning/entry/ets/Components/Content;esm;entry/src/main/ets/Components/Content.ets;entry
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/ModelDialog.ts;com.example.machinelearning/entry/ets/Components/ModelDialog;esm;entry/src/main/ets/Components/ModelDialog.ets;entry
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/TrainSettingDialog.ts;com.example.machinelearning/entry/ets/Components/TrainSettingDialog;esm;entry/src/main/ets/Components/TrainSettingDialog.ets;entry
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/common/constants/CommonConstants.ts;com.example.machinelearning/entry/ets/common/constants/CommonConstants;esm;entry/src/main/ets/common/constants/CommonConstants.ets;entry

View File

@ -0,0 +1,9 @@
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/entryability/EntryAbility.ts;F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/entryability/EntryAbility.protoBin
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/pages/Index.ts;F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/pages/Index.protoBin
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/ToolBar.ts;F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/ToolBar.protoBin
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/Display.ts;F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/Display.protoBin
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/Content.ts;F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/Content.protoBin
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/ModelDialog.ts;F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/ModelDialog.protoBin
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/TrainSettingDialog.ts;F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/Components/TrainSettingDialog.protoBin
F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/common/constants/CommonConstants.ts;F:/jiaocai/machine_learning16/entry/.preview/cache/.default/entry/src/main/ets/common/constants/CommonConstants.protoBin
F:\jiaocai\machine_learning16\entry\.preview\cache\.default\npmEntries.txt;F:\jiaocai\machine_learning16\entry\.preview\cache\.default\npmEntries.protoBin

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"deviceType":"default,tablet","checkEntry":"true","localPropertiesPath":"F:\\jiaocai\\machine_learning16\\local.properties","Path":"F:\\Huawei\\node\\","note":"false","aceProfilePath":"F:\\jiaocai\\machine_learning16\\entry\\.preview\\default\\intermediates\\res\\default\\resources\\base\\profile","isPreview":"true","hapMode":"false","buildMode":"debug","img2bin":"true","projectProfilePath":"F:\\jiaocai\\machine_learning16\\build-profile.json5","watchMode":"true","appResource":"F:\\jiaocai\\machine_learning16\\entry\\.preview\\default\\intermediates\\res\\default\\ResourceTable.txt","logLevel":"3","stageRouterConfig":{"contents":["{\"module\":{\"pages\":\"$profile:main_pages\",\"name\":\"entry\"}}","{\"src\":[\"pages/Index\"]}"],"paths":["F:\\jiaocai\\machine_learning16\\entry\\.preview\\default\\intermediates\\res\\default\\module.json","F:\\jiaocai\\machine_learning16\\entry\\.preview\\default\\intermediates\\res\\default\\resources\\base\\profile\\main_pages.json"]},"port":"29908","aceBuildJson":"F:\\jiaocai\\machine_learning16\\entry\\.preview\\default\\intermediates\\loader\\default\\loader.json","aceModuleRoot":"F:\\jiaocai\\machine_learning16\\entry\\src\\main\\ets","aceSoPath":"F:\\jiaocai\\machine_learning16\\entry\\.preview\\cache\\nativeDependencies.txt","cachePath":"F:\\jiaocai\\machine_learning16\\entry\\.preview\\cache\\.default","aceModuleBuild":"F:\\jiaocai\\machine_learning16\\entry\\.preview\\default\\intermediates\\assets\\default\\ets","aceSuperVisualPath":"F:\\jiaocai\\machine_learning16\\entry\\src\\main\\supervisual","aceModuleJsonPath":"F:\\jiaocai\\machine_learning16\\entry\\.preview\\default\\intermediates\\res\\default\\module.json"}

View File

@ -0,0 +1,44 @@
/*
* Copyright (c) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef RESOURCE_TABLE_H
#define RESOURCE_TABLE_H
#include<stdint.h>
namespace OHOS {
const int32_t STRING_ENTRYABILITY_DESC = 0x01000004;
const int32_t STRING_ENTRYABILITY_LABEL = 0x01000005;
const int32_t STRING_APP_NAME = 0x01000001;
const int32_t STRING_MODULE_DESC = 0x01000006;
const int32_t COLOR_START_WINDOW_BACKGROUND = 0x01000011;
const int32_t MEDIA_ADJUST = 0x01000013;
const int32_t MEDIA_APP_ICON = 0x01000000;
const int32_t MEDIA_ARROW = 0x01000012;
const int32_t MEDIA_ARROW1 = 0x01000007;
const int32_t MEDIA_ARROW2 = 0x01000003;
const int32_t MEDIA_CLASSIFIER = 0x01000002;
const int32_t MEDIA_CONV = 0x0100000b;
const int32_t MEDIA_DATA = 0x01000010;
const int32_t MEDIA_ERROR = 0x0100000a;
const int32_t MEDIA_FULL_CONNECT = 0x01000014;
const int32_t MEDIA_ICON = 0x0100000c;
const int32_t MEDIA_ICON_LOGO = 0x01000009;
const int32_t MEDIA_NONLINEAR = 0x0100000d;
const int32_t MEDIA_POOL = 0x0100000e;
const int32_t MEDIA_STARTICON = 0x01000008;
const int32_t PROFILE_MAIN_PAGES = 0x0100000f;
}
#endif

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"modulePathMap":{"entry":"F:\\jiaocai\\machine_learning16\\entry"},"compileMode":"esmodule","projectRootPath":"F:\\jiaocai\\machine_learning16","nodeModulesPath":"F:\\jiaocai\\machine_learning16\\entry\\.preview\\default\\intermediates\\loader_out\\default\\node_modules","moduleName":"entry","harNameOhmMap":{},"packageManagerType":"ohpm","anBuildOutPut":"F:\\jiaocai\\machine_learning16\\entry\\.preview\\default\\intermediates\\loader_out\\default\\an\\arm64-v8a","anBuildMode":"type"}

View File

@ -0,0 +1,51 @@
{
"app": {
"bundleName": "com.example.machinelearning",
"vendor": "example",
"versionCode": 1000000,
"versionName": "1.0.0",
"icon": "$media:app_icon",
"label": "$string:app_name",
"apiReleaseType": "Release",
"compileSdkVersion": "4.0.10.13",
"targetAPIVersion": 10,
"minAPIVersion": 9,
"compileSdkType": "OpenHarmony",
"debug": true
},
"module": {
"name": "entry",
"type": "entry",
"description": "$string:module_desc",
"mainElement": "EntryAbility",
"deviceTypes": [
"default",
"tablet"
],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"abilities": [
{
"name": "EntryAbility",
"srcEntry": "./ets/entryability/EntryAbility.ets",
"description": "$string:EntryAbility_desc",
"icon": "$media:icon",
"label": "$string:EntryAbility_label",
"startWindowIcon": "$media:startIcon",
"startWindowBackground": "$color:start_window_background",
"exported": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
]
}
]
}
}

View File

@ -0,0 +1,54 @@
{
"app": {
"bundleName": "com.example.machinelearning",
"vendor": "example",
"versionCode": 1000000,
"versionName": "1.0.0",
"icon": "$media:app_icon",
"label": "$string:app_name",
"apiReleaseType": "Release",
"compileSdkVersion": "4.0.10.13",
"targetAPIVersion": 10,
"minAPIVersion": 9,
"compileSdkType": "OpenHarmony",
"debug": true
},
"module": {
"name": "entry",
"type": "entry",
"description": "$string:module_desc",
"mainElement": "EntryAbility",
"deviceTypes": [
"default",
"tablet"
],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"abilities": [
{
"name": "EntryAbility",
"srcEntry": "./ets/entryability/EntryAbility.ets",
"description": "$string:EntryAbility_desc",
"icon": "$media:icon",
"label": "$string:EntryAbility_label",
"startWindowIcon": "$media:startIcon",
"startWindowBackground": "$color:start_window_background",
"exported": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
]
}
],
"virtualMachine": "ark9.0.0.0",
"compileMode": "esmodule",
"dependencies": []
}
}

View File

@ -0,0 +1,21 @@
string EntryAbility_desc 0x01000004
string EntryAbility_label 0x01000005
string app_name 0x01000001
string module_desc 0x01000006
color start_window_background 0x01000011
media adjust 0x01000013
media app_icon 0x01000000
media arrow 0x01000012
media arrow1 0x01000007
media arrow2 0x01000003
media classifier 0x01000002
media conv 0x0100000b
media data 0x01000010
media error 0x0100000a
media full_connect 0x01000014
media icon 0x0100000c
media icon_logo 0x01000009
media nonlinear 0x0100000d
media pool 0x0100000e
media startIcon 0x01000008
profile main_pages 0x0100000f

View File

@ -0,0 +1,110 @@
{
"record" :
[
{
"id" : "0x01000000",
"name" : "app_icon",
"type" : "media"
},
{
"id" : "0x01000001",
"name" : "app_name",
"type" : "string"
},
{
"id" : "0x01000002",
"name" : "classifier",
"type" : "media"
},
{
"id" : "0x01000003",
"name" : "arrow2",
"type" : "media"
},
{
"id" : "0x01000004",
"name" : "EntryAbility_desc",
"type" : "string"
},
{
"id" : "0x01000005",
"name" : "EntryAbility_label",
"type" : "string"
},
{
"id" : "0x01000006",
"name" : "module_desc",
"type" : "string"
},
{
"id" : "0x01000007",
"name" : "arrow1",
"type" : "media"
},
{
"id" : "0x01000008",
"name" : "startIcon",
"type" : "media"
},
{
"id" : "0x01000009",
"name" : "icon_logo",
"type" : "media"
},
{
"id" : "0x0100000A",
"name" : "error",
"type" : "media"
},
{
"id" : "0x0100000B",
"name" : "conv",
"type" : "media"
},
{
"id" : "0x0100000C",
"name" : "icon",
"type" : "media"
},
{
"id" : "0x0100000D",
"name" : "nonlinear",
"type" : "media"
},
{
"id" : "0x0100000E",
"name" : "pool",
"type" : "media"
},
{
"id" : "0x0100000F",
"name" : "main_pages",
"type" : "profile"
},
{
"id" : "0x01000010",
"name" : "data",
"type" : "media"
},
{
"id" : "0x01000011",
"name" : "start_window_background",
"type" : "color"
},
{
"id" : "0x01000012",
"name" : "arrow",
"type" : "media"
},
{
"id" : "0x01000013",
"name" : "adjust",
"type" : "media"
},
{
"id" : "0x01000014",
"name" : "full_connect",
"type" : "media"
}
]
}

View File

@ -0,0 +1,69 @@
{
"app" :
{
"apiReleaseType" : "Release",
"bundleName" : "com.example.machinelearning",
"compileSdkType" : "OpenHarmony",
"compileSdkVersion" : "4.0.10.13",
"debug" : true,
"icon" : "$media:app_icon",
"iconId" : 16777216,
"label" : "$string:app_name",
"labelId" : 16777217,
"minAPIVersion" : 9,
"targetAPIVersion" : 10,
"vendor" : "example",
"versionCode" : 1000000,
"versionName" : "1.0.0"
},
"module" :
{
"abilities" :
[
{
"description" : "$string:EntryAbility_desc",
"descriptionId" : 16777220,
"exported" : true,
"icon" : "$media:icon",
"iconId" : 16777228,
"label" : "$string:EntryAbility_label",
"labelId" : 16777221,
"name" : "EntryAbility",
"skills" :
[
{
"actions" :
[
"action.system.home"
],
"entities" :
[
"entity.system.home"
]
}
],
"srcEntry" : "./ets/entryability/EntryAbility.ets",
"startWindowBackground" : "$color:start_window_background",
"startWindowBackgroundId" : 16777233,
"startWindowIcon" : "$media:startIcon",
"startWindowIconId" : 16777224
}
],
"compileMode" : "esmodule",
"deliveryWithInstall" : true,
"dependencies" : [],
"description" : "$string:module_desc",
"descriptionId" : 16777222,
"deviceTypes" :
[
"default",
"tablet"
],
"installationFree" : false,
"mainElement" : "EntryAbility",
"name" : "entry",
"pages" : "$profile:main_pages",
"type" : "entry",
"virtualMachine" : "ark9.0.0.0"
}
}

View File

@ -0,0 +1,31 @@
{
"apiType": "stageMode",
"buildOption": {
"arkOptions": {
// "apPath": "./modules.ap" /* Profile used for profile-guided optimization (PGO), a compiler optimization technique to improve app runtime performance. */
}
},
"buildOptionSet": [
{
"name": "release",
"arkOptions": {
"obfuscation": {
"ruleOptions": {
"enable": true,
"files": [
"./obfuscation-rules.txt"
]
}
}
}
},
],
"targets": [
{
"name": "default"
},
{
"name": "ohosTest",
}
]
}

View File

@ -0,0 +1 @@
{"compileConfig":{"deviceType":"default","Path":"D:\\computer_programing\\software\\NodeJs\\","localPropertiesPath":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\local.properties","note":"false","aceProfilePath":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\build\\default\\intermediates\\res\\default\\resources\\base\\profile","hapMode":"false","buildMode":"debug","img2bin":"true","projectProfilePath":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\build-profile.json5","compilerType":"ark","watchMode":"true","appResource":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\build\\default\\intermediates\\res\\default\\ResourceTable.txt","logLevel":"3","aceBuildJson":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\build\\default\\intermediates\\loader\\default\\loader.json","aceModuleRoot":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\src\\main\\ets","aceSoPath":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\build\\default\\intermediates\\loader_out\\default\\nativeDependencies.txt","cachePath":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule\\debug","aceModuleBuild":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\build\\default\\intermediates\\loader_out\\default\\ets","aceSuperVisualPath":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\src\\main\\supervisual","aceModuleJsonPath":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\build\\default\\intermediates\\res\\default\\module.json"},"patchConfig":{"enableMap":"true","mode":"hotReload","oldMapFilePath":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\build\\default\\intermediates\\loader_out\\default\\ets","changedFileList":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\build\\default\\intermediates\\hotReload\\changedFileList.json","patchAbcPath":"D:\\computer_programing\\code\\openharmony_north_program\\machine_learning\\entry\\build\\default\\intermediates\\hotReload\\patchAbcPath\\ets"}}

Some files were not shown because too many files have changed in this diff Show More