├── .gitignore
├── module
├── graph
│ ├── .cm
│ │ ├── desc.json
│ │ ├── info.json
│ │ ├── updates.json
│ │ └── meta.json
│ ├── templates
│ │ ├── _info.txt
│ │ ├── d3_2d_scatter.style
│ │ ├── d3_2d_bars.style
│ │ └── d3_2d_scatter.html.legend
│ ├── third-party
│ │ └── d3
│ │ │ ├── README.md
│ │ │ └── LICENSE
│ └── module_shifted_colormap.py
├── paper
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ ├── info.json
│ │ └── updates.json
│ └── module.py
├── advice
│ └── .cm
│ │ ├── desc.json
│ │ ├── info.json
│ │ ├── meta.json
│ │ └── updates.json
├── experiment
│ └── .cm
│ │ ├── desc.json
│ │ ├── info.json
│ │ ├── updates.json
│ │ └── meta.json
├── jnotebook
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ └── module.py
├── model.tf
│ ├── .cm
│ │ ├── desc.json
│ │ ├── info.json
│ │ ├── meta.json
│ │ └── updates.json
│ ├── module_linear_classifier.py
│ └── module_dnn_linear_combined_classifier.py
├── report
│ └── .cm
│ │ ├── desc.json
│ │ ├── updates.json
│ │ ├── info.json
│ │ └── meta.json
├── experiment.raw
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ └── module.py
├── experiment.view
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ └── module.py
├── math.conditions
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ └── module.py
├── math.variation
│ └── .cm
│ │ ├── desc.json
│ │ ├── info.json
│ │ ├── meta.json
│ │ └── updates.json
├── model.species
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ └── module.py
├── .cm
│ ├── alias-a-advice
│ ├── alias-a-graph
│ ├── alias-a-model
│ ├── alias-a-model.r
│ ├── alias-a-model.tf
│ ├── alias-a-paper
│ ├── alias-a-report
│ ├── alias-a-table
│ ├── alias-u-1e348bd6ab43ce8a
│ ├── alias-u-208314998a44ddab
│ ├── alias-u-2884ee69eaefe71e
│ ├── alias-u-2a2ede3f72b29b6b
│ ├── alias-u-2d41f89bcf32d4d4
│ ├── alias-u-3610126974aec8b0
│ ├── alias-u-dd506614c11964a6
│ ├── alias-u-f92b25ca2f1a98ae
│ ├── alias-a-experiment
│ ├── alias-a-graph.dot
│ ├── alias-a-jnotebook
│ ├── alias-a-math.frontier
│ ├── alias-a-model.species
│ ├── alias-u-145039462db4f4d2
│ ├── alias-u-38e7de41acb41d3b
│ ├── alias-u-94a051a40018fcd3
│ ├── alias-u-99d08d331cdc5478
│ ├── alias-u-bc0409fb61f0aa82
│ ├── alias-a-experiment.raw
│ ├── alias-a-experiment.view
│ ├── alias-a-math.conditions
│ ├── alias-a-math.variation
│ ├── alias-a-model.sklearn
│ ├── alias-u-4894dc942079d0a4
│ ├── alias-u-c044a31a47d440c1
│ ├── alias-u-d3b13388e6152da7
│ ├── alias-u-d5ac649c14325bca
│ ├── alias-u-e7c9e42ba8edace0
│ ├── alias-a-model.image.classification
│ └── alias-u-42b9a1221eb50259
├── model.image.classification
│ └── .cm
│ │ ├── desc.json
│ │ ├── info.json
│ │ ├── meta.json
│ │ └── updates.json
├── table
│ └── .cm
│ │ ├── meta.json
│ │ └── info.json
├── math.frontier
│ ├── .cm
│ │ ├── meta.json
│ │ └── info.json
│ └── module.py
├── model
│ └── .cm
│ │ ├── info.json
│ │ └── meta.json
├── model.r
│ ├── .cm
│ │ ├── info.json
│ │ └── meta.json
│ ├── model_earth_predict.R
│ ├── model_lm_predict.R
│ ├── model_party_predict.R
│ ├── model_nnet_predict.R
│ ├── model_randomforest_predict.R
│ ├── model_svm_predict.R
│ ├── model_rpart_predict.R
│ ├── model_party_build.R
│ ├── model_nnet_build.R
│ ├── model_rpart_build.R
│ ├── model_randomforest_build.R
│ ├── model_earth_build.R
│ ├── model_svm_build.R
│ └── model_lm_build.R
├── graph.dot
│ └── .cm
│ │ ├── info.json
│ │ └── meta.json
└── model.sklearn
│ └── .cm
│ ├── info.json
│ ├── meta.json
│ └── updates.json
├── .cm
├── alias-a-demo
├── alias-a-graph
├── alias-a-wfe
├── alias-u-0e1dbf34af69c41f
├── alias-u-1e4e644996b7f2a0
├── alias-u-2d41f89bcf32d4d4
├── alias-a-module
├── alias-u-032630d041b4fd8a
├── alias-a-model.species
└── alias-u-38e7de41acb41d3b
├── demo
├── graph-bar
│ ├── .cm
│ │ ├── meta.json
│ │ └── info.json
│ ├── graph_bars_test.bat
│ ├── graph_bars_test_with_error.bat
│ ├── graph_bars_test_save_to_html.bat
│ ├── graph_bars_test.json
│ ├── graph_bars_test_with_error.json
│ └── graph_bars_test_save_to_html.json
├── graph-histo
│ ├── .cm
│ │ ├── meta.json
│ │ └── info.json
│ ├── graph_histo_test.bat
│ └── graph_histo_test.json
├── graph-lines
│ ├── .cm
│ │ ├── meta.json
│ │ └── info.json
│ ├── graph_lines_test.bat
│ ├── graph_lines_test_with_error.bat
│ ├── graph_lines_test.json
│ └── graph_lines_test_with_error.json
├── graph-2d-heat-map
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ ├── plot_heat_map_from_file.bat
│ ├── plot_heat_map_from_file2.bat
│ ├── table2.json
│ ├── plot_heat_map_from_file2.json
│ ├── plot_heat_map_from_file.json
│ └── table.json
├── graph-3d-scatter
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ ├── plot_3d_scatter_from_file.bat
│ ├── plot_3d_scatter_from_file.json
│ └── table.json
├── graph-3d-trisurf
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ ├── plot_3d_trisurf_from_file.bat
│ ├── plot_3d_trisurf_from_file.json
│ └── table.json
├── graph-density
│ ├── .cm
│ │ ├── meta.json
│ │ └── info.json
│ ├── graph_density_test.bat
│ ├── graph_density_test1.bat
│ ├── graph_density_test1.json
│ └── graph_density_test.json
├── graph-scatter
│ ├── .cm
│ │ ├── meta.json
│ │ └── info.json
│ ├── graph_scatter_test.bat
│ ├── graph_scatter_test_with_error.bat
│ ├── graph_scatter_test_save_to_html.bat
│ ├── graph_scatter_test.json
│ ├── graph_scatter_test_with_error.json
│ └── graph_scatter_test_save_to_html.json
├── ml-decision-tree
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ ├── model-sklearn-dtc-build.bat
│ ├── model-sklearn-dtc-use.bat
│ ├── model-sklearn-dtc-validate.bat
│ ├── model-sklearn-dtc-build-and-record.bat
│ ├── model-sklearn-dtc-use-from-recorded.bat
│ ├── model-sklearn-dtc-validate-from-recorded.bat
│ ├── model-input-use.json
│ └── model-input.json
├── pareto-frontier
│ ├── .cm
│ │ ├── meta.json
│ │ └── info.json
│ ├── filter_frontier.bat
│ ├── filter_frontier_1d.bat
│ ├── filter_frontier_1da.bat
│ ├── frontier_1da.json
│ ├── frontier_1d.json
│ └── frontier.json
├── stat-analysis
│ ├── .cm
│ │ ├── meta.json
│ │ └── info.json
│ ├── stat_analysis.bat
│ ├── stat_analysis1.bat
│ ├── stat_analysis1.json
│ └── stat_analysis.json
├── .cm
│ ├── alias-a-graph-bar
│ ├── alias-u-5d7dd43d946af985
│ ├── alias-a-graph-density
│ ├── alias-a-graph-histo
│ ├── alias-a-graph-lines
│ ├── alias-a-graph-scatter
│ ├── alias-a-pareto-frontier
│ ├── alias-a-stat-analysis
│ ├── alias-u-0a7d4214abfd2d47
│ ├── alias-u-104db46ef141a4aa
│ ├── alias-u-146ff9f2ca90999f
│ ├── alias-u-456dac0ef9c49c8a
│ ├── alias-u-aae80b44520b2bad
│ ├── alias-u-fa939fe384c3d4d8
│ ├── alias-a-ask-advice-via-ck-ai
│ ├── alias-a-graph-2d-heat-map
│ ├── alias-a-graph-3d-scatter
│ ├── alias-a-graph-3d-trisurf
│ ├── alias-a-ml-decision-tree
│ ├── alias-a-stat-analysis-remote
│ ├── alias-u-42c48acbf3d40637
│ ├── alias-u-4ab91cc4d04a5890
│ ├── alias-u-6a4b85e2b255d1da
│ ├── alias-u-6b8d9a63ce442da7
│ ├── alias-u-e8f4a059a7dc9618
│ ├── alias-u-fe6b4802b3e9c8d9
│ ├── alias-a-ml-decision-tree-multi
│ ├── alias-a-ml-dnn-classifier-multi
│ ├── alias-u-442c9c4058e3c5c1
│ └── alias-u-f7fb8d17f21e4d2f
├── ask-advice-via-ck-ai
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ ├── use_dnn_to_classify_image.bat
│ ├── use_dnn_to_classify_image_local.bat
│ ├── use_ml_to_predict_compiler_flags.bat
│ ├── use_ml_to_predict_compiler_flags_local.bat
│ ├── use_dnn_to_classify_image.jpg
│ ├── use_dnn_to_classify_image.py
│ ├── use_ml_to_predict_compiler_flags_local.json
│ ├── use_ml_to_predict_compiler_flags.json
│ └── use_ml_to_predict_compiler_flags.py
├── ml-decision-tree-multi
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ ├── model-sklearn-dtc-build.bat
│ ├── model-sklearn-dtc-use.bat
│ ├── model-sklearn-dtc-validate.bat
│ ├── model-sklearn-dtc-build-and-record.bat
│ ├── model-sklearn-dtc-use-from-recorded.bat
│ ├── model-sklearn-dtc-validate-from-recorded.bat
│ ├── model-input-use.json
│ └── model-input.json
├── stat-analysis-remote
│ ├── .cm
│ │ ├── meta.json
│ │ └── info.json
│ ├── stat_analysis_remote.bat
│ └── stat_analysis_remote.json
├── ml-dnn-classifier-multi
│ ├── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
│ ├── model-tf-dnn-classifier-predict.bat
│ ├── model-tf-dnn-classifier-train.bat
│ ├── model-tf-dnn-classifier-validate.bat
│ ├── model-tf-dnn-classifier-predict-from-recorded.bat
│ ├── model-tf-dnn-classifier-train-and-record.bat
│ ├── model-tf-dnn-classifier-validate-from-recorded.bat
│ ├── input-use-tf-dnn-classifier.json
│ └── input-train-tf-dnn-classifier.json
└── speedup
│ ├── test.bat
│ └── input.json
├── graph
├── universal
│ └── .cm
│ │ ├── desc.json
│ │ ├── info.json
│ │ └── meta.json
└── .cm
│ ├── alias-a-universal
│ └── alias-u-56bb8bc14445bda3
├── wfe
├── ck-ai-basic
│ ├── .cm
│ │ ├── desc.json
│ │ ├── info.json
│ │ └── meta.json
│ ├── images
│ │ ├── ck-logo.png
│ │ ├── ck-logo1.png
│ │ ├── ck-logo-small.png
│ │ ├── ctuning-logo.png
│ │ ├── ctuning-logo1.png
│ │ ├── ctuning-logo2.png
│ │ └── logo_sunrise5.png
│ ├── report.html
│ └── template.html
└── .cm
│ ├── alias-a-ck-ai-basic
│ └── alias-u-9cf518911bc4feca
├── model.species
├── alexnet
│ └── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
├── resnet18
│ └── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
├── resnet50
│ └── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
├── vgg16
│ └── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
├── inception.v3
│ └── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
├── mobilenets
│ └── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
├── mobilenetsv2
│ └── .cm
│ │ ├── desc.json
│ │ ├── meta.json
│ │ └── info.json
└── .cm
│ ├── alias-a-vgg16
│ ├── alias-u-a3fcac86d42bdbc4
│ ├── alias-a-alexnet
│ ├── alias-a-mobilenets
│ ├── alias-a-resnet18
│ ├── alias-a-resnet50
│ ├── alias-u-07d4e7aa3750ddc6
│ ├── alias-u-c0ad9b9800422f98
│ ├── alias-u-d41bbf1e489ab5e0
│ ├── alias-u-d777f6335496db61
│ ├── alias-a-inception.v3
│ ├── alias-a-mobilenetsv2
│ ├── alias-u-1b339ddb13408f8f
│ └── alias-u-1bf95c329964b48b
├── COPYRIGHT.txt
├── AUTHORS
├── .ckr.json
├── CONTRIBUTIONS
├── LICENSE.txt
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 |
--------------------------------------------------------------------------------
/module/graph/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/paper/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/.cm/alias-a-demo:
--------------------------------------------------------------------------------
1 | 0e1dbf34af69c41f
2 |
--------------------------------------------------------------------------------
/.cm/alias-a-graph:
--------------------------------------------------------------------------------
1 | 2d41f89bcf32d4d4
2 |
--------------------------------------------------------------------------------
/.cm/alias-a-wfe:
--------------------------------------------------------------------------------
1 | 1e4e644996b7f2a0
2 |
--------------------------------------------------------------------------------
/.cm/alias-u-0e1dbf34af69c41f:
--------------------------------------------------------------------------------
1 | demo
2 |
--------------------------------------------------------------------------------
/.cm/alias-u-1e4e644996b7f2a0:
--------------------------------------------------------------------------------
1 | wfe
2 |
--------------------------------------------------------------------------------
/.cm/alias-u-2d41f89bcf32d4d4:
--------------------------------------------------------------------------------
1 | graph
2 |
--------------------------------------------------------------------------------
/demo/graph-bar/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/graph-histo/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/graph-lines/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/graph/universal/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/advice/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/experiment/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/jnotebook/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/model.tf/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/report/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/.cm/alias-a-module:
--------------------------------------------------------------------------------
1 | 032630d041b4fd8a
2 |
--------------------------------------------------------------------------------
/.cm/alias-u-032630d041b4fd8a:
--------------------------------------------------------------------------------
1 | module
2 |
--------------------------------------------------------------------------------
/demo/graph-2d-heat-map/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/graph-2d-heat-map/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/graph-3d-scatter/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/graph-3d-scatter/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/graph-3d-trisurf/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/graph-3d-trisurf/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/graph-density/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/graph-scatter/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/pareto-frontier/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/stat-analysis/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/alexnet/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/alexnet/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/resnet18/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/resnet18/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/resnet50/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/resnet50/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/vgg16/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/vgg16/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/experiment.raw/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/experiment.view/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/math.conditions/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/math.variation/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/model.species/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/.cm/alias-a-model.species:
--------------------------------------------------------------------------------
1 | 38e7de41acb41d3b
2 |
--------------------------------------------------------------------------------
/.cm/alias-u-38e7de41acb41d3b:
--------------------------------------------------------------------------------
1 | model.species
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-graph-bar:
--------------------------------------------------------------------------------
1 | 5d7dd43d946af985
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-5d7dd43d946af985:
--------------------------------------------------------------------------------
1 | graph-bar
2 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/stat-analysis-remote/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/graph/.cm/alias-a-universal:
--------------------------------------------------------------------------------
1 | 56bb8bc14445bda3
2 |
--------------------------------------------------------------------------------
/graph/.cm/alias-u-56bb8bc14445bda3:
--------------------------------------------------------------------------------
1 | universal
2 |
--------------------------------------------------------------------------------
/model.species/inception.v3/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/inception.v3/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/mobilenets/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/mobilenets/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/mobilenetsv2/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/mobilenetsv2/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-advice:
--------------------------------------------------------------------------------
1 | 2a2ede3f72b29b6b
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-graph:
--------------------------------------------------------------------------------
1 | 2d41f89bcf32d4d4
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-model:
--------------------------------------------------------------------------------
1 | f92b25ca2f1a98ae
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-model.r:
--------------------------------------------------------------------------------
1 | 3610126974aec8b0
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-model.tf:
--------------------------------------------------------------------------------
1 | dd506614c11964a6
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-paper:
--------------------------------------------------------------------------------
1 | 208314998a44ddab
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-report:
--------------------------------------------------------------------------------
1 | 1e348bd6ab43ce8a
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-table:
--------------------------------------------------------------------------------
1 | 2884ee69eaefe71e
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-1e348bd6ab43ce8a:
--------------------------------------------------------------------------------
1 | report
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-208314998a44ddab:
--------------------------------------------------------------------------------
1 | paper
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-2884ee69eaefe71e:
--------------------------------------------------------------------------------
1 | table
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-2a2ede3f72b29b6b:
--------------------------------------------------------------------------------
1 | advice
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-2d41f89bcf32d4d4:
--------------------------------------------------------------------------------
1 | graph
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-3610126974aec8b0:
--------------------------------------------------------------------------------
1 | model.r
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-dd506614c11964a6:
--------------------------------------------------------------------------------
1 | model.tf
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-f92b25ca2f1a98ae:
--------------------------------------------------------------------------------
1 | model
2 |
--------------------------------------------------------------------------------
/wfe/.cm/alias-a-ck-ai-basic:
--------------------------------------------------------------------------------
1 | 9cf518911bc4feca
2 |
--------------------------------------------------------------------------------
/wfe/.cm/alias-u-9cf518911bc4feca:
--------------------------------------------------------------------------------
1 | ck-ai-basic
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-graph-density:
--------------------------------------------------------------------------------
1 | 0a7d4214abfd2d47
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-graph-histo:
--------------------------------------------------------------------------------
1 | 456dac0ef9c49c8a
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-graph-lines:
--------------------------------------------------------------------------------
1 | 146ff9f2ca90999f
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-graph-scatter:
--------------------------------------------------------------------------------
1 | aae80b44520b2bad
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-pareto-frontier:
--------------------------------------------------------------------------------
1 | 104db46ef141a4aa
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-stat-analysis:
--------------------------------------------------------------------------------
1 | fa939fe384c3d4d8
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-0a7d4214abfd2d47:
--------------------------------------------------------------------------------
1 | graph-density
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-104db46ef141a4aa:
--------------------------------------------------------------------------------
1 | pareto-frontier
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-146ff9f2ca90999f:
--------------------------------------------------------------------------------
1 | graph-lines
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-456dac0ef9c49c8a:
--------------------------------------------------------------------------------
1 | graph-histo
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-aae80b44520b2bad:
--------------------------------------------------------------------------------
1 | graph-scatter
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-fa939fe384c3d4d8:
--------------------------------------------------------------------------------
1 | stat-analysis
2 |
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-a-vgg16:
--------------------------------------------------------------------------------
1 | a3fcac86d42bdbc4
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-u-a3fcac86d42bdbc4:
--------------------------------------------------------------------------------
1 | vgg16
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-experiment:
--------------------------------------------------------------------------------
1 | bc0409fb61f0aa82
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-graph.dot:
--------------------------------------------------------------------------------
1 | 94a051a40018fcd3
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-jnotebook:
--------------------------------------------------------------------------------
1 | 145039462db4f4d2
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-math.frontier:
--------------------------------------------------------------------------------
1 | 99d08d331cdc5478
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-model.species:
--------------------------------------------------------------------------------
1 | 38e7de41acb41d3b
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-145039462db4f4d2:
--------------------------------------------------------------------------------
1 | jnotebook
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-38e7de41acb41d3b:
--------------------------------------------------------------------------------
1 | model.species
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-94a051a40018fcd3:
--------------------------------------------------------------------------------
1 | graph.dot
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-99d08d331cdc5478:
--------------------------------------------------------------------------------
1 | math.frontier
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-bc0409fb61f0aa82:
--------------------------------------------------------------------------------
1 | experiment
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-ask-advice-via-ck-ai:
--------------------------------------------------------------------------------
1 | 42c48acbf3d40637
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-graph-2d-heat-map:
--------------------------------------------------------------------------------
1 | fe6b4802b3e9c8d9
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-graph-3d-scatter:
--------------------------------------------------------------------------------
1 | e8f4a059a7dc9618
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-graph-3d-trisurf:
--------------------------------------------------------------------------------
1 | 4ab91cc4d04a5890
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-ml-decision-tree:
--------------------------------------------------------------------------------
1 | 6a4b85e2b255d1da
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-stat-analysis-remote:
--------------------------------------------------------------------------------
1 | 6b8d9a63ce442da7
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-42c48acbf3d40637:
--------------------------------------------------------------------------------
1 | ask-advice-via-ck-ai
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-4ab91cc4d04a5890:
--------------------------------------------------------------------------------
1 | graph-3d-trisurf
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-6a4b85e2b255d1da:
--------------------------------------------------------------------------------
1 | ml-decision-tree
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-6b8d9a63ce442da7:
--------------------------------------------------------------------------------
1 | stat-analysis-remote
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-e8f4a059a7dc9618:
--------------------------------------------------------------------------------
1 | graph-3d-scatter
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-fe6b4802b3e9c8d9:
--------------------------------------------------------------------------------
1 | graph-2d-heat-map
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-a-alexnet:
--------------------------------------------------------------------------------
1 | c0ad9b9800422f98
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-a-mobilenets:
--------------------------------------------------------------------------------
1 | 07d4e7aa3750ddc6
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-a-resnet18:
--------------------------------------------------------------------------------
1 | d41bbf1e489ab5e0
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-a-resnet50:
--------------------------------------------------------------------------------
1 | d777f6335496db61
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-u-07d4e7aa3750ddc6:
--------------------------------------------------------------------------------
1 | mobilenets
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-u-c0ad9b9800422f98:
--------------------------------------------------------------------------------
1 | alexnet
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-u-d41bbf1e489ab5e0:
--------------------------------------------------------------------------------
1 | resnet18
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-u-d777f6335496db61:
--------------------------------------------------------------------------------
1 | resnet50
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-experiment.raw:
--------------------------------------------------------------------------------
1 | 4894dc942079d0a4
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-experiment.view:
--------------------------------------------------------------------------------
1 | e7c9e42ba8edace0
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-math.conditions:
--------------------------------------------------------------------------------
1 | d5ac649c14325bca
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-math.variation:
--------------------------------------------------------------------------------
1 | d3b13388e6152da7
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-model.sklearn:
--------------------------------------------------------------------------------
1 | c044a31a47d440c1
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-4894dc942079d0a4:
--------------------------------------------------------------------------------
1 | experiment.raw
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-c044a31a47d440c1:
--------------------------------------------------------------------------------
1 | model.sklearn
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-d3b13388e6152da7:
--------------------------------------------------------------------------------
1 | math.variation
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-d5ac649c14325bca:
--------------------------------------------------------------------------------
1 | math.conditions
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-e7c9e42ba8edace0:
--------------------------------------------------------------------------------
1 | experiment.view
2 |
--------------------------------------------------------------------------------
/module/model.image.classification/.cm/desc.json:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/COPYRIGHT.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2014-2021 cTuning foundation
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-ml-decision-tree-multi:
--------------------------------------------------------------------------------
1 | 442c9c4058e3c5c1
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-a-ml-dnn-classifier-multi:
--------------------------------------------------------------------------------
1 | f7fb8d17f21e4d2f
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-442c9c4058e3c5c1:
--------------------------------------------------------------------------------
1 | ml-decision-tree-multi
2 |
--------------------------------------------------------------------------------
/demo/.cm/alias-u-f7fb8d17f21e4d2f:
--------------------------------------------------------------------------------
1 | ml-dnn-classifier-multi
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-a-inception.v3:
--------------------------------------------------------------------------------
1 | 1b339ddb13408f8f
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-a-mobilenetsv2:
--------------------------------------------------------------------------------
1 | 1bf95c329964b48b
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-u-1b339ddb13408f8f:
--------------------------------------------------------------------------------
1 | inception.v3
2 |
--------------------------------------------------------------------------------
/model.species/.cm/alias-u-1bf95c329964b48b:
--------------------------------------------------------------------------------
1 | mobilenetsv2
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-a-model.image.classification:
--------------------------------------------------------------------------------
1 | 42b9a1221eb50259
2 |
--------------------------------------------------------------------------------
/module/.cm/alias-u-42b9a1221eb50259:
--------------------------------------------------------------------------------
1 | model.image.classification
2 |
--------------------------------------------------------------------------------
/module/graph/templates/_info.txt:
--------------------------------------------------------------------------------
1 | http://bl.ocks.org/mbostock/3885304
2 |
--------------------------------------------------------------------------------
/demo/graph-bar/graph_bars_test.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_bars_test.json
2 |
--------------------------------------------------------------------------------
/demo/graph-histo/graph_histo_test.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_histo_test.json
2 |
--------------------------------------------------------------------------------
/demo/graph-lines/graph_lines_test.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_lines_test.json
2 |
--------------------------------------------------------------------------------
/demo/speedup/test.bat:
--------------------------------------------------------------------------------
1 | ck speedup math.variation @input.json --out=json
2 |
--------------------------------------------------------------------------------
/demo/graph-density/graph_density_test.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_density_test.json
2 |
--------------------------------------------------------------------------------
/demo/graph-density/graph_density_test1.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_density_test1.json
2 |
--------------------------------------------------------------------------------
/demo/graph-scatter/graph_scatter_test.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_scatter_test.json
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/model-sklearn-dtc-build.bat:
--------------------------------------------------------------------------------
1 | ck build model @model-input.json
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/model-sklearn-dtc-use.bat:
--------------------------------------------------------------------------------
1 | ck use model @model-input-use.json
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/model-sklearn-dtc-build.bat:
--------------------------------------------------------------------------------
1 | ck build model @model-input.json
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/model-sklearn-dtc-use.bat:
--------------------------------------------------------------------------------
1 | ck use model @model-input-use.json
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/model-sklearn-dtc-validate.bat:
--------------------------------------------------------------------------------
1 | ck validate model @model-input.json
2 |
--------------------------------------------------------------------------------
/demo/graph-bar/graph_bars_test_with_error.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_bars_test_with_error.json
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/model-sklearn-dtc-validate.bat:
--------------------------------------------------------------------------------
1 | ck validate model @model-input.json
2 |
--------------------------------------------------------------------------------
/demo/graph-2d-heat-map/plot_heat_map_from_file.bat:
--------------------------------------------------------------------------------
1 | ck plot graph: @plot_heat_map_from_file.json
2 |
--------------------------------------------------------------------------------
/demo/graph-2d-heat-map/plot_heat_map_from_file2.bat:
--------------------------------------------------------------------------------
1 | ck plot graph: @plot_heat_map_from_file2.json
2 |
--------------------------------------------------------------------------------
/demo/graph-3d-scatter/plot_3d_scatter_from_file.bat:
--------------------------------------------------------------------------------
1 | ck plot graph: @plot_3d_scatter_from_file.json
2 |
--------------------------------------------------------------------------------
/demo/graph-3d-trisurf/plot_3d_trisurf_from_file.bat:
--------------------------------------------------------------------------------
1 | ck plot graph: @plot_3d_trisurf_from_file.json
2 |
--------------------------------------------------------------------------------
/demo/graph-bar/graph_bars_test_save_to_html.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_bars_test_save_to_html.json
2 |
--------------------------------------------------------------------------------
/demo/graph-lines/graph_lines_test_with_error.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_lines_test_with_error.json
2 |
--------------------------------------------------------------------------------
/demo/graph-scatter/graph_scatter_test_with_error.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_scatter_test_with_error.json
2 |
--------------------------------------------------------------------------------
/demo/graph-scatter/graph_scatter_test_save_to_html.bat:
--------------------------------------------------------------------------------
1 | ck plot graph @graph_scatter_test_save_to_html.json
2 |
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/model-tf-dnn-classifier-predict.bat:
--------------------------------------------------------------------------------
1 | ck use model @input-use-tf-dnn-classifier.json
2 |
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/model-tf-dnn-classifier-train.bat:
--------------------------------------------------------------------------------
1 | ck build model @input-train-tf-dnn-classifier.json
2 |
--------------------------------------------------------------------------------
/demo/speedup/input.json:
--------------------------------------------------------------------------------
1 | {
2 | "samples1":[1.3,1.32,1.31,1.31],
3 | "samples2":[1.03, 1.08, 1.04, 1.041]
4 | }
5 |
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/model-tf-dnn-classifier-validate.bat:
--------------------------------------------------------------------------------
1 | ck validate model @input-train-tf-dnn-classifier.json
2 |
--------------------------------------------------------------------------------
/demo/pareto-frontier/filter_frontier.bat:
--------------------------------------------------------------------------------
1 | ck filter math.frontier @frontier.json out=json_file out_file=frontier_out.json
2 |
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/images/ck-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ctuning/ck-analytics/HEAD/wfe/ck-ai-basic/images/ck-logo.png
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/images/ck-logo1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ctuning/ck-analytics/HEAD/wfe/ck-ai-basic/images/ck-logo1.png
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/use_dnn_to_classify_image.bat:
--------------------------------------------------------------------------------
1 | ck ask advice to=classify_image --image=use_dnn_to_classify_image.jpg
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/model-sklearn-dtc-build-and-record.bat:
--------------------------------------------------------------------------------
1 | ck build model @model-input.json --model_data_uoa=demo-ml-decision-tree
2 |
--------------------------------------------------------------------------------
/demo/pareto-frontier/filter_frontier_1d.bat:
--------------------------------------------------------------------------------
1 | ck filter math.frontier @frontier_1d.json out=json_file out_file=frontier_1d_out.json
2 |
--------------------------------------------------------------------------------
/demo/pareto-frontier/filter_frontier_1da.bat:
--------------------------------------------------------------------------------
1 | ck filter math.frontier @frontier_1da.json out=json_file out_file=frontier_1da_out.json
2 |
--------------------------------------------------------------------------------
/demo/stat-analysis/stat_analysis.bat:
--------------------------------------------------------------------------------
1 | ck stat_analysis experiment @stat_analysis.json out=json_file out_file=stat_analysis_out.json
2 |
--------------------------------------------------------------------------------
/demo/stat-analysis/stat_analysis1.bat:
--------------------------------------------------------------------------------
1 | ck stat_analysis experiment @stat_analysis1.json out=json_file out_file=stat_analysis_out1.json
2 |
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/images/ck-logo-small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ctuning/ck-analytics/HEAD/wfe/ck-ai-basic/images/ck-logo-small.png
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/images/ctuning-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ctuning/ck-analytics/HEAD/wfe/ck-ai-basic/images/ctuning-logo.png
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/images/ctuning-logo1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ctuning/ck-analytics/HEAD/wfe/ck-ai-basic/images/ctuning-logo1.png
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/images/ctuning-logo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ctuning/ck-analytics/HEAD/wfe/ck-ai-basic/images/ctuning-logo2.png
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/images/logo_sunrise5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ctuning/ck-analytics/HEAD/wfe/ck-ai-basic/images/logo_sunrise5.png
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/model-sklearn-dtc-build-and-record.bat:
--------------------------------------------------------------------------------
1 | ck build model @model-input.json --model_data_uoa=demo-ml-decision-tree
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/model-sklearn-dtc-use-from-recorded.bat:
--------------------------------------------------------------------------------
1 | ck use model @model-input-use.json --model_data_uoa=demo-ml-decision-tree
2 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/use_dnn_to_classify_image_local.bat:
--------------------------------------------------------------------------------
1 | ck ask advice to=classify_image --image=use_dnn_to_classify_image.jpg --local
2 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/use_ml_to_predict_compiler_flags.bat:
--------------------------------------------------------------------------------
1 | ck ask advice to=predict_compiler_flags @use_ml_to_predict_compiler_flags.json
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/model-sklearn-dtc-use-from-recorded.bat:
--------------------------------------------------------------------------------
1 | ck use model @model-input-use.json --model_data_uoa=demo-ml-decision-tree
2 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/use_ml_to_predict_compiler_flags_local.bat:
--------------------------------------------------------------------------------
1 | ck ask advice to=predict_compiler_flags @use_ml_to_predict_compiler_flags_local.json
2 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/use_dnn_to_classify_image.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ctuning/ck-analytics/HEAD/demo/ask-advice-via-ck-ai/use_dnn_to_classify_image.jpg
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/model-tf-dnn-classifier-predict-from-recorded.bat:
--------------------------------------------------------------------------------
1 | ck use model @input-use-tf-dnn-classifier.json --model_data_uoa=demo-dnn-classifier
2 |
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/model-tf-dnn-classifier-train-and-record.bat:
--------------------------------------------------------------------------------
1 | ck build model @input-train-tf-dnn-classifier.json --model_data_uoa=demo-dnn-classifier
2 |
--------------------------------------------------------------------------------
/demo/stat-analysis-remote/stat_analysis_remote.bat:
--------------------------------------------------------------------------------
1 | ck stat_analysis remote-ck:experiment: @stat_analysis_remote.json out=json_file out_file=stat_analysis_remote_out.json
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/model-sklearn-dtc-validate-from-recorded.bat:
--------------------------------------------------------------------------------
1 | ck validate model @model-input.json --model_data_uoa=demo-ml-decision-tree > model-sklearn-dtc-validate.txt
2 |
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/model-tf-dnn-classifier-validate-from-recorded.bat:
--------------------------------------------------------------------------------
1 | ck validate model @input-train-tf-dnn-classifier.json --model_data_uoa=demo-dnn-classifier
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/model-sklearn-dtc-validate-from-recorded.bat:
--------------------------------------------------------------------------------
1 | ck validate model @model-input.json --model_data_uoa=demo-ml-decision-tree > model-sklearn-dtc-validate.txt
2 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/model-input-use.json:
--------------------------------------------------------------------------------
1 | {
2 | "features": [65],
3 |
4 | "model_module_uoa":"model.sklearn",
5 | "model_name":"dtc",
6 | "model_file":"model-sklearn-dtc"
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/model-input-use.json:
--------------------------------------------------------------------------------
1 | {
2 | "features": [10, 1],
3 |
4 | "model_module_uoa":"model.sklearn",
5 | "model_name":"dtc",
6 | "model_file":"model-sklearn-dtc"
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/AUTHORS:
--------------------------------------------------------------------------------
1 | =======================================================================
2 | N: Grigori Fursin
3 | E: Grigori.Fursin@cTuning.org
4 | H: http://fursin.net
5 | O: cTuning foundation
6 | C: original concept and design
7 | W: since Nov.1, 2014
8 |
--------------------------------------------------------------------------------
/demo/stat-analysis/stat_analysis1.json:
--------------------------------------------------------------------------------
1 | {
2 | "dict":{},
3 |
4 | "dict1": {
5 | "##time": [
6 | 4.61518,
7 | 4.634339,
8 | 4.616645,
9 | 4.605806
10 | ]
11 | },
12 |
13 |
14 | "cov_factor":0.25
15 | }
16 |
--------------------------------------------------------------------------------
/demo/pareto-frontier/frontier_1da.json:
--------------------------------------------------------------------------------
1 | {
2 | "points": {
3 | "1737e16da44696ad": {
4 | "##characteristics#compile#binary_size#min": 1.2
5 | },
6 | "475435a893244532": {
7 | "##characteristics#compile#binary_size#min": 1.1
8 | }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/input-use-tf-dnn-classifier.json:
--------------------------------------------------------------------------------
1 | {
2 | "features": [65,65],
3 |
4 | "model_module_uoa":"model.tf",
5 | "model_name":"dnn_classifier",
6 | "model_file":"model-tf-dnn-classifier",
7 |
8 | "model_params":{
9 | "quiet":"yes"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/demo/stat-analysis/stat_analysis.json:
--------------------------------------------------------------------------------
1 | {
2 | "dict":{},
3 |
4 | "dict1": {
5 | "##characteristics#compile#binary_size#min": [171941,171941,171277,185101,169381,171277],
6 | "##characteristics#run#execution_time#min": [0.017235,0.012235,0.018795,0.05366,0.016395,0.01786]
7 | }
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/use_dnn_to_classify_image.py:
--------------------------------------------------------------------------------
1 | import ck.kernel as ck
2 |
3 | image='use_dnn_to_classify_image.jpg'
4 |
5 | r=ck.access({'action':'ask',
6 | 'module_uoa':'advice',
7 | 'to':'classify_image',
8 | 'image':image})
9 | if r['return']>0: ck.err(r)
10 |
--------------------------------------------------------------------------------
/module/graph/templates/d3_2d_scatter.style:
--------------------------------------------------------------------------------
1 | .axis_scatter path,
2 | .axis_scatter line {
3 | fill: none;
4 | stroke: #000;
5 | shape-rendering: crispEdges;
6 | }
7 |
8 | .dot {
9 | stroke: #000;
10 | }
11 |
12 | .tooltip_scatter {
13 | position: absolute;
14 | pointer-events: none;
15 | }
16 |
--------------------------------------------------------------------------------
/demo/stat-analysis-remote/stat_analysis_remote.json:
--------------------------------------------------------------------------------
1 | {
2 | "dict":{},
3 |
4 | "dict2":[],
5 |
6 | "dict1": {
7 | "##characteristics#compile#binary_size#min": [171941,171941,171277,185101,169381,171277],
8 | "##characteristics#run#execution_time#min": [0.017235,0.012235,0.018795,0.05366,0.016395,0.01786]
9 | }
10 |
11 | }
12 |
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/report.html:
--------------------------------------------------------------------------------
1 |
If you notice copyrighted, inappropriate or illegal content that should not be here, please report us as soon as possible and we will try to remove it within 48hours!
2 |
--------------------------------------------------------------------------------
/module/model.species/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {},
3 | "copyright": "See CK COPYRIGHT.txt for copyright details",
4 | "desc": "model species",
5 | "developer": "Grigori Fursin",
6 | "developer_email": "Grigori.Fursin@cTuning.org",
7 | "developer_webpage": "http://fursin.net",
8 | "license": "See CK LICENSE.txt for licensing details"
9 | }
10 |
--------------------------------------------------------------------------------
/module/experiment.raw/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {},
3 | "copyright": "See CK COPYRIGHT.txt for copyright details",
4 | "desc": "raw experiment container",
5 | "developer": "cTuning foundation",
6 | "developer_email": "admin@cTuning.org",
7 | "developer_webpage": "http://cTuning.org",
8 | "license": "See CK LICENSE.txt for licensing details"
9 | }
10 |
--------------------------------------------------------------------------------
/module/experiment.view/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {},
3 | "copyright": "See CK COPYRIGHT.txt for copyright details",
4 | "desc": "customizable views for experiments",
5 | "developer": "Grigori Fursin",
6 | "developer_email": "Grigori.Fursin@cTuning.org",
7 | "developer_webpage": "http://fursin.net",
8 | "license": "See CK LICENSE.txt for licensing details"
9 | }
10 |
--------------------------------------------------------------------------------
/module/graph/templates/d3_2d_bars.style:
--------------------------------------------------------------------------------
1 | .bar:hover {
2 | fill: brown;
3 | }
4 |
5 | .axis_bar {
6 | font: 10px sans-serif;
7 | }
8 |
9 | .axis_bar path,
10 | .axis_bar line {
11 | fill: none;
12 | stroke: #000;
13 | shape-rendering: crispEdges;
14 | }
15 |
16 | .x.axis_bar path {
17 | display: none;
18 | }
19 |
20 | .tooltip_bar {
21 | position: absolute;
22 | pointer-events: none;
23 | }
24 |
--------------------------------------------------------------------------------
/module/math.conditions/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "check": {
4 | "desc": "check conditions"
5 | }
6 | },
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "desc": "check conditions",
9 | "developer": "Grigori Fursin",
10 | "developer_email": "Grigori.Fursin@cTuning.org",
11 | "developer_webpage": "http://fursin.net",
12 | "license": "See CK LICENSE.txt for licensing details"
13 | }
14 |
--------------------------------------------------------------------------------
/demo/pareto-frontier/frontier_1d.json:
--------------------------------------------------------------------------------
1 | {
2 | "points": {
3 | "1737e16da44696ad": {
4 | "##characteristics#compile#binary_size#min": 1.2
5 | },
6 | "475435a893244532": {
7 | "##characteristics#compile#binary_size#min": 1.1
8 | },
9 | "1b4886ae4b04cbc3": {
10 | "##characteristics#compile#binary_size#min": 1.5
11 | },
12 | "d78424dbab0ab4c2": {
13 | "##characteristics#compile#binary_size#min": 1.9
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/demo/graph-2d-heat-map/table2.json:
--------------------------------------------------------------------------------
1 | {
2 | "0": [
3 | [
4 | 0,
5 | 0,
6 | 0.905857
7 | ],
8 | [
9 | 0,
10 | 1,
11 | 0.514143
12 | ],
13 | [
14 | 1,
15 | 0,
16 | 0.909275
17 | ],
18 | [
19 | 1,
20 | 1,
21 | 0.975732
22 | ],
23 | [
24 | 2,
25 | 0,
26 | 0.875732
27 | ],
28 | [
29 | 2,
30 | 1,
31 | 0.875732
32 | ]
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/module/jnotebook/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "clean": {
4 | "desc": "remote output from Jupyter Notebook"
5 | },
6 | "run": {
7 | "desc": "run Jupyter Notebook from a CK entry"
8 | }
9 | },
10 | "copyright": "See CK COPYRIGHT.txt for copyright details",
11 | "desc": "Jupyter Notebook",
12 | "developer": "Grigori Fursin",
13 | "developer_email": "Grigori.Fursin@cTuning.org",
14 | "developer_webpage": "http://fursin.net",
15 | "license": "See CK LICENSE.txt for licensing details"
16 | }
17 |
--------------------------------------------------------------------------------
/demo/graph-bar/graph_bars_test.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[[1, 10], [2,20], [3,18]], "1":[[1,15],[2,17],[3,11]], "2":[[1,8], [2,13],[3,14]]},
3 |
4 | "add_x_loop":"yes",
5 |
6 | "ignore_point_if_none":"yes",
7 |
8 | "plot_type":"mpl_2d_bars",
9 |
10 | "display_y_error_bar":"no",
11 |
12 | "title":"Powered by Collective Knowledge",
13 |
14 | "axis_x_desc":"No",
15 | "axis_y_desc":"Value",
16 |
17 | "plot_grid":"yes",
18 |
19 | "mpl_image_size_x":"12",
20 | "mpl_image_size_y":"6",
21 | "mpl_image_dpi":"100"
22 | }
23 |
--------------------------------------------------------------------------------
/demo/graph-density/graph_density_test1.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[[4.61518],[4.634339],[4.616645],[4.605806]]},
3 |
4 | "ignore_point_if_none":"yes",
5 |
6 | "plot_type":"mpl_1d_density",
7 |
8 | "display_y_error_bar":"no",
9 |
10 | "title":"Powered by Collective Knowledge",
11 |
12 | "axis_x_desc":"Execution time",
13 | "axis_y_desc":"Density",
14 |
15 | "bins":100,
16 | "cov_factor":0.01,
17 |
18 | "plot_grid":"yes",
19 |
20 | "mpl_image_size_x":"12",
21 | "mpl_image_size_y":"6",
22 | "mpl_image_dpi":"100"
23 | }
24 |
--------------------------------------------------------------------------------
/module/report/.cm/updates.json:
--------------------------------------------------------------------------------
1 | {
2 | "control": [
3 | {
4 | "author": "Grigori Fursin",
5 | "author_email": "Grigori.Fursin@cTuning.org",
6 | "author_webpage": "http://fursin.net",
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "engine": "CK",
9 | "iso_datetime": "2017-04-08T18:02:34.261801",
10 | "license": "See CK LICENSE.txt for licensing details",
11 | "version": [
12 | "1",
13 | "8",
14 | "7",
15 | "1"
16 | ]
17 | }
18 | ]
19 | }
20 |
--------------------------------------------------------------------------------
/module/table/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "draw": {
4 | "desc": "draw experiment table (in txt or html)"
5 | },
6 | "prepare": {
7 | "desc": "prepare table (in HTML and TEX)"
8 | }
9 | },
10 | "copyright": "See CK COPYRIGHT.txt for copyright details",
11 | "desc": "preparing experimental tables (txt,html)",
12 | "developer": "Grigori Fursin",
13 | "developer_email": "Grigori.Fursin@cTuning.org",
14 | "developer_webpage": "http://fursin.net",
15 | "license": "See CK LICENSE.txt for licensing details"
16 | }
17 |
--------------------------------------------------------------------------------
/demo/graph-density/graph_density_test.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[[0.017235],[0.012235],[0.018795],[0.05366],[0.016395],[0.01786],[0.012235],[0.016395]]},
3 |
4 | "ignore_point_if_none":"yes",
5 |
6 | "plot_type":"mpl_1d_density",
7 |
8 | "display_y_error_bar":"no",
9 |
10 | "title":"Powered by Collective Knowledge",
11 |
12 | "axis_x_desc":"Execution time",
13 | "axis_y_desc":"Density",
14 |
15 | "bins":100,
16 |
17 | "plot_grid":"yes",
18 |
19 | "mpl_image_size_x":"12",
20 | "mpl_image_size_y":"6",
21 | "mpl_image_dpi":"100"
22 | }
23 |
--------------------------------------------------------------------------------
/demo/graph-histo/graph_histo_test.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[[0.017235],[0.012235],[0.018795],[0.05366],[0.016395],[0.01786],[0.012235],[0.016395]]},
3 |
4 | "ignore_point_if_none":"yes",
5 |
6 | "plot_type":"mpl_1d_histogram",
7 |
8 | "display_y_error_bar":"no",
9 |
10 | "title":"Powered by Collective Knowledge",
11 |
12 | "axis_x_desc":"Execution time",
13 | "axis_y_desc":"Density",
14 |
15 | "bins":100,
16 |
17 | "plot_grid":"yes",
18 |
19 | "mpl_image_size_x":"12",
20 | "mpl_image_size_y":"6",
21 | "mpl_image_dpi":"100"
22 | }
23 |
--------------------------------------------------------------------------------
/demo/graph-lines/graph_lines_test.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[[1, 10], [2,20], [3,18], [4,22]], "1":[[1,15],[2,17],[3,11],[4,15]], "2":[[1,8], [2,13],[3,14],[4,16]]},
3 |
4 | "add_x_loop":"yes",
5 |
6 | "ignore_point_if_none":"yes",
7 |
8 | "plot_type":"mpl_2d_lines",
9 |
10 | "display_y_error_bar":"no",
11 |
12 | "title":"Powered by Collective Knowledge",
13 |
14 | "axis_x_desc":"No",
15 | "axis_y_desc":"Value",
16 |
17 | "plot_grid":"yes",
18 |
19 | "mpl_image_size_x":"12",
20 | "mpl_image_size_y":"6",
21 | "mpl_image_dpi":"100"
22 | }
23 |
--------------------------------------------------------------------------------
/module/paper/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "preprocess": {
4 | "desc": "process article"
5 | }
6 | },
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "desc": "CK wrapper for articles",
9 | "developer": "Grigori Fursin",
10 | "developer_email": "Grigori.Fursin@cTuning.org",
11 | "developer_webpage": "http://fursin.net",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "module_deps": {
14 | },
15 | "workflow": "yes",
16 | "workflow_type": "workflow to preprocess interactive papers"
17 | }
18 |
--------------------------------------------------------------------------------
/demo/graph-bar/graph_bars_test_with_error.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[[1, 10, 1], [2,20,2], [3,18,0.5]], "1":[[1,15,2],[2,17,3],[3,11,0.8]], "2":[[1,8,0.9], [2,13,0.9],[3,14,0.9]]},
3 |
4 | "add_x_loop":"yes",
5 |
6 | "ignore_point_if_none":"yes",
7 |
8 | "plot_type":"mpl_2d_bars",
9 |
10 | "display_y_error_bar":"yes",
11 |
12 | "title":"Powered by Collective Knowledge",
13 |
14 | "axis_x_desc":"No",
15 | "axis_y_desc":"Value",
16 |
17 | "plot_grid":"yes",
18 |
19 | "mpl_image_size_x":"12",
20 | "mpl_image_size_y":"6",
21 | "mpl_image_dpi":"100"
22 | }
23 |
--------------------------------------------------------------------------------
/module/math.frontier/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "filter": {
4 | "desc": "filter experiments with multiple characteristics (performance, energy, accuracy, size, etc) to leave only points on a (Pareto) frontier"
5 | }
6 | },
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "desc": "detecting (Pareto) frontier for multi-objective optimizations",
9 | "developer": "Grigori Fursin",
10 | "developer_email": "Grigori.Fursin@cTuning.org",
11 | "developer_webpage": "http://fursin.net",
12 | "license": "See CK LICENSE.txt for licensing details"
13 | }
14 |
--------------------------------------------------------------------------------
/demo/graph-lines/graph_lines_test_with_error.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[[1, 10, 1], [2,20,2], [3,18,0.5], [4,22,1]], "1":[[1,15,2],[2,17,3],[3,11,0.8],[4,15,1.2]], "2":[[1,8,0.9], [2,13,0.9],[3,14,0.9],[4,16,0.5]]},
3 |
4 | "add_x_loop":"yes",
5 |
6 | "ignore_point_if_none":"yes",
7 |
8 | "plot_type":"mpl_2d_lines",
9 |
10 | "display_y_error_bar":"yes",
11 |
12 | "title":"Powered by Collective Knowledge",
13 |
14 | "axis_x_desc":"No",
15 | "axis_y_desc":"Value",
16 |
17 | "plot_grid":"yes",
18 |
19 | "mpl_image_size_x":"12",
20 | "mpl_image_size_y":"6",
21 | "mpl_image_dpi":"100"
22 | }
23 |
--------------------------------------------------------------------------------
/.ckr.json:
--------------------------------------------------------------------------------
1 | {
2 | "data_alias": "ck-analytics",
3 | "data_name": "CK analytics",
4 | "data_uid": "76c4424a1473c873",
5 | "data_uoa": "ck-analytics",
6 | "dict": {
7 | "desc": "Unified CK JSON API for predictive analytics, statistical analysis, graphs, experiments and interactive reports (see the real use case ).",
8 | "repo_deps": [
9 | {
10 | "repo_uoa": "ck-web"
11 | },
12 | {
13 | "repo_uoa": "ck-env"
14 | }
15 | ],
16 | "shared": "git",
17 | "url": "https://github.com/ctuning/ck-analytics"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/demo/graph-scatter/graph_scatter_test.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[[171941, 0.017235], [171941,0.012235], [171277,0.018795], [185101,0.05366], [169381,0.016395],[171277,0.01786]],
3 | "1":[[171941,0.012235],[169381,0.016395]]},
4 |
5 | "add_x_loop":"no",
6 |
7 | "ignore_point_if_none":"yes",
8 |
9 | "plot_type":"mpl_2d_scatter",
10 |
11 | "display_y_error_bar":"no",
12 |
13 | "title":"Powered by Collective Knowledge",
14 |
15 | "axis_x_desc":"No",
16 | "axis_y_desc":"Value",
17 |
18 | "plot_grid":"yes",
19 |
20 | "mpl_image_size_x":"12",
21 | "mpl_image_size_y":"6",
22 | "mpl_image_dpi":"100"
23 | }
24 |
--------------------------------------------------------------------------------
/module/advice/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "2a2ede3f72b29b6b",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-09-10T08:56:33.138000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "4",
16 | "0909"
17 | ]
18 | },
19 | "data_name": "advice"
20 | }
21 |
--------------------------------------------------------------------------------
/module/graph/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "2d41f89bcf32d4d4",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2014-12-06T15:37:32.348000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "0",
15 | "9",
16 | "4113"
17 | ]
18 | },
19 | "data_name": "graph"
20 | }
21 |
--------------------------------------------------------------------------------
/module/model/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "f92b25ca2f1a98ae",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2014-12-06T15:37:32.348000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "0",
15 | "9",
16 | "4113"
17 | ]
18 | },
19 | "data_name": "model"
20 | }
21 |
--------------------------------------------------------------------------------
/module/report/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "1e348bd6ab43ce8a",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-06-13T15:32:51.018000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "2",
16 | "0605"
17 | ]
18 | },
19 | "data_name": "report"
20 | }
21 |
--------------------------------------------------------------------------------
/module/table/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "2884ee69eaefe71e",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-04-03T18:08:22.685000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "1",
16 | "0205"
17 | ]
18 | },
19 | "data_name": "table"
20 | }
21 |
--------------------------------------------------------------------------------
/module/model.r/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "3610126974aec8b0",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2014-12-06T15:37:32.348000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "0",
15 | "9",
16 | "4113"
17 | ]
18 | },
19 | "data_name": "model.r"
20 | }
21 |
--------------------------------------------------------------------------------
/demo/graph-2d-heat-map/plot_heat_map_from_file2.json:
--------------------------------------------------------------------------------
1 | {
2 | "load_table_from_file":"table2.json",
3 |
4 | "plot_type":"mpl_2d_heatmap",
5 | "display_x_error_bar":"no",
6 | "display_y_error_bar":"no",
7 |
8 | "title":"Powered by Collective Knowledge",
9 |
10 | "axis_x_desc":"Prog",
11 | "axis_y_desc":"Opt",
12 | "axis_z_desc":"Improvement",
13 |
14 | "plot_grid":"no",
15 |
16 | "mpl_image_size_x":"12",
17 | "mpl_image_size_y":"6",
18 | "mpl_image_dpi":"100",
19 |
20 | "point_style":{"0":{"elinewidth":"0", "marker":"s", "size":400, "colorbar_orietation":"horizontal", "colorbar_label":"test"}}
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/module/experiment/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "bc0409fb61f0aa82",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2014-12-06T15:37:32.348000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "0",
15 | "9",
16 | "4113"
17 | ]
18 | },
19 | "data_name": "experiment"
20 | }
21 |
--------------------------------------------------------------------------------
/module/graph.dot/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "94a051a40018fcd3",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-04-16T10:06:51.845000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "1",
16 | "0205"
17 | ]
18 | },
19 | "data_name": "graph.dot"
20 | }
21 |
--------------------------------------------------------------------------------
/module/jnotebook/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "145039462db4f4d2",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2016-07-20T17:48:42.499834",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "7",
16 | "3dev"
17 | ]
18 | },
19 | "data_name": "jnotebook"
20 | }
21 |
--------------------------------------------------------------------------------
/demo/graph-bar/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "5d7dd43d946af985",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-04-12T18:31:34.686000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "1",
16 | "0205"
17 | ]
18 | },
19 | "data_name": "graph-bar"
20 | }
21 |
--------------------------------------------------------------------------------
/module/experiment.raw/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "4894dc942079d0a4",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "cTuning foundation",
7 | "author_email": "admin@cTuning.org",
8 | "author_webpage": "http://cTuning.org",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2016-09-01T21:32:37.860985",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "8",
16 | "1dev"
17 | ]
18 | },
19 | "data_name": "experiment.raw"
20 | }
21 |
--------------------------------------------------------------------------------
/module/math.frontier/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "99d08d331cdc5478",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-05-19T18:50:20.752000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "2",
16 | "0514"
17 | ]
18 | },
19 | "data_name": "math.frontier"
20 | }
21 |
--------------------------------------------------------------------------------
/module/model.sklearn/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "c044a31a47d440c1",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2014-12-06T15:37:32.348000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "0",
15 | "9",
16 | "4113"
17 | ]
18 | },
19 | "data_name": "model.sklearn"
20 | }
21 |
--------------------------------------------------------------------------------
/module/paper/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "208314998a44ddab",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2017-04-07T11:59:58.177321",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "8",
16 | "7",
17 | "1"
18 | ]
19 | },
20 | "data_name": "paper"
21 | }
22 |
--------------------------------------------------------------------------------
/module/report/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "copy_file": {
4 | "desc": "copy file from report entry to current directory"
5 | },
6 | "html_viewer": {
7 | "desc": "view report as html",
8 | "for_web": "yes"
9 | }
10 | },
11 | "copyright": "See CK COPYRIGHT.txt for copyright details",
12 | "desc": "preparing experimental reports (html)",
13 | "developer": "Grigori Fursin",
14 | "developer_email": "Grigori.Fursin@cTuning.org",
15 | "developer_webpage": "http://fursin.net",
16 | "license": "See CK LICENSE.txt for licensing details",
17 | "module_deps": {
18 | "wfe": "1e4e644996b7f2a0"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/demo/graph-histo/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "456dac0ef9c49c8a",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-04-12T18:31:34.686000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "1",
16 | "0205"
17 | ]
18 | },
19 | "data_name": "graph-histo"
20 | }
21 |
--------------------------------------------------------------------------------
/demo/graph-lines/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "146ff9f2ca90999f",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-04-12T18:31:34.686000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "1",
16 | "0205"
17 | ]
18 | },
19 | "data_name": "graph-lines"
20 | }
21 |
--------------------------------------------------------------------------------
/graph/universal/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "56bb8bc14445bda3",
3 | "backup_module_uid": "2d41f89bcf32d4d4",
4 | "backup_module_uoa": "graph",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-06-12T23:49:44.086000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "2",
16 | "0605"
17 | ]
18 | },
19 | "data_name": "Universal"
20 | }
21 |
--------------------------------------------------------------------------------
/module/experiment.view/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "e7c9e42ba8edace0",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-06-22T18:36:01.872000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "2",
16 | "0605"
17 | ]
18 | },
19 | "data_name": "experiment.view"
20 | }
21 |
--------------------------------------------------------------------------------
/module/math.conditions/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "d5ac649c14325bca",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2016-01-29T17:32:19.601000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "6",
16 | "12x"
17 | ]
18 | },
19 | "data_name": "math.conditions"
20 | }
21 |
--------------------------------------------------------------------------------
/module/math.variation/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "d3b13388e6152da7",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-04-06T00:54:51.049000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "1",
16 | "0205"
17 | ]
18 | },
19 | "data_name": "math.variation"
20 | }
21 |
--------------------------------------------------------------------------------
/module/model.tf/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "dd506614c11964a6",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2017-11-22T16:48:27.708005",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "4",
17 | "1"
18 | ]
19 | },
20 | "data_name": "model.tf"
21 | }
22 |
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "9cf518911bc4feca",
3 | "backup_module_uid": "1e4e644996b7f2a0",
4 | "backup_module_uoa": "wfe",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2017-04-30T12:25:26.740081",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "1",
17 | "1"
18 | ]
19 | },
20 | "data_name": "ck-ai-basic"
21 | }
22 |
--------------------------------------------------------------------------------
/demo/graph-density/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "0a7d4214abfd2d47",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-04-12T18:31:34.686000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "1",
16 | "0205"
17 | ]
18 | },
19 | "data_name": "graph-density"
20 | }
21 |
--------------------------------------------------------------------------------
/demo/graph-scatter/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "aae80b44520b2bad",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-04-12T18:31:34.686000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "1",
16 | "0205"
17 | ]
18 | },
19 | "data_name": "graph-scatter"
20 | }
21 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "442c9c4058e3c5c1",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2016-08-23T22:26:49.092372",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "7",
16 | "4"
17 | ]
18 | },
19 | "data_name": "ml-decision-tree-multi"
20 | }
21 |
--------------------------------------------------------------------------------
/demo/pareto-frontier/frontier.json:
--------------------------------------------------------------------------------
1 | {
2 | "points": {
3 | "1737e16da44696ad": {
4 | "##characteristics#compile#binary_size#min": 10,
5 | "##characteristics#run#execution_time#min": 4
6 | },
7 | "475435a893244532": {
8 | "##characteristics#compile#binary_size#min": 20,
9 | "##characteristics#run#execution_time#min": 3.5
10 | },
11 | "1b4886ae4b04cbc3": {
12 | "##characteristics#compile#binary_size#min": 30,
13 | "##characteristics#run#execution_time#min": 4
14 | },
15 | "d78424dbab0ab4c2": {
16 | "##characteristics#compile#binary_size#min": 40,
17 | "##characteristics#run#execution_time#min": 1
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/demo/stat-analysis/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "fa939fe384c3d4d8",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-04-12T18:31:34.686000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "1",
16 | "0205"
17 | ]
18 | },
19 | "data_name": "stat-analysis"
20 | }
21 |
--------------------------------------------------------------------------------
/model.species/vgg16/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "a3fcac86d42bdbc4",
3 | "backup_module_uid": "38e7de41acb41d3b",
4 | "backup_module_uoa": "model.species",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2018-04-14T01:34:13.955646",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "4",
17 | "1"
18 | ]
19 | },
20 | "data_name": "VGG16"
21 | }
22 |
--------------------------------------------------------------------------------
/demo/graph-3d-scatter/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "e8f4a059a7dc9618",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-06-06T20:28:28.995000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "2",
16 | "0605"
17 | ]
18 | },
19 | "data_name": "graph-3d-scatter"
20 | }
21 |
--------------------------------------------------------------------------------
/demo/graph-3d-trisurf/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "4ab91cc4d04a5890",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-06-06T20:29:21.216000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "2",
16 | "0605"
17 | ]
18 | },
19 | "data_name": "graph-3d-trisurf"
20 | }
21 |
--------------------------------------------------------------------------------
/demo/graph-bar/graph_bars_test_save_to_html.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[["a", 10], ["b",30], ["c",20], ["d",18]], "1":[["a", 3], ["b",36], ["c",20], ["d",13]]},
3 |
4 | "ymin":0,
5 |
6 | "ignore_point_if_none":"yes",
7 |
8 | "plot_type":"d3_2d_bars",
9 |
10 | "display_y_error_bar":"no",
11 |
12 | "title":"Powered by Collective Knowledge",
13 |
14 | "axis_x_desc":"No",
15 | "axis_y_desc":"Value",
16 |
17 | "plot_grid":"yes",
18 |
19 | "d3_div":"ck_interactive",
20 |
21 | "image_width":"900",
22 | "image_height":"400",
23 |
24 | "wfe_url":"http://localhost/ck/repo/web.php?",
25 |
26 | "save_to_html":"graph_bars_test_save_to_html.html"
27 | }
28 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "6a4b85e2b255d1da",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-09-11T21:13:50.901000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "4",
16 | "0909"
17 | ]
18 | },
19 | "data_name": "ml-decision-tree"
20 | }
21 |
--------------------------------------------------------------------------------
/demo/pareto-frontier/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "104db46ef141a4aa",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-05-19T21:34:11.165000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "2",
16 | "0514"
17 | ]
18 | },
19 | "data_name": "pareto-frontier"
20 | }
21 |
--------------------------------------------------------------------------------
/model.species/alexnet/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "c0ad9b9800422f98",
3 | "backup_module_uid": "38e7de41acb41d3b",
4 | "backup_module_uoa": "model.species",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2018-05-10T16:30:11.027641",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "4",
17 | "1"
18 | ]
19 | },
20 | "data_name": "AlexNet"
21 | }
22 |
--------------------------------------------------------------------------------
/module/model.species/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "38e7de41acb41d3b",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2018-02-21T22:36:21.740852",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "4",
17 | "1"
18 | ]
19 | },
20 | "data_name": "model.species"
21 | }
22 |
--------------------------------------------------------------------------------
/demo/graph-2d-heat-map/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "fe6b4802b3e9c8d9",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-06-06T20:29:51.586000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "2",
16 | "0605"
17 | ]
18 | },
19 | "data_name": "graph-2d-heat-map"
20 | }
21 |
--------------------------------------------------------------------------------
/model.species/mobilenets/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "07d4e7aa3750ddc6",
3 | "backup_module_uid": "38e7de41acb41d3b",
4 | "backup_module_uoa": "model.species",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2018-03-19T10:16:21.295690",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "4",
17 | "1"
18 | ]
19 | },
20 | "data_name": "MobileNets"
21 | }
22 |
--------------------------------------------------------------------------------
/model.species/resnet50/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "d777f6335496db61",
3 | "backup_module_uid": "38e7de41acb41d3b",
4 | "backup_module_uoa": "model.species",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2018-03-21T17:33:18.643038",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "4",
17 | "1"
18 | ]
19 | },
20 | "data_name": "ResNet50"
21 | }
22 |
--------------------------------------------------------------------------------
/module/graph.dot/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "convert_to_decision_tree": {
4 | "desc": "convert .dot file a universal decision tree (useful before converting into C code for adaptive applications and libraries)"
5 | }
6 | },
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "desc": ".dot graphs (graphviz - useful ot customize decision trees from predictive analytics)",
9 | "developer": "Grigori Fursin",
10 | "developer_email": "Grigori.Fursin@cTuning.org",
11 | "developer_webpage": "http://fursin.net",
12 | "labels": [
13 | "NO",
14 | "YES"
15 | ],
16 | "license": "See CK LICENSE.txt for licensing details"
17 | }
18 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "42c48acbf3d40637",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2017-05-06T00:26:50.344678",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "1",
17 | "1"
18 | ]
19 | },
20 | "data_name": "ask-advice-via-ck-ai"
21 | }
22 |
--------------------------------------------------------------------------------
/demo/stat-analysis-remote/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "6b8d9a63ce442da7",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2015-04-12T18:31:34.686000",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "1",
16 | "0205"
17 | ]
18 | },
19 | "data_name": "stat-analysis-remote"
20 | }
21 |
--------------------------------------------------------------------------------
/model.species/inception.v3/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "1b339ddb13408f8f",
3 | "backup_module_uid": "38e7de41acb41d3b",
4 | "backup_module_uoa": "model.species",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2018-03-21T17:32:54.619055",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "4",
17 | "1"
18 | ]
19 | },
20 | "data_name": "Inception v3"
21 | }
22 |
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "f7fb8d17f21e4d2f",
3 | "backup_module_uid": "0e1dbf34af69c41f",
4 | "backup_module_uoa": "demo",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2017-11-23T10:14:29.061115",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "4",
17 | "1"
18 | ]
19 | },
20 | "data_name": "ml-dnn-classifier-multi"
21 | }
22 |
--------------------------------------------------------------------------------
/model.species/resnet18/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "d41bbf1e489ab5e0",
3 | "backup_module_uid": "38e7de41acb41d3b",
4 | "backup_module_uoa": "model.species",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2018-04-07T11:30:47.389279",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "4",
17 | "1"
18 | ]
19 | },
20 | "data_name": "ResNet18"
21 | }
22 |
--------------------------------------------------------------------------------
/demo/graph-3d-trisurf/plot_3d_trisurf_from_file.json:
--------------------------------------------------------------------------------
1 | {
2 | "load_table_from_file":"table.json",
3 |
4 | "plot_type":"mpl_3d_trisurf",
5 | "display_x_error_bar":"no",
6 | "display_y_error_bar":"no",
7 |
8 | "title":"Powered by Collective Knowledge",
9 |
10 | "axis_x_desc":"CPU frequency",
11 | "axis_y_desc":"GPU frequency",
12 | "axis_z_desc":"CPU execution time",
13 |
14 | "xmin":0,
15 | "xmax":2200000,
16 |
17 | "plot_grid":"no",
18 |
19 | "mpl_image_size_x":"12",
20 | "mpl_image_size_y":"6",
21 | "mpl_image_dpi":"100",
22 |
23 | "point_style":{"0":{"elinewidth":"0", "colorbar_orietation":"vertical", "colorbar_label":"test"}}
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/model.species/mobilenetsv2/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "1bf95c329964b48b",
3 | "backup_module_uid": "38e7de41acb41d3b",
4 | "backup_module_uoa": "model.species",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2018-04-07T11:31:01.647181",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "4",
17 | "1"
18 | ]
19 | },
20 | "data_name": "MobileNetsV2"
21 | }
22 |
--------------------------------------------------------------------------------
/module/model.image.classification/.cm/info.json:
--------------------------------------------------------------------------------
1 | {
2 | "backup_data_uid": "42b9a1221eb50259",
3 | "backup_module_uid": "032630d041b4fd8a",
4 | "backup_module_uoa": "module",
5 | "control": {
6 | "author": "Grigori Fursin",
7 | "author_email": "Grigori.Fursin@cTuning.org",
8 | "author_webpage": "http://fursin.net",
9 | "copyright": "See CK COPYRIGHT.txt for copyright details",
10 | "engine": "CK",
11 | "iso_datetime": "2017-05-05T10:01:09.917107",
12 | "license": "See CK LICENSE.txt for licensing details",
13 | "version": [
14 | "1",
15 | "9",
16 | "1",
17 | "1"
18 | ]
19 | },
20 | "data_name": "model.image.classification"
21 | }
22 |
--------------------------------------------------------------------------------
/demo/graph-3d-scatter/plot_3d_scatter_from_file.json:
--------------------------------------------------------------------------------
1 | {
2 | "load_table_from_file":"table.json",
3 |
4 | "plot_type":"mpl_3d_scatter",
5 | "display_x_error_bar":"no",
6 | "display_y_error_bar":"no",
7 |
8 | "title":"Powered by Collective Knowledge",
9 |
10 | "axis_x_desc":"CPU frequency",
11 | "axis_y_desc":"GPU frequency",
12 | "axis_z_desc":"CPU execution time",
13 |
14 | "xmin":0,
15 | "xmax":2200000,
16 |
17 | "plot_grid":"no",
18 |
19 | "mpl_image_size_x":"12",
20 | "mpl_image_size_y":"6",
21 | "mpl_image_dpi":"100",
22 |
23 | "point_style":{"0":{"elinewidth":"0", "marker":"o", "size":50, "colorbar_orietation":"horizontal", "colorbar_label":"test"}}
24 | }
25 |
--------------------------------------------------------------------------------
/module/model.r/model_earth_predict.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(earth)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | fmodel=args[1]
17 | finput=args[2]
18 | foutput=args[3]
19 |
20 | # get data
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set)
25 |
26 | # loading saved prediction model
27 | load(fmodel)
28 |
29 | # Predicting
30 | p=predict(model, x)
31 |
32 | # Saving results
33 | write.csv(p, file=foutput)
34 |
--------------------------------------------------------------------------------
/module/model.r/model_lm_predict.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(stats)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | fmodel=args[1]
17 | finput=args[2]
18 | foutput=args[3]
19 |
20 | # get data
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set)
25 |
26 | # loading saved prediction model
27 | load(fmodel)
28 |
29 | # Predicting
30 | p=predict(model, data=x)
31 |
32 | # Saving results
33 | write.csv(p, file=foutput)
34 |
--------------------------------------------------------------------------------
/module/model.r/model_party_predict.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(party)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | fmodel=args[1]
17 | finput=args[2]
18 | foutput=args[3]
19 |
20 | # get data
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set)
25 |
26 | # loading saved prediction model
27 | load(fmodel)
28 |
29 | # Predicting
30 | p=predict(model, data=x)
31 |
32 | # Saving results
33 | write.csv(p, file=foutput)
34 |
--------------------------------------------------------------------------------
/demo/graph-2d-heat-map/plot_heat_map_from_file.json:
--------------------------------------------------------------------------------
1 | {
2 | "load_table_from_file":"table.json",
3 |
4 | "plot_type":"mpl_2d_heatmap",
5 | "display_x_error_bar":"no",
6 | "display_y_error_bar":"no",
7 |
8 | "title":"Powered by Collective Knowledge",
9 |
10 | "axis_x_desc":"CPU frequency",
11 | "axis_y_desc":"GPU frequency",
12 | "axis_z_desc":"CPU execution time",
13 |
14 | "xmin":0,
15 | "xmax":2200000,
16 |
17 | "plot_grid":"no",
18 |
19 | "mpl_image_size_x":"12",
20 | "mpl_image_size_y":"6",
21 | "mpl_image_dpi":"100",
22 |
23 | "point_style":{"0":{"elinewidth":"0", "marker":"s", "size":400, "colorbar_orietation":"horizontal", "colorbar_label":"test"}}
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/module/model.r/model_nnet_predict.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(nnet)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | fmodel=args[1]
17 | finput=args[2]
18 | foutput=args[3]
19 |
20 | # get data
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set)
25 |
26 | # loading saved prediction model
27 | load(fmodel)
28 |
29 | # Predicting
30 | p=predict(model, data=x, type="class")
31 |
32 | # Saving results
33 | write.csv(p, file=foutput)
34 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/use_ml_to_predict_compiler_flags_local.json:
--------------------------------------------------------------------------------
1 | {
2 | "local":"yes",
3 | "compiler":"GCC 4.9",
4 | "cpu_name": "QCT MSM7625a FFA",
5 | "features": ["9.0", "4.0", "2.0", "0.0", "5.0", "2.0", "0.0", "4.0", "0.0", "0.0", "2.0", "0.0", "7.0", "0.0", "0.0",
6 | "10.0", "0.0", "0.0", "1.0", "2.0", "10.0", "4.0", "1.0", "14.0", "2.0", "0.714286",
7 | "1.8", "3.0", "0.0", "4.0", "0.0", "3.0", "0.0", "3.0", "0.0", "0.0", "0.0", "0.0", "0.0", "0.0", "2.0",
8 | "0.0", "1.0", "0.0", "1.0", "5.0", "10.0", "2.0", "0.0", "32.0", "0.0", "10.0", "0.0", "0.0",
9 | "0.0", "0.0", "3.0", "33.0", "12.0", "32.0", "93.0", "14.0", "19.25", "591.912", "11394.3"]
10 | }
11 |
--------------------------------------------------------------------------------
/module/model.r/model_randomforest_predict.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(randomForest)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | fmodel=args[1]
17 | finput=args[2]
18 | foutput=args[3]
19 |
20 | # get data
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set)
25 |
26 | # loading saved prediction model
27 | load(fmodel)
28 |
29 | # Predicting
30 | p=predict(model, data=x)
31 |
32 | # Saving results
33 | write.csv(p, file=foutput)
34 |
--------------------------------------------------------------------------------
/module/model.r/model_svm_predict.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(e1071)
12 | library(rpart)
13 |
14 | # get arguments
15 | args <- commandArgs(trailingOnly = TRUE)
16 |
17 | fmodel=args[1]
18 | finput=args[2]
19 | foutput=args[3]
20 |
21 | # get data
22 | data_set = read.csv(finput, header=FALSE, sep=";")
23 |
24 | # variables
25 | x=data.frame(data_set)
26 |
27 | # loading saved prediction model
28 | load(fmodel)
29 |
30 | # Predicting
31 | p=predict(model, data=x)
32 |
33 | # Saving results
34 | write.csv(p, file=foutput)
35 |
--------------------------------------------------------------------------------
/module/graph/third-party/d3/README.md:
--------------------------------------------------------------------------------
1 | # Data-Driven Documents
2 |
3 |
4 |
5 | **D3.js** is a JavaScript library for manipulating documents based on data. **D3** helps you bring data to life using HTML, SVG, and CSS. **D3** emphasizes web standards and combines powerful visualization components with a data-driven approach to DOM manipulation, giving you the full capabilities of modern browsers without tying yourself to a proprietary framework.
6 |
7 | Want to learn more? [See the wiki.](https://github.com/mbostock/d3/wiki)
8 |
9 | For examples, [see the gallery](https://github.com/mbostock/d3/wiki/Gallery) and [mbostock’s bl.ocks](http://bl.ocks.org/mbostock).
10 |
--------------------------------------------------------------------------------
/module/model.r/model_rpart_predict.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(e1071)
12 | library(rpart)
13 |
14 | # get arguments
15 | args <- commandArgs(trailingOnly = TRUE)
16 |
17 | fmodel=args[1]
18 | finput=args[2]
19 | foutput=args[3]
20 |
21 | # get data
22 | data_set = read.csv(finput, header=FALSE, sep=";")
23 |
24 | # variables
25 | x=data.frame(data_set)
26 |
27 | # loading saved prediction model
28 | load(fmodel)
29 |
30 | print (x)
31 |
32 | # Predicting
33 | p=predict(model, x)
34 |
35 | print (p)
36 |
37 | # Saving results
38 | write.csv(p, file=foutput)
39 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree/model-input.json:
--------------------------------------------------------------------------------
1 | {
2 | "ftable":
3 | [
4 | [20, "O3"],
5 | [20, "O2"],
6 | [20, "Os"]
7 | ],
8 |
9 | "fkeys":
10 | [
11 | "program_size",
12 | "opt_flag"
13 | ],
14 |
15 | "features_flat_keys_desc": {
16 | "program_size":{"name":"Program Size"},
17 | "opt_flag":{"name":"Optimization Flag"}
18 | },
19 |
20 |
21 | "ctable":
22 | [
23 | [false],
24 | [true],
25 | [true]
26 | ],
27 |
28 | "ckeys":
29 | [
30 | "is_cmov_expected"
31 | ],
32 |
33 | "keep_temp_files":"yes",
34 |
35 | "model_module_uoa":"model.sklearn",
36 | "model_name":"dtc",
37 | "model_file":"model-sklearn-dtc",
38 | "model_params":{"max_depth":3}
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/demo/graph-scatter/graph_scatter_test_with_error.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[[171941, 0.017235, 0.005], [171941,0.012235, 0.003], [171277,0.018795, 0.006], [185101,0.05366, 0.004], [169381,0.016395, 0.005],[171277,0.01786, 0.005]],
3 | "1":[[171841,0.012235, 0.005],[169281,0.016395, 0.006]]},
4 |
5 |
6 | "add_x_loop":"yes",
7 |
8 | "ignore_point_if_none":"yes",
9 |
10 | "plot_type":"mpl_2d_scatter",
11 |
12 | "display_y_error_bar":"yes",
13 |
14 | "title":"Powered by Collective Knowledge",
15 |
16 | "axis_x_desc":"No",
17 | "axis_y_desc":"Value",
18 |
19 | "plot_grid":"yes",
20 |
21 | "mpl_image_size_x":"12",
22 | "mpl_image_size_y":"6",
23 | "mpl_image_dpi":"100",
24 |
25 | "point_style":{"1":{"elinewidth":"5", "color":"#dc3912"},
26 | "0":{"color":"#3366cc"}}
27 | }
28 |
--------------------------------------------------------------------------------
/module/math.variation/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "analyze": {
4 | "desc": "analyze variation of experimental results including multiple expected values"
5 | },
6 | "geometric_mean": {
7 | "desc": "calculating geometric mean"
8 | },
9 | "process_plus_minus": {
10 | "desc": "convert plus minus vars to user friendly strings"
11 | },
12 | "speedup": {
13 | "desc": "analyze speedup"
14 | }
15 | },
16 | "copyright": "See CK COPYRIGHT.txt for copyright details",
17 | "desc": "analyzing variation of experimental results (min,max,average,expected values,etc)",
18 | "developer": "Grigori Fursin",
19 | "developer_email": "Grigori.Fursin@cTuning.org",
20 | "developer_webpage": "http://fursin.net",
21 | "license": "See CK LICENSE.txt for licensing details"
22 | }
23 |
--------------------------------------------------------------------------------
/demo/graph-scatter/graph_scatter_test_save_to_html.json:
--------------------------------------------------------------------------------
1 | {
2 | "table":{"0":[[171941, 0.017235], [171941,0.012235], [171277,0.018795], [185101,0.05366], [169381,0.016395],[171277,0.01786]],
3 | "1":[[171941,0.012235],[169381,0.016395]]},
4 |
5 | "add_x_loop":"yes",
6 |
7 | "ignore_point_if_none":"yes",
8 |
9 | "plot_type":"d3_2d_scatter",
10 |
11 | "display_y_error_bar":"no",
12 |
13 | "title":"Powered by Collective Knowledge",
14 |
15 | "axis_x_desc":"No",
16 | "axis_y_desc":"Value",
17 |
18 | "plot_grid":"yes",
19 |
20 | "d3_div":"ck_interactive",
21 |
22 | "image_width":"900",
23 | "image_height":"400",
24 |
25 | "wfe_url":"http://localhost/ck/repo/web.php?",
26 |
27 | "save_to_html":"graph_scatter_test_save_to_html.html",
28 | "save_to_style":"graph_scatter_test_save_to_html.style"
29 | }
30 |
--------------------------------------------------------------------------------
/module/model.r/model_party_build.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(party)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | finput=args[1]
17 | foutput=args[2]
18 |
19 | # get data
20 | #data_set = read.table(args[1], header=T, sep=";")
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set[,1:ncol(data_set)-1])
25 |
26 | # value
27 | y=data_set[,ncol(data_set)]
28 |
29 | # model
30 | model=ctree(y~.,data=x)
31 |
32 | # Saving model
33 | save(model, file=paste(foutput,'',sep=''))
34 |
35 | print(model)
36 |
37 | summary(model)
38 |
39 | plot(model)
40 |
--------------------------------------------------------------------------------
/demo/ml-decision-tree-multi/model-input.json:
--------------------------------------------------------------------------------
1 | {
2 | "ftable":
3 | [
4 | [1],
5 | [2],
6 | [4],
7 | [8],
8 | [16],
9 | [32],
10 | [64],
11 | [128]
12 | ],
13 |
14 | "fkeys":
15 | [
16 | "input"
17 | ],
18 |
19 | "features_flat_keys_desc": {
20 | "input":{"name":"Dataset size"}
21 | },
22 |
23 |
24 | "ctable":
25 | [
26 | [0],
27 | [0],
28 | [1],
29 | [2],
30 | [2],
31 | [2],
32 | [3],
33 | [1]
34 | ],
35 |
36 | "ckeys":
37 | [
38 | "Solution"
39 | ],
40 |
41 | "keep_temp_files":"yes",
42 |
43 | "model_module_uoa":"model.sklearn",
44 | "model_name":"dtc",
45 | "model_file":"model-sklearn-dtc",
46 | "model_params":{"max_depth":3}
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/module/model.r/model_nnet_build.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(nnet)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | finput=args[1]
17 | foutput=args[2]
18 |
19 | # get data
20 | #data_set = read.table(args[1], header=T, sep=";")
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set[,1:ncol(data_set)-1])
25 |
26 | # value
27 | y=data_set[,ncol(data_set)]
28 |
29 | # model
30 | model=nnet(y~.,data=x,size=10,decay=0,maxit=2000,trace=T)
31 |
32 | # Saving model
33 | save(model, file=paste(foutput,'',sep=''))
34 |
35 | print(model)
36 |
37 | summary(model)
38 |
--------------------------------------------------------------------------------
/module/model/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "build": {
4 | "desc": "build predictive model"
5 | },
6 | "convert_to_csv": {
7 | "desc": "convert table to CSV"
8 | },
9 | "use": {
10 | "desc": "use existing model to predict values"
11 | },
12 | "validate": {
13 | "desc": "validate predictive model (detect mispredictions, calculate RMSE, etc)",
14 | "for_web": "yes"
15 | }
16 | },
17 | "author": "Grigori Fursin",
18 | "author_email": "Grigori.Fursin@cTuning.org",
19 | "author_webpage": "http://fursin.net",
20 | "copyright": "See CK COPYRIGHT.txt for copyright details",
21 | "desc": "universal predictive modeling",
22 | "license": "See CK LICENSE.txt for licensing details",
23 | "module_deps": {
24 | "experiment": "bc0409fb61f0aa82",
25 | "graph": "2d41f89bcf32d4d4"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/module/model.r/model_rpart_build.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(rpart)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | finput=args[1]
17 | foutput=args[2]
18 |
19 | # get data
20 | #data_set = read.table(args[1], header=T, sep=";")
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set[,1:ncol(data_set)-1])
25 |
26 | # value
27 | y=data_set[,ncol(data_set)]
28 |
29 | # model
30 | model=rpart(y~.,data=x)
31 |
32 | # Saving model
33 | save(model, file=paste(foutput,'',sep=''))
34 |
35 | print(model)
36 |
37 | summary(model)
38 |
39 | plot(model)
40 |
41 | post(model, file='tree.ps')
42 |
--------------------------------------------------------------------------------
/module/model.r/model_randomforest_build.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(randomForest)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | finput=args[1]
17 | foutput=args[2]
18 |
19 | # get data
20 | #data_set = read.table(args[1], header=T, sep=";")
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set[,1:ncol(data_set)-1])
25 |
26 | # value
27 | y=data_set[,ncol(data_set)]
28 |
29 | # model
30 | model=randomForest(y~.,data=x)
31 |
32 | # Saving model
33 | save(model, file=paste(foutput,'',sep=''))
34 |
35 | print(model)
36 |
37 | summary(model)
38 |
39 | plot(model)
40 | #post(model, file='tree.ps')
41 |
--------------------------------------------------------------------------------
/module/model.r/model_earth_build.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(earth)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | finput=args[1]
17 | foutput=args[2]
18 |
19 | # get data
20 | #data_set = read.table(args[1], header=T, sep=";")
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set[,1:ncol(data_set)-1])
25 |
26 | # value
27 | y=data_set[,ncol(data_set)]
28 |
29 | # model
30 | model=earth(x,y)
31 |
32 | # Saving model
33 | save(model, file=paste(foutput,'',sep=''))
34 |
35 | print(model)
36 |
37 | summary(model)
38 |
39 | xmodel=format(model, style="pmax")
40 | print(xmodel)
41 |
42 | #plot(model)
43 |
--------------------------------------------------------------------------------
/module/model.r/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "build": {
4 | "desc": "build predictive model",
5 | "for_web": "yes"
6 | },
7 | "validate": {
8 | "desc": "validate predictive model",
9 | "for_web": "yes"
10 | }
11 | },
12 | "author": "Grigori Fursin",
13 | "author_email": "Grigori.Fursin@cTuning.org",
14 | "author_webpage": "http://fursin.net",
15 | "copyright": "See CK COPYRIGHT.txt for copyright details",
16 | "desc": "predictive modeling via R",
17 | "license": "See CK LICENSE.txt for licensing details",
18 | "model_code_build": "model_$#model_name#$_build.R",
19 | "model_code_predict": "model_$#model_name#$_predict.R",
20 | "module_deps": {
21 | "experiment": "bc0409fb61f0aa82"
22 | },
23 | "module_names": [
24 | "earth",
25 | "lm",
26 | "nnet",
27 | "party",
28 | "randomforest",
29 | "rpart",
30 | "svm"
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/module/model.species/module.py:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (model species)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK COPYRIGHT.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net
8 | #
9 |
10 | cfg={} # Will be updated by CK (meta description of this module)
11 | work={} # Will be updated by CK (temporal data)
12 | ck=None # Will be updated by CK (initialized CK kernel)
13 |
14 | # Local settings
15 |
16 | ##############################################################################
17 | # Initialize module
18 |
19 | def init(i):
20 | """
21 |
22 | Input: {}
23 |
24 | Output: {
25 | return - return code = 0, if successful
26 | > 0, if error
27 | (error) - error text if return > 0
28 | }
29 |
30 | """
31 | return {'return':0}
32 |
--------------------------------------------------------------------------------
/module/paper/module.py:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (CK wrapper for articles)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK COPYRIGHT.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net
8 | #
9 |
10 | cfg={} # Will be updated by CK (meta description of this module)
11 | work={} # Will be updated by CK (temporal data)
12 | ck=None # Will be updated by CK (initialized CK kernel)
13 |
14 | # Local settings
15 |
16 | ##############################################################################
17 | # Initialize module
18 |
19 | def init(i):
20 | """
21 |
22 | Input: {}
23 |
24 | Output: {
25 | return - return code = 0, if successful
26 | > 0, if error
27 | (error) - error text if return > 0
28 | }
29 |
30 | """
31 | return {'return':0}
32 |
--------------------------------------------------------------------------------
/module/experiment.raw/module.py:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (raw experiment container)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK COPYRIGHT.txt for copyright details
6 | #
7 | # Developer: cTuning foundation, admin@cTuning.org, http://cTuning.org
8 | #
9 |
10 | cfg={} # Will be updated by CK (meta description of this module)
11 | work={} # Will be updated by CK (temporal data)
12 | ck=None # Will be updated by CK (initialized CK kernel)
13 |
14 | # Local settings
15 |
16 | ##############################################################################
17 | # Initialize module
18 |
19 | def init(i):
20 | """
21 |
22 | Input: {}
23 |
24 | Output: {
25 | return - return code = 0, if successful
26 | > 0, if error
27 | (error) - error text if return > 0
28 | }
29 |
30 | """
31 | return {'return':0}
32 |
--------------------------------------------------------------------------------
/module/model.sklearn/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "build": {
4 | "desc": "build predictive model",
5 | "for_web": "yes"
6 | },
7 | "convert_categories_to_floats": {
8 | "desc": "convert categories to floats"
9 | },
10 | "validate": {
11 | "desc": "validate predictive model",
12 | "for_web": "yes"
13 | }
14 | },
15 | "author": "Grigori Fursin",
16 | "author_email": "Grigori.Fursin@cTuning.org",
17 | "author_webpage": "http://fursin.net",
18 | "copyright": "See CK COPYRIGHT.txt for copyright details",
19 | "desc": "predictive modeling via python-based scikit-learn",
20 | "license": "See CK LICENSE.txt for licensing details",
21 | "model_code_build": "model_$#model_name#$_build.R",
22 | "model_code_predict": "model_$#model_name#$_predict.R",
23 | "module_deps": {
24 | "experiment": "bc0409fb61f0aa82",
25 | "graph.dot": "94a051a40018fcd3"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/module/experiment.view/module.py:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (customize views for experiments)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK COPYRIGHT.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net
8 | #
9 |
10 | cfg={} # Will be updated by CK (meta description of this module)
11 | work={} # Will be updated by CK (temporal data)
12 | ck=None # Will be updated by CK (initialized CK kernel)
13 |
14 | # Local settings
15 |
16 | ##############################################################################
17 | # Initialize module
18 |
19 | def init(i):
20 | """
21 |
22 | Input: {}
23 |
24 | Output: {
25 | return - return code = 0, if successful
26 | > 0, if error
27 | (error) - error text if return > 0
28 | }
29 |
30 | """
31 | return {'return':0}
32 |
--------------------------------------------------------------------------------
/module/model.r/model_svm_build.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(e1071)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | finput=args[1]
17 | foutput=args[2]
18 |
19 | # get data
20 | #data_set = read.table(args[1], header=T, sep=";")
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set[,1:ncol(data_set)-1])
25 |
26 | # value
27 | y=data_set[,ncol(data_set)]
28 |
29 | # model
30 | model=svm(y~.,data=x,cost=10000,gamma=0.0000001)
31 |
32 | # Saving model
33 | save(model, file=paste(foutput,'',sep=''))
34 |
35 | #tuned <- tune.svm(y~., data=x, gamma = 10^(-6:-1), cost = 10^(1:2))
36 | #summary(tuned)
37 |
38 | print(model)
39 |
40 | summary(model)
41 |
42 | #plot(model)
43 |
--------------------------------------------------------------------------------
/module/model.r/model_lm_build.R:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Predictive modeling using R)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK Copyright.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin
8 | #
9 |
10 | # model package
11 | library(stats)
12 |
13 | # get arguments
14 | args <- commandArgs(trailingOnly = TRUE)
15 |
16 | finput=args[1]
17 | foutput=args[2]
18 |
19 | # get data
20 | #data_set = read.table(args[1], header=T, sep=";")
21 | data_set = read.csv(finput, header=FALSE, sep=";")
22 |
23 | # variables
24 | x=data.frame(data_set[,1:ncol(data_set)-1])
25 |
26 | # value
27 | y=data_set[,ncol(data_set)]
28 |
29 | # model
30 | model=lm(y~.,data=x)
31 |
32 | model.anova<-anova(model)
33 |
34 | print(model.anova)
35 |
36 | # Saving model
37 | save(model, file=paste(foutput,'',sep=''))
38 |
39 | print(model)
40 |
41 | summary(model)
42 |
43 | #xmodel=format(model, style="pmax")
44 | #print(xmodel)
45 |
46 | plot(model)
47 |
--------------------------------------------------------------------------------
/module/model.tf/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "build": {
4 | "desc": "build predictive model",
5 | "for_web": "yes"
6 | },
7 | "convert_categories_to_floats": {
8 | "desc": "convert categories to floats"
9 | },
10 | "validate": {
11 | "desc": "validate predictive model",
12 | "for_web": "yes"
13 | }
14 | },
15 | "author": "Grigori Fursin",
16 | "author_email": "Grigori.Fursin@cTuning.org",
17 | "author_webpage": "http://fursin.net",
18 | "copyright": "See CK COPYRIGHT.txt for copyright details",
19 | "data_deps": {
20 | "soft_lib_tensorflow": "30db354f469bb178"
21 | },
22 | "desc": "predictive modeling via python-based scikit-learn",
23 | "license": "See CK LICENSE.txt for licensing details",
24 | "module_deps": {
25 | "env": "9b9b3208ac44b891",
26 | "experiment": "bc0409fb61f0aa82",
27 | "graph.dot": "94a051a40018fcd3",
28 | "os": "0440cb72c2bc5cc6",
29 | "soft": "5e1100048ab875d7"
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/module/graph/.cm/updates.json:
--------------------------------------------------------------------------------
1 | {
2 | "control": [
3 | {
4 | "author": "Grigori Fursin",
5 | "author_email": "Grigori.Fursin@cTuning.org",
6 | "author_webpage": "http://fursin.net",
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "engine": "CK",
9 | "iso_datetime": "2015-06-12T17:25:04.008000",
10 | "license": "See CK LICENSE.txt for licensing details",
11 | "version": [
12 | "1",
13 | "2",
14 | "0605"
15 | ]
16 | },
17 | {
18 | "author": "Grigori Fursin",
19 | "author_email": "Grigori.Fursin@cTuning.org",
20 | "author_webpage": "http://fursin.net",
21 | "copyright": "See CK COPYRIGHT.txt for copyright details",
22 | "engine": "CK",
23 | "iso_datetime": "2015-06-14T16:07:41.630000",
24 | "license": "See CK LICENSE.txt for licensing details",
25 | "version": [
26 | "1",
27 | "2",
28 | "0605"
29 | ]
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/demo/ml-dnn-classifier-multi/input-train-tf-dnn-classifier.json:
--------------------------------------------------------------------------------
1 | {
2 | "ftable":
3 | [
4 | [1.0,1.0],
5 | [2,2],
6 | [4,4],
7 | [8,8],
8 | [16,16],
9 | [32,32],
10 | [64,64],
11 | [128,128]
12 | ],
13 |
14 | "fkeys":
15 | [
16 | "Matrix size M",
17 | "Matrix size N"
18 | ],
19 |
20 | "features_flat_keys_desc": {
21 | "input":{"name":"Dataset size"}
22 | },
23 |
24 |
25 | "ctable":
26 | [
27 | [0],
28 | [0],
29 | [1],
30 | [2],
31 | [2],
32 | [2],
33 | [3],
34 | [1]
35 | ],
36 |
37 | "ckeys":
38 | [
39 | "Optimization"
40 | ],
41 |
42 | "keep_temp_files":"yes",
43 |
44 | "model_module_uoa":"model.tf",
45 | "model_name":"dnn_classifier",
46 | "model_file":"model-tf-dnn-classifier",
47 |
48 | "model_params":{
49 | "hidden_units":[10,20,10],
50 | "training_steps":1000
51 | }
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/module/model.sklearn/.cm/updates.json:
--------------------------------------------------------------------------------
1 | {
2 | "control": [
3 | {
4 | "author": "Grigori Fursin",
5 | "author_email": "Grigori.Fursin@cTuning.org",
6 | "author_webpage": "http://fursin.net",
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "engine": "CK",
9 | "iso_datetime": "2015-04-07T12:04:14.331000",
10 | "license": "See CK LICENSE.txt for licensing details",
11 | "version": [
12 | "1",
13 | "1",
14 | "0205"
15 | ]
16 | },
17 | {
18 | "author": "Grigori Fursin",
19 | "author_email": "Grigori.Fursin@cTuning.org",
20 | "author_webpage": "http://fursin.net",
21 | "copyright": "See CK COPYRIGHT.txt for copyright details",
22 | "engine": "CK",
23 | "iso_datetime": "2015-04-18T19:04:10.551734",
24 | "license": "See CK LICENSE.txt for licensing details",
25 | "version": [
26 | "1",
27 | "1",
28 | "0205"
29 | ]
30 | }
31 | ]
32 | }
33 |
--------------------------------------------------------------------------------
/module/paper/.cm/updates.json:
--------------------------------------------------------------------------------
1 | {
2 | "control": [
3 | {
4 | "author": "Grigori Fursin",
5 | "author_email": "Grigori.Fursin@cTuning.org",
6 | "author_webpage": "http://fursin.net",
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "engine": "CK",
9 | "iso_datetime": "2017-04-07T12:15:39.502700",
10 | "license": "See CK LICENSE.txt for licensing details",
11 | "version": [
12 | "1",
13 | "8",
14 | "7",
15 | "1"
16 | ]
17 | },
18 | {
19 | "author": "Grigori Fursin",
20 | "author_email": "Grigori.Fursin@cTuning.org",
21 | "author_webpage": "http://fursin.net",
22 | "copyright": "See CK COPYRIGHT.txt for copyright details",
23 | "engine": "CK",
24 | "iso_datetime": "2017-04-07T12:16:46.793402",
25 | "license": "See CK LICENSE.txt for licensing details",
26 | "version": [
27 | "1",
28 | "8",
29 | "7",
30 | "1"
31 | ]
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/module/advice/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "ask": {
4 | "desc": "ask AI advice via CK JSON API and CK DNN engines"
5 | },
6 | "browse": {
7 | "desc": "CK-AI dashboard"
8 | },
9 | "show": {
10 | "desc": "access available CK-AI self-optimizing functions",
11 | "for_web": "yes"
12 | }
13 | },
14 | "copyright": "See CK COPYRIGHT.txt for copyright details",
15 | "desc": "universal advice (about features, models, optimizations, community remarks)",
16 | "developer": "Grigori Fursin",
17 | "developer_email": "Grigori.Fursin@cTuning.org",
18 | "developer_webpage": "http://fursin.net",
19 | "license": "See CK LICENSE.txt for licensing details",
20 | "module_deps": {
21 | "experiment.tune.compiler.flags.gcc.e": "8289e0cf24346aa7",
22 | "experiment.tune.compiler.flags.llvm.e": "2aaed4c520956635",
23 | "milepost": "ca1c41694a000200",
24 | "model.image.classification": "42b9a1221eb50259",
25 | "module": "032630d041b4fd8a",
26 | "program.optimization": "27bc42ee449e880e",
27 | "wfe": "1e4e644996b7f2a0"
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/use_ml_to_predict_compiler_flags.json:
--------------------------------------------------------------------------------
1 | {
2 | "compiler":"GCC 4.9",
3 | "cpu_name": "QCT MSM7625a FFA",
4 | "ft1": "9.0", "ft10": "0.0", "ft11": "2.0", "ft12": "0.0", "ft13": "7.0", "ft14": "0.0", "ft15": "0.0", "ft16": "10.0", "ft17": "0.0", "ft18": "0.0", "ft19": "1.0", "ft2": "4.0", "ft20": "2.0", "ft21": "10.0", "ft22": "4.0", "ft23": "1.0", "ft24": "14.0", "ft25": "2.0", "ft26": "0.714286", "ft27": "1.8", "ft28": "3.0", "ft29": "0.0", "ft3": "2.0", "ft30": "4.0", "ft31": "0.0", "ft32": "3.0", "ft33": "0.0", "ft34": "3.0", "ft35": "0.0", "ft36": "0.0", "ft37": "0.0", "ft38": "0.0", "ft39": "0.0", "ft4": "0.0", "ft40": "0.0", "ft41": "2.0", "ft42": "0.0", "ft43": "1.0", "ft44": "0.0", "ft45": "1.0", "ft46": "5.0", "ft47": "10.0", "ft48": "2.0", "ft49": "0.0", "ft5": "5.0", "ft50": "32.0", "ft51": "0.0", "ft52": "10.0", "ft53": "0.0", "ft54": "0.0", "ft55": "0.0", "ft56": "0.0", "ft57": "3.0", "ft58": "33.0", "ft59": "12.0", "ft6": "2.0", "ft60": "32.0", "ft61": "93.0", "ft62": "14.0", "ft63": "19.25", "ft64": "591.912", "ft65": "11394.3", "ft7": "0.0", "ft8": "4.0", "ft9": "0.0"
5 | }
6 |
--------------------------------------------------------------------------------
/demo/ask-advice-via-ck-ai/use_ml_to_predict_compiler_flags.py:
--------------------------------------------------------------------------------
1 | import ck.kernel as ck
2 |
3 | scenario='experiment.tune.compiler.flags.gcc.e'
4 | compiler='GCC 7.1.0'
5 | cpu_name='BCM2709'
6 |
7 | features= ["9.0", "4.0", "2.0", "0.0", "5.0", "2.0", "0.0", "4.0", "0.0", "0.0", "2.0", "0.0", "7.0", "0.0", "0.0",
8 | "10.0", "0.0", "0.0", "1.0", "2.0", "10.0", "4.0", "1.0", "14.0", "2.0", "0.714286",
9 | "1.8", "3.0", "0.0", "4.0", "0.0", "3.0", "0.0", "3.0", "0.0", "0.0", "0.0", "0.0", "0.0", "0.0", "2.0",
10 | "0.0", "1.0", "0.0", "1.0", "5.0", "10.0", "2.0", "0.0", "32.0", "0.0", "10.0", "0.0", "0.0",
11 | "0.0", "0.0", "3.0", "33.0", "12.0", "32.0", "93.0", "14.0", "19.25", "591.912", "11394.3"]
12 |
13 | r=ck.access({'action':'ask',
14 | 'module_uoa':'advice',
15 | 'to':'predict_compiler_flags',
16 | 'scenario':scenario,
17 | 'compiler':compiler,
18 | 'cpu_name':cpu_name,
19 | 'features':features})
20 | if r['return']>0: ck.err(r)
21 |
22 | ck.out('Predicted optimization: '+r['predicted_opt'])
23 |
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "extra_html_after_menu": "",
3 | "top_menu": [
4 | {
5 | "name": "Home",
6 | "new_window": "yes",
7 | "url": "http://cKnowledge.org/repo"
8 | },
9 | {
10 | "default": "yes",
11 | "module_uoa": "",
12 | "module_uoas": [
13 | ""
14 | ],
15 | "name": "CK JSON API for unified AI",
16 | "native_action": "show",
17 | "native_module_uoa": "advice",
18 | "url_extra": "action=index&module_uoa=wfe&native_action=show&native_module_uoa=advice"
19 | },
20 | {
21 | "name": "Collective training set",
22 | "module_uoa": "model.image.classification",
23 | "url_extra": "data_uoa=collective_training_set",
24 | "module_uoas": [
25 | "model.image.classification",
26 | "42b9a1221eb50259"
27 | ]
28 | },
29 | {
30 | "name": "Get CK workflow framework",
31 | "new_window": "yes",
32 | "url": "https://github.com/ctuning/ck"
33 | },
34 | {
35 | "name": "About",
36 | "new_window": "yes",
37 | "url": "http://cKnowledge.org/ai"
38 | }
39 | ]
40 | }
41 |
--------------------------------------------------------------------------------
/graph/universal/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "graphs": [
3 | {
4 | "id": "universal",
5 | "name": "universal graph",
6 | "params": {
7 | "axis_x_desc": "Binary size",
8 | "axis_y_desc": "Execution time",
9 | "data_uoa_list": [
10 | "demo-autotune-flags-susan-mingw-i10",
11 | "demo-autotune-flags-susan-mingw-best"
12 | ],
13 | "display_x_error_bar": "no",
14 | "display_y_error_bar": "yes",
15 | "experiment_module_uoa": "experiment",
16 | "flat_keys_list": [
17 | "##characteristics#compile#obj_size#min",
18 | "##characteristics#run#execution_time_kernel_0#center",
19 | "##characteristics#run#execution_time_kernel_0#halfrange"
20 | ],
21 | "mpl_image_dpi": "100",
22 | "mpl_image_size_x": "12",
23 | "mpl_image_size_y": "6",
24 | "plot_grid": "yes",
25 | "plot_type": "mpl_2d_scatter",
26 | "point_style": {
27 | "0": {
28 | "color": "#3366cc"
29 | },
30 | "1": {
31 | "color": "#dc3912",
32 | "elinewidth": "5"
33 | }
34 | },
35 | "size_x": 700,
36 | "size_y": 400,
37 | "title": "Powered by Collective Knowledge"
38 | }
39 | }
40 | ],
41 | "name": "Universal CK graph viewer"
42 | }
43 |
--------------------------------------------------------------------------------
/module/model.tf/.cm/updates.json:
--------------------------------------------------------------------------------
1 | {
2 | "control": [
3 | {
4 | "author": "Grigori Fursin",
5 | "author_email": "Grigori.Fursin@cTuning.org",
6 | "author_webpage": "http://fursin.net",
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "engine": "CK",
9 | "iso_datetime": "2015-04-07T12:04:14.331000",
10 | "license": "See CK LICENSE.txt for licensing details",
11 | "version": [
12 | "1",
13 | "1",
14 | "0205"
15 | ]
16 | },
17 | {
18 | "author": "Grigori Fursin",
19 | "author_email": "Grigori.Fursin@cTuning.org",
20 | "author_webpage": "http://fursin.net",
21 | "copyright": "See CK COPYRIGHT.txt for copyright details",
22 | "engine": "CK",
23 | "iso_datetime": "2015-04-18T19:04:10.551734",
24 | "license": "See CK LICENSE.txt for licensing details",
25 | "version": [
26 | "1",
27 | "1",
28 | "0205"
29 | ]
30 | },
31 | {
32 | "author": "Grigori Fursin",
33 | "author_email": "Grigori.Fursin@cTuning.org",
34 | "author_webpage": "http://fursin.net",
35 | "copyright": "See CK COPYRIGHT.txt for copyright details",
36 | "engine": "CK",
37 | "iso_datetime": "2017-11-22T16:48:40.777511",
38 | "license": "See CK LICENSE.txt for licensing details",
39 | "version": [
40 | "1",
41 | "9",
42 | "4",
43 | "1"
44 | ]
45 | }
46 | ]
47 | }
48 |
--------------------------------------------------------------------------------
/module/model.image.classification/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "ask_ai_web": {
4 | "desc": "classify user images to crowd-tune CK-DNN and create collective training set",
5 | "for_web": "yes"
6 | },
7 | "dashboard": {
8 | "desc": "open dashboard"
9 | },
10 | "html_viewer": {
11 | "desc": "user-friendly html view",
12 | "for_web": "yes"
13 | },
14 | "show": {
15 | "desc": "show dashboard",
16 | "for_web": "yes"
17 | },
18 | "show_json": {
19 | "desc": "return json instead of html",
20 | "for_web": "yes"
21 | }
22 | },
23 | "classify_program": {
24 | "caffe": "569404c41618603a",
25 | "caffe2": "883cc4dde19eb5b8",
26 | "tensorflow": "62de6ce26934e3eb"
27 | },
28 | "copyright": "See CK COPYRIGHT.txt for copyright details",
29 | "desc": "classify image using various models such as DNN",
30 | "developer": "Grigori Fursin",
31 | "developer_email": "Grigori.Fursin@cTuning.org",
32 | "developer_webpage": "http://fursin.net",
33 | "license": "See CK LICENSE.txt for licensing details",
34 | "module_deps": {
35 | "env": "9b9b3208ac44b891",
36 | "module": "032630d041b4fd8a",
37 | "package": "1dc07ee0f4742028",
38 | "platform": "707ccdfe444cafac",
39 | "program": "b0ac08fe1d3c2615",
40 | "wfe": "1e4e644996b7f2a0"
41 | },
42 | "tags": [
43 | "ck-ai-json-web-api"
44 | ],
45 | "workflow": "yes",
46 | "workflow_type": "universal image classification pipeline"
47 | }
48 |
--------------------------------------------------------------------------------
/module/advice/.cm/updates.json:
--------------------------------------------------------------------------------
1 | {
2 | "control": [
3 | {
4 | "author": "Grigori Fursin",
5 | "author_email": "Grigori.Fursin@cTuning.org",
6 | "author_webpage": "http://fursin.net",
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "engine": "CK",
9 | "iso_datetime": "2017-04-30T11:48:09.522020",
10 | "license": "See CK LICENSE.txt for licensing details",
11 | "version": [
12 | "1",
13 | "9",
14 | "1",
15 | "1"
16 | ]
17 | },
18 | {
19 | "author": "Grigori Fursin",
20 | "author_email": "Grigori.Fursin@cTuning.org",
21 | "author_webpage": "http://fursin.net",
22 | "copyright": "See CK COPYRIGHT.txt for copyright details",
23 | "engine": "CK",
24 | "iso_datetime": "2017-04-30T14:40:22.609988",
25 | "license": "See CK LICENSE.txt for licensing details",
26 | "version": [
27 | "1",
28 | "9",
29 | "1",
30 | "1"
31 | ]
32 | },
33 | {
34 | "author": "Grigori Fursin",
35 | "author_email": "Grigori.Fursin@cTuning.org",
36 | "author_webpage": "http://fursin.net",
37 | "copyright": "See CK COPYRIGHT.txt for copyright details",
38 | "engine": "CK",
39 | "iso_datetime": "2017-05-06T00:16:43.595265",
40 | "license": "See CK LICENSE.txt for licensing details",
41 | "version": [
42 | "1",
43 | "9",
44 | "1",
45 | "1"
46 | ]
47 | }
48 | ]
49 | }
50 |
--------------------------------------------------------------------------------
/module/graph/third-party/d3/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2010-2015, Michael Bostock
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions are met:
6 |
7 | * Redistributions of source code must retain the above copyright notice, this
8 | list of conditions and the following disclaimer.
9 |
10 | * Redistributions in binary form must reproduce the above copyright notice,
11 | this list of conditions and the following disclaimer in the documentation
12 | and/or other materials provided with the distribution.
13 |
14 | * The name Michael Bostock may not be used to endorse or promote products
15 | derived from this software without specific prior written permission.
16 |
17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 | DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
21 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24 | OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 |
--------------------------------------------------------------------------------
/CONTRIBUTIONS:
--------------------------------------------------------------------------------
1 | CK uses standard 3-clause (new) BSD license. Contributions are welcome to
2 | either improve existing functionality or add new functionality possibly using
3 | new modules.
4 |
5 | Contributors should clearly mark their contributions including date and remark.
6 |
7 | This is still a relatively new project so we still discuss how to make
8 | contributions easy and efficient.
9 |
10 | For now, patches can be sent directly to the collective-knowledge@googlegroups.com
11 |
12 | Bugs can be reported here:
13 | * https://github.com/ctuning/ck/issues
14 |
15 | Thank you for your interest!
16 |
17 | =================================================================================
18 | Acknowledgments:
19 |
20 | N: Grigori Fursin
21 | E: Grigori.Fursin@cTuning.org
22 | H: http://fursin.net
23 | O: cTuning foundation
24 | C: original concept and design
25 | W: since Nov.1, 2014
26 |
27 | N: Anton Lokhmotov
28 | E: anton@dividiti.com
29 | H: https://www.hipeac.net/~anton
30 | O: dividiti, UK
31 | C: feedback, use cases
32 | W:
33 |
34 | N: Sergey Yakushkin
35 | E:
36 | O: Synopsys
37 | C: feedback, suggestions
38 | W:
39 |
40 | N: Andrei Lascu
41 | E: andrei.lascu10@imperial.ac.uk
42 | O: Imperial College, UK
43 | C: including clsmith to CK (OpenCL compiler testing)
44 | W:
45 |
46 | N: Stuart Taylor
47 | E:
48 | H:
49 | O: ARM
50 | C: Suggestions about rebuilding deps during experiment replay from package UOA
51 | W:
52 |
53 | N: Leo Gordon
54 | E:
55 | H:
56 | O:
57 | C: Suggestions about minimizing repo deps
58 | W:
59 |
60 | N: Wen Yang
61 | E: GitHub: @w-simon
62 | O:
63 | C: improving autotuning documentation and fixing bugs; added max_imp in stat_analysis
64 | W:
65 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) cTuning foundation
2 | All rights reserved
3 |
4 | Redistribution and use in source and binary forms, with or without modification,
5 | are permitted provided that the following conditions are met:
6 |
7 | 1. Redistributions of source code must retain the above copyright notice,
8 | this list of conditions and the following disclaimer.
9 |
10 | 2. Redistributions in binary form must reproduce the above copyright
11 | notice, this list of conditions and the following disclaimer in the
12 | documentation and/or other materials provided with the distribution.
13 |
14 | 3. Neither the name of Grigori Fursin and CTUNING FOUNDATION
15 | nor the names of its contributors may be used to endorse
16 | or promote products derived from this software without
17 | specific prior written permission.
18 |
19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
23 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
26 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 |
30 | ********************************************************************************
31 | For interactive articles and graphs, we included minimal D3 library in
32 | * module/graph/third-party/d3
33 | with a simplfied 3-clause BSD license (the same as CK license)
34 |
--------------------------------------------------------------------------------
/wfe/ck-ai-basic/template.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | $#title#$
9 |
10 | $#ck_styles#$
11 |
12 |
13 |
14 |
15 |
16 |
17 |
Collaborative AI powered by Collective Knowledge beta
18 |
19 |
20 |
21 | $#template_top#$
22 |
23 |
24 | $#template_middle#$
25 |
26 | $#template_middle_finish#$
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
58 |
59 |
60 |
61 |
62 | $#template_end#$
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/module/experiment/.cm/updates.json:
--------------------------------------------------------------------------------
1 | {
2 | "control": [
3 | {
4 | "author": "Grigori Fursin",
5 | "author_email": "Grigori.Fursin@cTuning.org",
6 | "author_webpage": "http://fursin.net",
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "engine": "CK",
9 | "iso_datetime": "2017-10-05T09:38:54.929949",
10 | "license": "See CK LICENSE.txt for licensing details",
11 | "version": [
12 | "1",
13 | "9",
14 | "2",
15 | "1"
16 | ]
17 | },
18 | {
19 | "author": "Grigori Fursin",
20 | "author_email": "Grigori.Fursin@cTuning.org",
21 | "author_webpage": "http://fursin.net",
22 | "copyright": "See CK COPYRIGHT.txt for copyright details",
23 | "engine": "CK",
24 | "iso_datetime": "2017-10-06T11:31:51.169307",
25 | "license": "See CK LICENSE.txt for licensing details",
26 | "version": [
27 | "1",
28 | "9",
29 | "2",
30 | "1"
31 | ]
32 | },
33 | {
34 | "author": "Grigori Fursin",
35 | "author_email": "Grigori.Fursin@cTuning.org",
36 | "author_webpage": "http://fursin.net",
37 | "copyright": "See CK COPYRIGHT.txt for copyright details",
38 | "engine": "CK",
39 | "iso_datetime": "2017-10-06T14:45:16.894081",
40 | "license": "See CK LICENSE.txt for licensing details",
41 | "version": [
42 | "1",
43 | "9",
44 | "2",
45 | "1"
46 | ]
47 | },
48 | {
49 | "author": "Grigori Fursin",
50 | "author_email": "Grigori.Fursin@cTuning.org",
51 | "author_webpage": "http://fursin.net",
52 | "copyright": "See CK COPYRIGHT.txt for copyright details",
53 | "engine": "CK",
54 | "iso_datetime": "2017-10-06T14:51:11.726703",
55 | "license": "See CK LICENSE.txt for licensing details",
56 | "version": [
57 | "1",
58 | "9",
59 | "2",
60 | "1"
61 | ]
62 | }
63 | ]
64 | }
65 |
--------------------------------------------------------------------------------
/module/graph/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "continuous_plot": {
4 | "desc": "update plot periodically (useful to demonstrate continuous experiments and active learning)"
5 | },
6 | "html_viewer": {
7 | "desc": "view graph in html",
8 | "for_web": "yes"
9 | },
10 | "plot": {
11 | "desc": "plot graph",
12 | "for_web": "yes"
13 | },
14 | "replay": {
15 | "desc": "replay saved graph (to always keep default graphs for interactive papers)"
16 | }
17 | },
18 | "author": "Grigori Fursin",
19 | "author_email": "Grigori.Fursin@cTuning.org",
20 | "author_webpage": "http://fursin.net",
21 | "copyright": "See CK COPYRIGHT.txt for copyright details",
22 | "desc": "universal graphs for experiments",
23 | "license": "See CK LICENSE.txt for licensing details",
24 | "module_deps": {
25 | "experiment": "bc0409fb61f0aa82",
26 | "math.variation": "d3b13388e6152da7",
27 | "module": "032630d041b4fd8a",
28 | "wfe": "1e4e644996b7f2a0"
29 | },
30 | "mpl_point_styles": [
31 | {
32 | "color": "#3366cc",
33 | "marker": "o",
34 | "size": "30"
35 | },
36 | {
37 | "color": "#dc3912",
38 | "marker": "s",
39 | "size": "30"
40 | },
41 | {
42 | "color": "#ff9900",
43 | "marker": "+",
44 | "size": "30"
45 | },
46 | {
47 | "color": "#109618",
48 | "marker": "p",
49 | "size": "30"
50 | },
51 | {
52 | "color": "#990099",
53 | "marker": "d",
54 | "size": "30"
55 | },
56 | {
57 | "color": "#0099c6",
58 | "marker": "v",
59 | "size": "30"
60 | },
61 | {
62 | "color": "#dd4477",
63 | "marker": "v",
64 | "size": "30"
65 | },
66 | {
67 | "color": "#66aa00",
68 | "marker": "v",
69 | "size": "30"
70 | }
71 | ],
72 | "remove_keys_for_interactive_graphs": [
73 | "action",
74 | "cid",
75 | "cids",
76 | "module_uoa",
77 | "out",
78 | "out_common_meta",
79 | "out_data_uoa",
80 | "out_graph_extra_meta",
81 | "out_id",
82 | "out_repo_uoa",
83 | "out_to_file",
84 | "save_to_style",
85 | "xcids"
86 | ]
87 | }
88 |
--------------------------------------------------------------------------------
/module/graph/module_shifted_colormap.py:
--------------------------------------------------------------------------------
1 | #
2 | # Added from https://stackoverflow.com/questions/7404116/defining-the-midpoint-of-a-colormap-in-matplotlib
3 | # to shift color maps
4 | #
5 | # Author: https://stackoverflow.com/users/1552748/paul-h
6 | # StackOverFlow License: CC BY-SA 3.0
7 | #
8 |
9 | import numpy as np
10 | import matplotlib
11 | import matplotlib.pyplot as plt
12 | from mpl_toolkits.axes_grid1 import AxesGrid
13 |
14 | def shiftedColorMap(cmap, start=0, midpoint=0.5, stop=1.0, name='shiftedcmap'):
15 | '''
16 | Function to offset the "center" of a colormap. Useful for
17 | data with a negative min and positive max and you want the
18 | middle of the colormap's dynamic range to be at zero
19 |
20 | Input
21 | -----
22 | cmap : The matplotlib colormap to be altered
23 | start : Offset from lowest point in the colormap's range.
24 | Defaults to 0.0 (no lower ofset). Should be between
25 | 0.0 and `midpoint`.
26 | midpoint : The new center of the colormap. Defaults to
27 | 0.5 (no shift). Should be between 0.0 and 1.0. In
28 | general, this should be 1 - vmax/(vmax + abs(vmin))
29 | For example if your data range from -15.0 to +5.0 and
30 | you want the center of the colormap at 0.0, `midpoint`
31 | should be set to 1 - 5/(5 + 15)) or 0.75
32 | stop : Offset from highets point in the colormap's range.
33 | Defaults to 1.0 (no upper ofset). Should be between
34 | `midpoint` and 1.0.
35 | '''
36 |
37 | cdict = {
38 | 'red': [],
39 | 'green': [],
40 | 'blue': [],
41 | 'alpha': []
42 | }
43 |
44 | # regular index to compute the colors
45 | reg_index = np.linspace(start, stop, 257)
46 |
47 | # shifted index to match the data
48 | shift_index = np.hstack([
49 | np.linspace(0.0, midpoint, 128, endpoint=False),
50 | np.linspace(midpoint, 1.0, 129, endpoint=True)
51 | ])
52 |
53 | for ri, si in zip(reg_index, shift_index):
54 | r, g, b, a = cmap(ri)
55 |
56 | cdict['red'].append((si, r, r))
57 | cdict['green'].append((si, g, g))
58 | cdict['blue'].append((si, b, b))
59 | cdict['alpha'].append((si, a, a))
60 |
61 | newcmap = matplotlib.colors.LinearSegmentedColormap(name, cdict)
62 | plt.register_cmap(cmap=newcmap)
63 |
64 | return newcmap
65 |
--------------------------------------------------------------------------------
/module/math.variation/.cm/updates.json:
--------------------------------------------------------------------------------
1 | {
2 | "control": [
3 | {
4 | "author": "Grigori Fursin",
5 | "author_email": "Grigori.Fursin@cTuning.org",
6 | "author_webpage": "http://fursin.net",
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "engine": "CK",
9 | "iso_datetime": "2015-04-06T01:12:53.391000",
10 | "license": "See CK LICENSE.txt for licensing details",
11 | "version": [
12 | "1",
13 | "1",
14 | "0205"
15 | ]
16 | },
17 | {
18 | "author": "Grigori Fursin",
19 | "author_email": "Grigori.Fursin@cTuning.org",
20 | "author_webpage": "http://fursin.net",
21 | "copyright": "See CK COPYRIGHT.txt for copyright details",
22 | "engine": "CK",
23 | "iso_datetime": "2015-04-18T19:04:10.549485",
24 | "license": "See CK LICENSE.txt for licensing details",
25 | "version": [
26 | "1",
27 | "1",
28 | "0205"
29 | ]
30 | },
31 | {
32 | "author": "Grigori Fursin",
33 | "author_email": "Grigori.Fursin@cTuning.org",
34 | "author_webpage": "http://fursin.net",
35 | "copyright": "See CK COPYRIGHT.txt for copyright details",
36 | "engine": "CK",
37 | "iso_datetime": "2016-05-24T15:59:04.349000",
38 | "license": "See CK LICENSE.txt for licensing details",
39 | "version": [
40 | "1",
41 | "7",
42 | "2dev"
43 | ]
44 | },
45 | {
46 | "author": "cTuning foundation",
47 | "author_email": "admin@cTuning.org",
48 | "author_webpage": "http://cTuning.org",
49 | "copyright": "See CK COPYRIGHT.txt for copyright details",
50 | "engine": "CK",
51 | "iso_datetime": "2016-07-26T15:12:50.271012",
52 | "license": "See CK LICENSE.txt for licensing details",
53 | "version": [
54 | "1",
55 | "7",
56 | "3dev"
57 | ]
58 | },
59 | {
60 | "author": "Grigori Fursin",
61 | "author_email": "Grigori.Fursin@cTuning.org",
62 | "author_webpage": "http://fursin.net",
63 | "copyright": "See CK COPYRIGHT.txt for copyright details",
64 | "engine": "CK",
65 | "iso_datetime": "2017-07-30T15:31:59.943580",
66 | "license": "See CK LICENSE.txt for licensing details",
67 | "version": [
68 | "1",
69 | "9",
70 | "1",
71 | "1"
72 | ]
73 | }
74 | ]
75 | }
76 |
--------------------------------------------------------------------------------
/module/model.image.classification/.cm/updates.json:
--------------------------------------------------------------------------------
1 | {
2 | "control": [
3 | {
4 | "author": "Grigori Fursin",
5 | "author_email": "Grigori.Fursin@cTuning.org",
6 | "author_webpage": "http://fursin.net",
7 | "copyright": "See CK COPYRIGHT.txt for copyright details",
8 | "engine": "CK",
9 | "iso_datetime": "2017-05-05T10:09:05.761206",
10 | "license": "See CK LICENSE.txt for licensing details",
11 | "version": [
12 | "1",
13 | "9",
14 | "1",
15 | "1"
16 | ]
17 | },
18 | {
19 | "author": "Grigori Fursin",
20 | "author_email": "Grigori.Fursin@cTuning.org",
21 | "author_webpage": "http://fursin.net",
22 | "copyright": "See CK COPYRIGHT.txt for copyright details",
23 | "engine": "CK",
24 | "iso_datetime": "2017-05-05T10:10:00.853145",
25 | "license": "See CK LICENSE.txt for licensing details",
26 | "version": [
27 | "1",
28 | "9",
29 | "1",
30 | "1"
31 | ]
32 | },
33 | {
34 | "author": "Grigori Fursin",
35 | "author_email": "Grigori.Fursin@cTuning.org",
36 | "author_webpage": "http://fursin.net",
37 | "copyright": "See CK COPYRIGHT.txt for copyright details",
38 | "engine": "CK",
39 | "iso_datetime": "2017-05-05T10:10:49.708453",
40 | "license": "See CK LICENSE.txt for licensing details",
41 | "version": [
42 | "1",
43 | "9",
44 | "1",
45 | "1"
46 | ]
47 | },
48 | {
49 | "author": "Grigori Fursin",
50 | "author_email": "Grigori.Fursin@cTuning.org",
51 | "author_webpage": "http://fursin.net",
52 | "copyright": "See CK COPYRIGHT.txt for copyright details",
53 | "engine": "CK",
54 | "iso_datetime": "2017-05-06T13:42:53.183735",
55 | "license": "See CK LICENSE.txt for licensing details",
56 | "version": [
57 | "1",
58 | "9",
59 | "1",
60 | "1"
61 | ]
62 | },
63 | {
64 | "author": "Grigori Fursin",
65 | "author_email": "Grigori.Fursin@cTuning.org",
66 | "author_webpage": "http://fursin.net",
67 | "copyright": "See CK COPYRIGHT.txt for copyright details",
68 | "engine": "CK",
69 | "iso_datetime": "2017-05-06T13:45:10.595858",
70 | "license": "See CK LICENSE.txt for licensing details",
71 | "version": [
72 | "1",
73 | "9",
74 | "1",
75 | "1"
76 | ]
77 | },
78 | {
79 | "author": "Grigori Fursin",
80 | "author_email": "Grigori.Fursin@cTuning.org",
81 | "author_webpage": "http://fursin.net",
82 | "copyright": "See CK COPYRIGHT.txt for copyright details",
83 | "engine": "CK",
84 | "iso_datetime": "2017-05-14T22:37:17.559529",
85 | "license": "See CK LICENSE.txt for licensing details",
86 | "version": [
87 | "1",
88 | "9",
89 | "1",
90 | "1"
91 | ]
92 | }
93 | ]
94 | }
95 |
--------------------------------------------------------------------------------
/module/experiment/.cm/meta.json:
--------------------------------------------------------------------------------
1 | {
2 | "actions": {
3 | "add": {
4 | "desc": "process and add experiment",
5 | "for_web": "yes"
6 | },
7 | "browse": {
8 | "desc": "open browser and view experiment details"
9 | },
10 | "convert_table_to_csv": {
11 | "desc": "Convert experiment table to CSV",
12 | "for_web": "yes"
13 | },
14 | "crowdsource": {
15 | "desc": "crowdsource experiments"
16 | },
17 | "delete_points": {
18 | "desc": "delete multiple points from multiple entries"
19 | },
20 | "filter": {
21 | "desc": "filter / pre-process data"
22 | },
23 | "get": {
24 | "desc": "get points from multiple entries",
25 | "for_web": "yes"
26 | },
27 | "get_all_meta": {
28 | "desc": "get all meta information from all entries"
29 | },
30 | "get_and_cache_results": {
31 | "desc": "get and cache experimental results"
32 | },
33 | "get_log_path": {
34 | "desc": "get log path"
35 | },
36 | "get_unique_keys_from_list": {
37 | "desc": "get unique keys from list of experiments"
38 | },
39 | "html_viewer": {
40 | "desc": "view experiment as html",
41 | "for_web": "yes"
42 | },
43 | "list_points": {
44 | "desc": "list all points in a given entry"
45 | },
46 | "load_pipeline": {
47 | "desc": "load pipeline info (id and dictionary contents)"
48 | },
49 | "load_point": {
50 | "desc": "load all info about a given point (and subpoint)"
51 | },
52 | "log": {
53 | "desc": "log experiments"
54 | },
55 | "multi_stat_analysis": {
56 | "desc": "perform statistical analysis (with multiple points at the same time)"
57 | },
58 | "pack": {
59 | "desc": "pack experiments"
60 | },
61 | "prepare_html_selector": {
62 | "desc": "prepare HTML selector"
63 | },
64 | "prepare_selector": {
65 | "desc": "prepare first level of experiments with pruning"
66 | },
67 | "replay": {
68 | "desc": "replay experiment == the same as reproduce"
69 | },
70 | "reproduce": {
71 | "desc": "reproduce/replay/rerun a given experiment"
72 | },
73 | "rerun": {
74 | "desc": "rerun experiment == the same as reproduce"
75 | },
76 | "sort_table": {
77 | "desc": "sort table, substitute index with a sequence (html)",
78 | "for_web": "yes"
79 | },
80 | "stat_analysis": {
81 | "desc": "process multiple experimental results and perform statistial analysis (including expected values)",
82 | "for_web": "yes"
83 | },
84 | "substitute_x_with_loop": {
85 | "desc": "substitute x axis in table with a sequence",
86 | "for_web": "yes"
87 | }
88 | },
89 | "author": "Grigori Fursin",
90 | "author_email": "Grigori.Fursin@cTuning.org",
91 | "author_webpage": "http://fursin.net",
92 | "copyright": "See CK COPYRIGHT.txt for copyright details",
93 | "crowdsource_path": "CK-CROWDSOURCING",
94 | "desc": "universal experiment entries",
95 | "env_key_crowdsource_path": "CK_CROWDSOURCE_PATH",
96 | "license": "See CK LICENSE.txt for licensing details",
97 | "log_file_generate": "log.generate.txt",
98 | "module_deps": {
99 | "experiment.view": "e7c9e42ba8edace0",
100 | "math.variation": "d3b13388e6152da7",
101 | "module": "032630d041b4fd8a",
102 | "pipeline": "db25414b48b4ffb3",
103 | "web": "c480461384765c78",
104 | "wfe": "1e4e644996b7f2a0"
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/module/jnotebook/module.py:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (Jupyter Notebook)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK COPYRIGHT.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net
8 | #
9 |
10 | cfg={} # Will be updated by CK (meta description of this module)
11 | work={} # Will be updated by CK (temporal data)
12 | ck=None # Will be updated by CK (initialized CK kernel)
13 |
14 | # Local settings
15 |
16 | ##############################################################################
17 | # Initialize module
18 |
19 | def init(i):
20 | """
21 |
22 | Input: {}
23 |
24 | Output: {
25 | return - return code = 0, if successful
26 | > 0, if error
27 | (error) - error text if return > 0
28 | }
29 |
30 | """
31 | return {'return':0}
32 |
33 | ##############################################################################
34 | # remote output from Jupyter Notebook
35 |
36 | def clean(i):
37 | """
38 | Input: {
39 | file_in - input jupyter notebook file
40 | (file_out) - output jupyter notebook file (otherwise {in}.out
41 | }
42 |
43 | Output: {
44 | return - return code = 0, if successful
45 | > 0, if error
46 | (error) - error text if return > 0
47 | }
48 |
49 | """
50 |
51 | o=i.get('out','')
52 |
53 | fin=i.get('file_in','')
54 | if fin=='':
55 | return {'return':1, 'error':'Usage: ck clean jnotebook --in={juypter notebook file} (--out={output file})'}
56 |
57 | fout=i.get('file_out','')
58 | if fout=='':
59 | fout=fin+'.out'
60 |
61 | r=ck.load_json_file({'json_file':fin})
62 | if r['return']>0: return r
63 |
64 | d=r['dict']
65 |
66 | cells=d['cells']
67 |
68 | for ic in range(0,len(cells)):
69 | c=cells[ic]
70 | if 'outputs' in c:
71 | c['outputs']=[]
72 | cells[ic]=c
73 |
74 | r=ck.save_json_to_file({'json_file':fout, 'dict':d})
75 | if r['return']>0: return r
76 |
77 | if o=='con':
78 | ck.out('Output file: '+fout)
79 |
80 | return {'return':0}
81 |
82 | ##############################################################################
83 | # run Jupyter Notebook from a CK entry
84 |
85 | def run(i):
86 | """
87 | Input: {
88 | data_uoa - CK Jupyter notebook entry
89 | (name) - full name of file (if more than one)
90 |
91 | (original) - if 'yes', do not generate tmp file
92 | }
93 |
94 | Output: {
95 | return - return code = 0, if successful
96 | > 0, if error
97 | (error) - error text if return > 0
98 | }
99 |
100 | """
101 |
102 | import os
103 | import shutil
104 |
105 | duoa=i.get('data_uoa','')
106 | if duoa=='':
107 | return {'return':1, 'error':'Usage: ck run jnotebook:{UOA} (--name={notebook filename if more than one}'}
108 |
109 | r=ck.access({'action':'load',
110 | 'module_uoa':work['self_module_uid'],
111 | 'data_uoa':duoa})
112 | if r['return']>0: return r
113 |
114 | p=r['path']
115 |
116 | name=i.get('name','')
117 | if name=='':
118 | ld=os.listdir(p)
119 | nbs=[]
120 | for f in ld:
121 | if f.endswith('.ipynb'):
122 | nbs.append(f)
123 | if len(nbs)==0:
124 | return {'return':1, 'error':'can\'t find \ipython/jupyter notebooks in the CK entry'}
125 | name=nbs[0]
126 |
127 | # Check if need tmp file or not
128 | ff=os.path.join(p,name)
129 | if i.get('original','')!='yes':
130 | rx=ck.gen_tmp_file({'prefix':'tmp-', 'suffix':'.ipynb', 'remove_dir':'no'})
131 | if rx['return']>0: return rx
132 | ftmp=rx['file_name']
133 |
134 | shutil.copy(ff, ftmp)
135 | ff=ftmp
136 |
137 | cmd='jupyter notebook '+ff
138 | os.system(cmd)
139 |
140 | return {'return':0}
141 |
--------------------------------------------------------------------------------
/module/math.conditions/module.py:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (check conditions)
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK COPYRIGHT.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net
8 | #
9 |
10 | cfg={} # Will be updated by CK (meta description of this module)
11 | work={} # Will be updated by CK (temporal data)
12 | ck=None # Will be updated by CK (initialized CK kernel)
13 |
14 | # Local settings
15 |
16 | ##############################################################################
17 | # Initialize module
18 |
19 | def init(i):
20 | """
21 |
22 | Input: {}
23 |
24 | Output: {
25 | return - return code = 0, if successful
26 | > 0, if error
27 | (error) - error text if return > 0
28 | }
29 |
30 | """
31 | return {'return':0}
32 |
33 | ##############################################################################
34 | # check conditions
35 |
36 | def check(i):
37 | """
38 | Input: {
39 | original_points - dict with original points
40 | new_points - dict with new points
41 | results - results for all points (from experiment)
42 | conditions - list of conditions
43 | (middle_key) - add this to keys in conditions (min, exp, mean, etc)
44 | }
45 |
46 | Output: {
47 | return - return code = 0, if successful
48 | > 0, if error
49 | (error) - error text if return > 0
50 |
51 | good_points - list of good points
52 | points_to_delete - list of new points to delete
53 |
54 | keys - list of checked keys
55 | }
56 |
57 | """
58 |
59 | o=i.get('out','')
60 |
61 | points1=i.get('original_points',[])
62 | points2=i['new_points']
63 | cc=i['conditions']
64 | results=i['results']
65 |
66 | mk=i.get('middle_key','')
67 | if mk=='': mk='#min'
68 |
69 | new=False
70 | points=[] # good points (with correct conditions)
71 | dpoints=[] # points to delete if do not match conditions
72 |
73 | # Check keys
74 | keys=[]
75 | for c in cc:
76 | if len(c)!=4:
77 | import json
78 | return {'return':1, 'error':'condition length !=4 ('+json.dumps(c)+')'}
79 |
80 | kt=(c[0]+c[1]).replace('$#objective#$',mk)
81 | if kt not in keys:
82 | keys.append(kt)
83 |
84 | if o=='con':
85 | ck.out('')
86 |
87 | # Check conditions
88 | for q in points2:
89 | if q not in points1:
90 | # Find point in results
91 | qq={}
92 | for k in results:
93 | if k.get('point_uid','')==q:
94 | qq=k
95 | break
96 |
97 | if len(qq)>0:
98 | fine=True
99 | # Go over conditions
100 |
101 | for c in cc:
102 | kt=(c[0]+c[1]).replace('$#objective#$',mk)
103 |
104 | if kt not in keys:
105 | keys.append(kt)
106 |
107 | x=c[2]
108 | y=c[3]
109 |
110 | behavior=qq.get('flat',{})
111 |
112 | dv=behavior.get(kt,None)
113 |
114 | s=' - Condition on "'+kt+' '+str(x)+' '+str(y)+'" : '
115 |
116 | if dv==None:
117 | fine=False
118 |
119 | if fine and x=='<' and dv>=y:
120 | fine=False
121 |
122 | if fine and (x=='<=' or x=='=<') and dv>y:
123 | fine=False
124 |
125 | if fine and x=='==' and dv!=y:
126 | fine=False
127 |
128 | if fine and x=='!=' and dv==y:
129 | fine=False
130 |
131 | if fine and x=='>' and dv<=y:
132 | fine=False
133 |
134 | if fine and (x=='>=' or x=='=>') and dv
2 |
3 |
162 |
--------------------------------------------------------------------------------
/module/math.frontier/module.py:
--------------------------------------------------------------------------------
1 | #
2 | # Collective Knowledge (detect frontier for multi-objective optimizations (such as execution time vs energy vs code size vs faults vs price ...))
3 | #
4 | # See CK LICENSE.txt for licensing details
5 | # See CK COPYRIGHT.txt for copyright details
6 | #
7 | # Developer: Grigori Fursin, Grigori.Fursin@cTuning.org, http://fursin.net
8 | #
9 |
10 | cfg={} # Will be updated by CK (meta description of this module)
11 | work={} # Will be updated by CK (temporal data)
12 | ck=None # Will be updated by CK (initialized CK kernel)
13 |
14 | # Local settings
15 |
16 | ##############################################################################
17 | # Initialize module
18 |
19 | def init(i):
20 | """
21 |
22 | Input: {}
23 |
24 | Output: {
25 | return - return code = 0, if successful
26 | > 0, if error
27 | (error) - error text if return > 0
28 | }
29 |
30 | """
31 | return {'return':0}
32 |
33 | ##############################################################################
34 | # Filter frontier (leave only best points) - my own greedy and probably not very optimal algorithm
35 | #
36 | # TBD: should leave only a few points otherwise can be quickly too many
37 | # particularly if more than 2 dimensions (performance, energy, size, faults)
38 | #
39 | # Note, that we minimize all dimensions. Otherwise, provide reversed dimension.
40 | #
41 | # HELP IS APPRECIATED!
42 |
43 | def filter(i):
44 | """
45 | Input: {
46 | points - dict with points, each has dict with optimization dimensions (should have the same names)
47 |
48 | (frontier_keys) - list of keys to leave only best points during multi-objective autotuning
49 | (multi-objective optimization)
50 | If omited, use all keys
51 |
52 | (reverse_keys) - list of values associated with above keys. If True, reverse sorting for a give key
53 | (by default descending) - can't be used without "frontier_keys" due to lack of order in python dicts2
54 |
55 | (margins) - list of margins when comparing values, i.e. Vold/Vnew < this number (such as 1.10 instead of 1).
56 | will be used if !=None
57 | }
58 |
59 | Output: {
60 | return - return code = 0, if successful
61 | > 0, if error
62 | (error) - error text if return > 0
63 |
64 | points - filtered points!
65 | deleted_points - deleted points
66 | }
67 |
68 | """
69 |
70 | oo=i.get('out','')
71 |
72 | points=i['points']
73 | lp=len(points)
74 |
75 | dpoints={}
76 |
77 | uids=list(points.keys())
78 |
79 | if oo=='con':
80 | ck.out('Original number of points: '+str(lp))
81 |
82 | fk=i.get('frontier_keys',[])
83 | fkr=i.get('reverse_keys',[])
84 | lrk=len(fkr)
85 |
86 | mar=i.get('margins',[])
87 | lmar=len(mar)
88 |
89 | if lp>1:
90 | for l0 in range(0,lp,1):
91 | ul0=uids[l0]
92 | if ul0!='':
93 | p0=points[ul0]
94 |
95 | # Check if there is at least one point with all better dimensions
96 |
97 | keep=True
98 |
99 | for l1 in range(0,lp,1):
100 | ul1=uids[l1]
101 | if ul1!='' and ul1!=ul0:
102 | p1=points[ul1]
103 |
104 | better=True
105 |
106 | if len(fk)>0:
107 | ks=fk
108 | else:
109 | ks=list(p0.keys())
110 |
111 | for dim in range(0, len(ks)):
112 | d0=ks[dim]
113 |
114 | v0=p0[d0]
115 | if v0!=None and v0!='':
116 | v0=float(v0)
117 |
118 | v1=p1.get(d0,None)
119 | if v1!=None and v1!='':
120 | v1=float(v1)
121 |
122 | if v1==0: v1=v0/10
123 | if v1==0: v1=0.01
124 |
125 | m=1.0
126 | if dimm:
131 | better=False
132 | break
133 | elif v0==0 or (v0/v1)max_label: max_label=q
63 | # xn_classes=len(labels)
64 | xn_classes=max_label+1
65 |
66 | xhidden_units=model_params.get('hidden_units',[])
67 | if len(xhidden_units)==0: xhidden_units=[10, 20, 10]
68 |
69 | feature_length=len(ftable[0])
70 | else:
71 | # Read ck-params.json
72 | x=os.path.join(fod, ck_params)
73 |
74 | with open(x) as f:
75 | s=f.read()
76 | dx = json.loads(s)
77 | f.close()
78 |
79 | xn_classes=dx['n_classes']
80 | feature_length=dx['feature_length']
81 | xhidden_units=dx['hidden_units']
82 |
83 | # Prepare model
84 | # Specify that all features have real-value data
85 | feature_columns = [tf.feature_column.numeric_column("x", shape=[feature_length])]
86 |
87 | classifier = tf.estimator.LinearClassifier(
88 | feature_columns=feature_columns,
89 | n_classes=xn_classes,
90 | model_dir=fod)
91 |
92 | # Use model
93 | if mode=='train':
94 | # Train model.
95 | print ('')
96 | print ('Training ...')
97 | print ('')
98 |
99 | xsteps=model_params.get('training_steps','')
100 | if xsteps=='' or xsteps==None: xsteps="2000"
101 | xsteps=int(xsteps)
102 |
103 | train_input_fn = tf.estimator.inputs.numpy_input_fn(
104 | x={"x": np.array(ftable)},
105 | y=np.array(ctable),
106 | num_epochs=None,
107 | shuffle=True)
108 |
109 | classifier.train(input_fn=train_input_fn, steps=xsteps)
110 |
111 | ftable_test=d.get('ftable_test',[])
112 | if len(ftable_test)==0: ftable_test=ftable
113 |
114 | ctable_test=d.get('ctable_test',[])
115 | if len(ctable_test)==0: ctable_test=ctable
116 |
117 | # Define the test inputs
118 | print ('')
119 | print ('Testing ...')
120 | print ('')
121 |
122 | test_input_fn = tf.estimator.inputs.numpy_input_fn(
123 | x={"x": np.array(ftable_test)},
124 | y=np.array(ctable_test),
125 | num_epochs=1,
126 | shuffle=False)
127 |
128 | # Evaluate accuracy.
129 | accuracy_score = classifier.evaluate(input_fn=test_input_fn)["accuracy"]
130 |
131 | print ('')
132 | print ('Test Accuracy: {0:f}'.format(accuracy_score))
133 | print ('')
134 |
135 | dd={'output_dir':fod,
136 | 'accuracy':float(accuracy_score),
137 | 'hidden_units':xhidden_units,
138 | 'n_classes':xn_classes,
139 | 'feature_length':feature_length}
140 |
141 | # Record model info
142 | s=json.dumps(dd,indent=2,sort_keys=True)
143 | with open(fo,'w') as f:
144 | f.write(s)
145 | f.close()
146 |
147 | # Record model info to TF model dir
148 | x=os.path.join(fod, ck_params)
149 | with open(x,'w') as f:
150 | f.write(s)
151 | f.close()
152 |
153 | ##############################################################################
154 | elif mode=='prediction':
155 | # Classify samples
156 | predict_input_fn = tf.estimator.inputs.numpy_input_fn(
157 | x={"x": np.array(ftable, dtype=np.float32)},
158 | num_epochs=1,
159 | shuffle=False)
160 |
161 | ctable=[]
162 |
163 | print ('')
164 | print ('Predictions:')
165 |
166 | predictions = list(classifier.predict(input_fn=predict_input_fn))
167 |
168 | # predictions1 = np.squeeze(predictions) # FGG: don't need it - wrong when only one entry
169 |
170 | for q in range(0, len(predictions)):
171 | print (str(q)+') '+str(np.asscalar(predictions[q]['class_ids'][0])))
172 | ctable.append(int(np.asscalar(predictions[q]['class_ids'][0])))
173 |
174 | # Record prediction
175 | dd={'ftable':ftable,
176 | 'ctable':ctable}
177 |
178 | print ('')
179 | print ('Recording results to '+fo+' ...')
180 | print ('')
181 |
182 | s=json.dumps(dd,indent=2,sort_keys=True)
183 | with open(fo,'w') as f:
184 | f.write(s)
185 | f.close()
186 |
187 | else:
188 | print ('Error in CK-TF wrapper: mode "'+mode+'" is not supported ...')
189 | exit(1)
190 |
191 | return
192 |
193 | if __name__ == "__main__":
194 | argv=sys.argv[1:]
195 |
196 | if len(argv)<2:
197 | print ('Not enough command line arguments ...')
198 | exit(1)
199 |
200 | mode=argv[0]
201 | input_file=argv[1]
202 |
203 | main({'mode':mode, 'input_file':input_file})
204 |
--------------------------------------------------------------------------------
/module/model.tf/module_dnn_linear_combined_classifier.py:
--------------------------------------------------------------------------------
1 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | """Example of DNNClassifier for Iris plant dataset.
16 | This example uses APIs in Tensorflow 1.4 or above.
17 | """
18 |
19 | # Converted by Grigori Fursin to the CK format (http://cKnowledge.org)
20 | # from https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/learn/iris.py
21 |
22 | from __future__ import absolute_import
23 | from __future__ import division
24 | from __future__ import print_function
25 |
26 | import sys
27 | import os
28 | import json
29 | import numpy as np
30 | import tensorflow as tf
31 |
32 | ck_params='ck-params.json'
33 |
34 | def main(i):
35 |
36 | mode=i['mode']
37 | fi=i['input_file']
38 |
39 | # Load input file
40 | with open(fi) as f:
41 | s=f.read()
42 | d = json.loads(s)
43 | f.close()
44 |
45 | ftable=d['ftable']
46 |
47 | ctable=d.get('ctable',[])
48 | model_params=d.get('model_params',{})
49 |
50 | fo=d['output_file']
51 | fod=d['model_dir']
52 |
53 | # Prepare model parametrs
54 | if mode=='train':
55 | # Check distinct labels
56 | labels=[]
57 | max_label=0
58 | for q1 in ctable:
59 | q=q1[0]
60 | if q not in labels:
61 | labels.append(q)
62 | if q>max_label: max_label=q
63 | # xn_classes=len(labels)
64 | xn_classes=max_label+1
65 |
66 | xhidden_units=model_params.get('hidden_units',[])
67 | if len(xhidden_units)==0: xhidden_units=[10, 20, 10]
68 |
69 | feature_length=len(ftable[0])
70 | else:
71 | # Read ck-params.json
72 | x=os.path.join(fod, ck_params)
73 |
74 | with open(x) as f:
75 | s=f.read()
76 | dx = json.loads(s)
77 | f.close()
78 |
79 | xn_classes=dx['n_classes']
80 | feature_length=dx['feature_length']
81 | xhidden_units=dx['hidden_units']
82 |
83 | # Prepare model
84 | # Specify that all features have real-value data
85 | feature_columns = [tf.feature_column.numeric_column("x", shape=[feature_length])]
86 |
87 | classifier = tf.estimator.DNNLinearCombinedClassifier(
88 | linear_feature_columns=feature_columns,
89 | dnn_feature_columns=feature_columns,
90 | dnn_hidden_units=xhidden_units,
91 | n_classes=xn_classes,
92 | model_dir=fod)
93 |
94 | # Use model
95 | if mode=='train':
96 | # Train model.
97 | print ('')
98 | print ('Training ...')
99 | print ('')
100 |
101 | xsteps=model_params.get('training_steps','')
102 | if xsteps=='' or xsteps==None: xsteps="2000"
103 | xsteps=int(xsteps)
104 |
105 | train_input_fn = tf.estimator.inputs.numpy_input_fn(
106 | x={"x": np.array(ftable)},
107 | y=np.array(ctable),
108 | num_epochs=None,
109 | shuffle=True)
110 |
111 | classifier.train(input_fn=train_input_fn, steps=xsteps)
112 |
113 | ftable_test=d.get('ftable_test',[])
114 | if len(ftable_test)==0: ftable_test=ftable
115 |
116 | ctable_test=d.get('ctable_test',[])
117 | if len(ctable_test)==0: ctable_test=ctable
118 |
119 | # Define the test inputs
120 | print ('')
121 | print ('Testing ...')
122 | print ('')
123 |
124 | test_input_fn = tf.estimator.inputs.numpy_input_fn(
125 | x={"x": np.array(ftable_test)},
126 | y=np.array(ctable_test),
127 | num_epochs=1,
128 | shuffle=False)
129 |
130 | # Evaluate accuracy.
131 | accuracy_score = classifier.evaluate(input_fn=test_input_fn)["accuracy"]
132 |
133 | print ('')
134 | print ('Test Accuracy: {0:f}'.format(accuracy_score))
135 | print ('')
136 |
137 | dd={'output_dir':fod,
138 | 'accuracy':float(accuracy_score),
139 | 'hidden_units':xhidden_units,
140 | 'n_classes':xn_classes,
141 | 'feature_length':feature_length}
142 |
143 | # Record model info
144 | s=json.dumps(dd,indent=2,sort_keys=True)
145 | with open(fo,'w') as f:
146 | f.write(s)
147 | f.close()
148 |
149 | # Record model info to TF model dir
150 | x=os.path.join(fod, ck_params)
151 | with open(x,'w') as f:
152 | f.write(s)
153 | f.close()
154 |
155 | ##############################################################################
156 | elif mode=='prediction':
157 | # Classify samples
158 | predict_input_fn = tf.estimator.inputs.numpy_input_fn(
159 | x={"x": np.array(ftable, dtype=np.float32)},
160 | num_epochs=1,
161 | shuffle=False)
162 |
163 | ctable=[]
164 |
165 | print ('')
166 | print ('Predictions:')
167 |
168 | predictions = list(classifier.predict(input_fn=predict_input_fn))
169 |
170 | # predictions1 = np.squeeze(predictions) # FGG: don't need it - wrong when only one entry
171 |
172 | for q in range(0, len(predictions)):
173 | print (str(q)+') '+str(np.asscalar(predictions[q]['class_ids'][0])))
174 | ctable.append(int(np.asscalar(predictions[q]['class_ids'][0])))
175 |
176 | # Record prediction
177 | dd={'ftable':ftable,
178 | 'ctable':ctable}
179 |
180 | print ('')
181 | print ('Recording results to '+fo+' ...')
182 | print ('')
183 |
184 | s=json.dumps(dd,indent=2,sort_keys=True)
185 | with open(fo,'w') as f:
186 | f.write(s)
187 | f.close()
188 |
189 | else:
190 | print ('Error in CK-TF wrapper: mode "'+mode+'" is not supported ...')
191 | exit(1)
192 |
193 | return
194 |
195 | if __name__ == "__main__":
196 | argv=sys.argv[1:]
197 |
198 | if len(argv)<2:
199 | print ('Not enough command line arguments ...')
200 | exit(1)
201 |
202 | mode=argv[0]
203 | input_file=argv[1]
204 |
205 | main({'mode':mode, 'input_file':input_file})
206 |
--------------------------------------------------------------------------------