Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 2.89 KB

README.md

File metadata and controls

32 lines (25 loc) · 2.89 KB

BLEST-ML (BLock size ESTimation through Machine Learning) is a methodology for block size estimation that relies on supervised machine learning techniques.

BLEST-ML for dislib

This repository contains the modules implementing a Machine Learning-based solution for optimizing the execution of dislib algorithms. In particular, a stacked classification model is leveraged to predict the most suitable value of the block-size parameter for the execution of dislib algorithms.

Two modules are provided:

  • GridSearch: generate the training dataset for the Machine Learning model, starting from a log of executions of several algorithms on different datasets.
  • StackedClassifier: implements the Machine Learning model that is able to predict the most suitable value of the block-size parameter, given an algorithm to be executed and the dataset information.

An additional module, namely Main, is also provided to show how to use the aforementioned modules.

The config.json file contains all the configuration parameters, listed in the following:

  • algorithms: a JSON containing the information about all the algorithms to be executed. Each algorithm is instantiated via the reflection mechanism and requires the module and class name, along with the type of the task (supervised or not).
  • var_config: contains the general configuration.
  • number_of_row_partitions: a list containing all the partitions along rows to be tested during the grid search.
  • number_of_column_partitions: a list containing all the partitions along columns to be tested during the grid search.
  • model_path_name: the path where the trained Machine Learning model is stored.
  • training_dataset_path_name: the path where the training set, used for training the Machine Learning model, is stored.
  • execution_log_path_name: the path where the log of executions, used for creating the training dataset, is stored.
  • execution_info_path_name: the path where the file containing the information about the performed executions is stored.
  • classification_metrics_path_name: the path where the file containing the classification metrics is stored.
  • test_failed: constant to be used for the elapsed time in the case of a filed test.
  • exec_config: a JSON containing the configuration of the different executions to be performed. For each algorithm (the same key as in the "algorithm" section) a list must be provided, that contains the JSON configuration of the different executions of that algorithm. In particular, each configuration contains the path to the dataset to be used and the algorithm parameters, which are set dynamically.

How to cite

R. Cantini, F. Marozzo, A. Orsino, D. Talia, P. Trunfio, R. M. Badia, J.Ejarque, F. Vàzquez-Novoa "Block size estimation for data partitioning in HPC applications using machine learning techniques". 2023