Data visualization platform parameter configuration method and device, equipment, medium and product
By collecting and preprocessing the platform attribute data of the data visualization platform, and using machine learning models to predict configuration parameters, the problem of inflexible configuration and poor adaptability of existing tools is solved, and the flexible configuration and adaptability improvement of the data visualization platform parameters are achieved. Ensure dynamic adjustment of configuration parameters and version compatibility.
Patent Information
- Application Number
- CN202410158511.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2024-09-03
AI Technical Summary
Existing automatic parameter configuration tools for data visualization platforms cannot dynamically adjust according to specific operating environments and data changes, and have poor adaptability to different versions of data visualization platforms, resulting in inflexible and unadaptable configurations.
By collecting and preprocessing the platform attribute data of the data visualization platform, using the machine learning model to predict the configuration parameters, and generating a visual interface based on the updated parameters, the flexible configuration and adaptability improvement of the data visualization platform parameters are achieved.
It improves the adaptability of parameter configuration of the data visualization platform, ensuring that the configuration parameters can be dynamically adjusted according to the specific operating environment and data changes, adapting to different versions of the data visualization platform, simplifying the configuration process and improving platform performance.
Smart Images

Figure CN118585261A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data visualization, and in particular to a data visualization platform parameter configuration method, a data visualization platform parameter configuration device, a data visualization platform parameter configuration equipment, a computer-readable storage medium, and a computer program product. Background Art
[0002] Data visualization platforms such as Kibana and Grafana are tools that can convert data into graphical forms that are easy to understand and make decisions. During use, parameters need to be configured to generate the best visualization interface.
[0003] Currently, there are some automatic parameter configuration tools for data visualization platforms. However, these tools often configure data visualization platforms based on fixed rules and parameters. Their configuration strategies are usually hard-coded and cannot be dynamically adjusted according to specific operating environments or data changes. In addition, these automatic configuration tools often ignore the version issues of data visualization platforms and cannot automatically adapt to different types and versions of data visualization platforms. In other words, the current data visualization platforms are not flexible enough when configuring parameters and have poor adaptability to data visualization platforms. Summary of the invention
[0004] The main purpose of this application is to provide a data visualization platform parameter configuration method, a data visualization platform parameter configuration device, a data visualization platform parameter configuration equipment, a computer-readable storage medium and a computer program product, aiming to flexibly configure the parameters of the data visualization platform and improve the adaptability of parameter configuration of the data visualization platform.
[0005] To achieve the above purpose, the present application provides a method for configuring parameters of a data visualization platform, the method comprising:
[0006] Collecting and preprocessing platform attribute data of the data visualization platform to obtain input data; wherein the platform attribute data includes at least one of system performance parameters of the data visualization platform, platform type and version information of the data visualization platform, platform input data input to the data visualization platform, and chart types that the data visualization platform can provide;
[0007] Inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform, and obtaining the configuration parameters of the data visualization platform through prediction by the machine learning model;
[0008] The parameters of the data visualization platform are updated according to the configuration parameters, and a visualization interface of the data visualization platform is generated according to the updated parameters.
[0009] Exemplarily, when the platform attribute data includes system performance parameters of a data visualization platform, the step of collecting and preprocessing the platform attribute data of the data visualization platform to obtain input data includes:
[0010] Collect configuration files of the data visualization platform;
[0011] Through text mining, system performance parameters of the data visualization platform contained in the configuration file are identified; wherein the system performance parameters include at least one of the hardware performance parameters, software performance parameters, security parameters and functional parameters of the data visualization platform.
[0012] Exemplarily, before the step of inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform and predicting the configuration parameters of the data visualization platform through the machine learning model, the step includes:
[0013] The platform attribute data of the data visualization platform after collection and preprocessing is used as pending data;
[0014] Performing correlation analysis on the pending data to obtain interaction item data;
[0015] The interaction item data is used as training data to train the machine learning model to be trained, so as to obtain a machine learning model for predicting configuration parameters of the data visualization platform.
[0016] Exemplarily, after the step of using the interaction item data as training data to train the machine learning model to be trained to obtain the machine learning model for predicting the configuration parameters of the data visualization platform, the method further comprises:
[0017] Obtaining validation data for the machine learning model;
[0018] The model accuracy of the machine learning model is verified using the verification data; wherein the evaluation indicators of the model accuracy verification include binary classification features and regression features.
[0019] Exemplarily, after the step of using the interaction item data as training data to train the machine learning model to be trained to obtain the machine learning model for predicting the configuration parameters of the data visualization platform, the step further includes:
[0020] Obtaining validation data for the machine learning model;
[0021] adding random noise to the verification data to obtain new verification data; and / or using different data subsets of the verification data as new verification data;
[0022] The model stability of the machine learning model is verified using the new verification data.
[0023] Exemplarily, after the step of using the interaction item data as training data to train the machine learning model to be trained to obtain the machine learning model for predicting the configuration parameters of the data visualization platform, the step further includes:
[0024] During the training and validation process of the machine learning model, collect training metric data and validation metric data;
[0025] Generate a visual model evaluation report and model improvement suggestions based on the training indicator data and the verification indicator data.
[0026] The present application also provides a data visualization platform parameter configuration device, the data visualization platform parameter configuration device comprising:
[0027] A collection module, used to collect and pre-process the platform attribute data of the data visualization platform to obtain input data; wherein the platform attribute data includes at least one of the system performance parameters of the data visualization platform, the platform type and version information of the data visualization platform, the platform input data input to the data visualization platform, and the chart type that the data visualization platform can provide;
[0028] A prediction module, used for inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform, and obtaining the configuration parameters of the data visualization platform through prediction by the machine learning model;
[0029] The updating module is used to update the parameters of the data visualization platform according to the configuration parameters, and generate a visualization interface of the data visualization platform according to the updated parameters.
[0030] The present application also provides a data visualization platform parameter configuration device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program implements the steps of the data visualization platform parameter configuration method as described above when executed by the processor.
[0031] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data visualization platform parameter configuration method as described above are implemented.
[0032] The present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the data visualization platform parameter configuration method as described above are implemented.
[0033] The embodiments of the present application propose a data visualization platform parameter configuration method, a data visualization platform parameter configuration device, a data visualization platform parameter configuration equipment, a computer-readable storage medium and a computer program product, which collect and pre-process platform attribute data of a data visualization platform to obtain input data; wherein the platform attribute data includes system performance parameters of the data visualization platform, platform type and version information of the data visualization platform, platform input data input to the data visualization platform, and at least one of the chart types that the data visualization platform can provide; the input data is input into a machine learning model for predicting configuration parameters of the data visualization platform, and the configuration parameters of the data visualization platform are predicted by the machine learning model; the parameters of the data visualization platform are updated according to the configuration parameters, and a visualization interface of the data visualization platform is generated according to the updated parameters.
[0034] In the present application, the input data obtained by collecting and preprocessing the platform attribute data of the data visualization platform is input into a machine learning model for predicting the configuration parameters of the data visualization platform. The configuration parameters of the data visualization platform are predicted by the machine learning model, and the parameters of the data visualization platform are updated according to the predicted configuration parameters, thereby generating a visualization interface of the data visualization platform according to the updated parameters.
[0035] The platform attribute data includes at least one of the system performance parameters of the data visualization platform, the platform type and version information of the data visualization platform, the platform input data input to the data visualization platform, and the chart types that the data visualization platform can provide. The platform attribute data is flexible and can adapt to different data visualization platforms. In addition, through the cooperation of the platform attribute data and the machine learning model for predicting the configuration parameters of the data visualization platform, configuration parameters that can adapt to the specific operating environment and data changes of the data visualization platform are obtained. In this way, the parameters of the data visualization platform can be flexibly configured to improve the adaptability of parameter configuration of the data visualization platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a structural diagram of an operating device of a hardware operating environment involved in an embodiment of the present application;
[0037] Figure 2 This is a flow chart of an embodiment of a method for configuring parameters of a data visualization platform involved in an embodiment of the present application;
[0038] Figure 3 This is an application diagram of a method for configuring parameters of a data visualization platform involved in an embodiment of the present application;
[0039] Figure 4This is a schematic diagram of a data visualization platform parameter configuration device involved in an embodiment of the present application.
[0040] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] Reference Figure 1 , Figure 1 This is a schematic diagram of the operating equipment structure of the hardware operating environment involved in the embodiment of the present application.
[0043] like Figure 1 As shown, the operating device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0044] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the operating device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0045] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a computer program.
[0046] exist Figure 1In the running device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the running device of the present application can be set in the running device, and the running device calls the computer program stored in the memory 1005 through the processor 1001, and performs the following operations:
[0047] Collecting and preprocessing platform attribute data of the data visualization platform to obtain input data; wherein the platform attribute data includes at least one of system performance parameters of the data visualization platform, platform type and version information of the data visualization platform, platform input data input to the data visualization platform, and chart types that the data visualization platform can provide;
[0048] Inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform, and obtaining the configuration parameters of the data visualization platform through prediction by the machine learning model;
[0049] The parameters of the data visualization platform are updated according to the configuration parameters, and a visualization interface of the data visualization platform is generated according to the updated parameters.
[0050] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0051] When the platform attribute data includes system performance parameters of the data visualization platform, the step of collecting and preprocessing the platform attribute data of the data visualization platform to obtain input data includes:
[0052] Collect configuration files of the data visualization platform;
[0053] Through text mining, system performance parameters of the data visualization platform contained in the configuration file are identified; wherein the system performance parameters include at least one of the hardware performance parameters, software performance parameters, security parameters and functional parameters of the data visualization platform.
[0054] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0055] Before the step of inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform and predicting the configuration parameters of the data visualization platform through the machine learning model, the method further comprises:
[0056] The platform attribute data of the data visualization platform after collection and preprocessing is used as pending data;
[0057] Performing correlation analysis on the pending data to obtain interaction item data;
[0058] The interaction item data is used as training data to train the machine learning model to be trained, so as to obtain a machine learning model for predicting configuration parameters of the data visualization platform.
[0059] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0060] After the step of using the interaction item data as training data to train the machine learning model to be trained to obtain the machine learning model for predicting the configuration parameters of the data visualization platform, the method further comprises:
[0061] Obtaining validation data for the machine learning model;
[0062] The model accuracy of the machine learning model is verified using the verification data; wherein the evaluation indicators of the model accuracy verification include binary classification features and regression features.
[0063] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0064] After the step of using the interaction item data as training data to train the machine learning model to be trained to obtain a machine learning model for predicting configuration parameters of the data visualization platform, the method further includes:
[0065] Obtaining validation data for the machine learning model;
[0066] adding random noise to the verification data to obtain new verification data; and / or using different data subsets of the verification data as new verification data;
[0067] The model stability of the machine learning model is verified using the new verification data.
[0068] In one embodiment, the processor 1001 may call a computer program stored in the memory 1005 and further perform the following operations:
[0069] After the step of using the interaction item data as training data to train the machine learning model to be trained to obtain a machine learning model for predicting configuration parameters of the data visualization platform, the method further includes:
[0070] During the training and / or validation process of the machine learning model, collecting training metric data and / or validation metric data;
[0071] Generate a visual model evaluation report and / or model improvement suggestions based on the training indicator data and / or the verification indicator data.
[0072] The present application embodiment provides a method for configuring parameters of a data visualization platform, referring to Figure 2 In one embodiment of the data visualization platform parameter configuration method, the method includes:
[0073] Step S10, collecting and preprocessing platform attribute data of the data visualization platform to obtain input data; wherein the platform attribute data includes at least one of system performance parameters of the data visualization platform, platform type and version information of the data visualization platform, platform input data input to the data visualization platform, and chart types that the data visualization platform can provide;
[0074] In order to build a machine learning model for predicting the configuration parameters of the data visualization platform and realize the intelligent parameter configuration of the data visualization platform, it is necessary to first collect the required data, including but not limited to: the real-time status of the platform's hardware and software, the type and version information of the data visualization platform, as well as its internal components and tasks, the data source to be processed, the type of generated chart, etc.
[0075] In this embodiment, the collected data is platform attribute data of the data visualization platform, and the input data is obtained by collecting and preprocessing the platform attribute data of the data visualization platform.
[0076] The platform attribute data includes at least one of system performance parameters of the data visualization platform, platform type and version information of the data visualization platform, platform input data input to the data visualization platform, and chart types that can be provided by the data visualization platform;
[0077] The system performance parameters of the data visualization platform are key parameters, which can usually be divided into several categories: first, hardware performance parameters, including CPU usage, memory capacity, disk I / O speed, etc.; second, software performance parameters, such as database query speed, cache hit rate, etc.; third, security parameters, such as SSL / TLS settings, permission control, etc.; fourth, advanced function parameters, involving the selection of data analysis algorithms, visualization settings, etc.
[0078] After the data is collected, it is preprocessed. For example, in descriptive statistics, the mean and standard deviation of each parameter are calculated. In addition, key configuration parameters can be encoded for use in subsequent machine learning models. To this end, different encoding strategies are designed for different types of parameters, such as digital encoding, One-Hot encoding, normalization methods, etc.
[0079] Furthermore, in order to extract these parameters, in one embodiment, automated scripts and tools are developed and run on the target system or remotely executed. These scripts will pull configuration files from the data visualization platform regularly or on demand, and extract key parameters through predefined parsing rules and algorithms. This process also includes parameter standardization and verification to ensure data consistency and accuracy.
[0080] Furthermore, in order to ensure the accuracy of the configuration parameters, the type and version information of the data visualization platform can also be obtained and used to configure the parameters. For the accurate identification of the platform attribute data of the data visualization platform, the type and version information of the data visualization platform can be accurately identified by checking the metadata of the data visualization platform, such as plug-in information, system environment, internal components and tasks, calling specific APIs (the type and version information interface that comes with the data visualization platform) or directly reading the configuration file of the data visualization platform, so as to ensure that the parameter configuration suggestions finally outputted always match the target version.
[0081] Furthermore, in order to ensure the accuracy of the configuration parameters, the platform input data input to the data visualization platform can also be obtained and used to configure the parameters. The data input to the data visualization platform are various types of structured and unstructured data. The following are some common input data types: (1) Log data: Log data is data generated by applications, systems or devices to record events. These logs can contain information about application running status, errors, warnings, user activities, etc. Common log formats include JSON, CSV, syslog, etc. (2) Time series data: Time series data is a sequence of data points arranged in chronological order. They are usually used to record sensor data, indicator information (such as server load, network traffic, temperature, etc.) and event time series (such as transaction records, user activities, etc.). (3) Structured data: Structured data is data organized according to a predefined pattern, usually represented in a tabular form. This data can include database records, CSV files, Excel tables, etc. (4) Geospatial data: Geospatial data contains information related to geographic location, such as latitude and longitude coordinates, geographic area boundaries, etc.
[0082] Furthermore, in order to ensure the accuracy of the configuration parameters, the chart types that can be provided by the data visualization platform can also be obtained and used to configure the parameters. In one embodiment, the data visualization platform provides a variety of chart type options for visualizing and presenting data. The following are some common chart types: (1) Bar Chart: Bar charts are used to compare the quantity or numerical relationship between data of different categories or dimensions. Each category is represented by a vertical bar on the horizontal axis. (2) Line Chart: Line charts are used to display data trends that change over time. It creates a line by connecting data points and can represent multiple data series at the same time. (3) Pie Chart: Pie charts are used to display the relative proportion or proportion of data. It divides the data into sectors, and the size of each sector represents the proportion of the data of that category to the total. (4) Scatter Plot: Scatter plots are used to display the relationship between two numerical variables. Each data point is represented on a two-dimensional plane, and different shapes, colors or sizes are used to represent data of other dimensions. (5) Heatmap: Heatmaps are used to display the density and distribution of two-dimensional data. It uses color coding to represent the value of the data, with higher values represented by darker colors. (6) Dashboard: A dashboard is a collection of multiple charts and data visualization components that are used to simultaneously display multiple data indicators and related information. It provides an overall data overview and interactive control. In addition, other chart types are also supported, such as histograms, area charts, radar charts, funnel charts, etc. Kibana has a rich variety of chart types and provides flexible configuration options, allowing users to create a variety of visual charts to explore and present data according to their needs.
[0083] As described above, this embodiment provides a comprehensive and systematic method to collect data from a data visualization platform in various environments, which not only takes into account the diversity of versions, but also provides accurate and high-quality input data for subsequent model building and configuration optimization.
[0084] Exemplarily, when the platform attribute data includes system performance parameters of a data visualization platform, the step of collecting and preprocessing the platform attribute data of the data visualization platform to obtain input data includes:
[0085] Collect configuration files of the data visualization platform;
[0086] Through text mining, system performance parameters of the data visualization platform contained in the configuration file are identified; wherein the system performance parameters include at least one of the hardware performance parameters, software performance parameters, security parameters and functional parameters of the data visualization platform.
[0087] In one embodiment, when the platform attribute data includes system performance parameters of a data visualization platform, text mining is used to identify the system performance parameters of the data visualization platform contained in the collected configuration file of the data visualization platform, wherein the system performance parameters include at least one of the hardware performance parameters, software performance parameters, security parameters and functional parameters of the data visualization platform.
[0088] The configuration file is the basis for the operation of the data visualization platform. It determines the performance, security, and stability of the data visualization platform. It covers many aspects from basic server settings and security protection to more advanced data visualization parameters and plug-in management.
[0089] Furthermore, when collecting configuration files of data visualization platforms, since there are multiple types and versions of data visualization platforms, and each version of each data visualization platform has its own unique configuration requirements and optimization points, in the face of various configuration files, these files are converted into a format that is easy to process and parse, JSON, to reduce the complexity and error rate of manual operations. And integrate data from different data sources (configuration files of data visualization platforms of different types and versions) into a unified data model, and solve data heterogeneity through data integration. In addition, add appropriate classifications and tags to each configuration file. These tags can include information such as the platform, version, functional area, etc. to which the file applies, to facilitate subsequent screening and searching.
[0090] Furthermore, in order to accurately extract the key parameters of data visualization platforms such as Kibana, machine learning and natural language processing (NLP) technologies were first used to perform preliminary parameter screening and classification. Specifically, text mining algorithms, such as decision trees and support vector machines (SVMs), were used to automatically identify key fields in configuration files, such as identifying system performance parameters of data visualization platforms contained in configuration files. The datasets used to train these algorithms include a large number of configuration files aggregated from different versions and configuration environments to ensure the universality and accuracy of the algorithms.
[0091] Step S20, inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform, and obtaining the configuration parameters of the data visualization platform through prediction by the machine learning model;
[0092] In one embodiment, for the optimal configuration file prediction problem of a data visualization platform such as Kibana, a multi-layer perceptron (MLP) model is used as a machine learning model for predicting configuration parameters of the data visualization platform, and is specially designed and tuned according to the characteristics of the configuration file data set.
[0093] First, in the data preprocessing stage, the missing values are filled with mean, median or mode, or a model-based filling method is used to ensure data integrity. At the same time, outliers are identified and processed to prevent the model from being affected by extreme values. For categorical features, One-Hot encoding is used to convert them into numerical features to prepare for subsequent model training. In the model structure design stage, the appropriate number of hidden layers and nodes are selected according to the complexity of the configuration data. The weight initialization adopts the He initialization method (a robust neural network parameter initialization method) to ensure the performance of the model in the early stage of training. Select a suitable optimizer SGD and set the learning rate reasonably to ensure the stability and convergence speed of model training. To prevent overfitting, add L1, L2 regularization or Dropout layers, and adjust the parameters according to the actual effect. In terms of feature selection and dimensionality reduction, according to the characteristics of the configuration file data, necessary feature selection and dimensionality reduction are performed to reduce the complexity of the model and improve the generalization ability. Finally, in the model evaluation and hyperparameter tuning stage, cross-validation and other methods are used to evaluate the model performance, and the model hyperparameters are tuned by random search and other methods to find the optimal model configuration.
[0094] Through this comprehensive approach, we can provide a specially designed and tuned MLP model for the optimal profile prediction problem of data visualization platforms such as Kibana, thereby achieving high prediction accuracy and efficiency.
[0095] In one embodiment, a multi-layer perceptron (MLP) neural network model is used as a machine learning model for predicting configuration parameters of a data visualization platform, aiming to predict the optimal configuration file for different versions of the data visualization platform. The model is mainly composed of an input layer, one or more hidden layers, and an output layer. Among them:
[0096] 1. Input layer. The input layer receives four categories of pre-processed parameters: system performance parameters, key parameters, especially hardware performance parameters (such as "CPU usage" and "memory capacity"), the type and version information of the data visualization platform, the data input to the data visualization platform, and the type and complexity of the chart. Each input parameter is converted to a value in the range of 0-1 through normalization.
[0097] 2. Hidden layer. The hidden layer is a layer composed of one or more layers of neurons located between the input layer and the output layer, which is responsible for nonlinear transformation of the input data and extracting higher-level feature representations. Each neuron in the hidden layer receives the output from the neurons in the previous layer and performs weighted summation through the linear combination of the weight matrix and the bias term. Then, a nonlinear transformation is performed through the activation function to generate the output of the hidden layer. The role of the hidden layer is to map the input data to a higher-dimensional feature space in order to better express the characteristics and patterns of the input data.
[0098] 3. Output layer. The output layer is the last layer of the neural network. Each neuron in the output layer receives the output from the last hidden layer and generates the final prediction result of the neural network. The number of neurons in the output layer usually corresponds to the number of categories of the prediction task. Among them, the data in the output layer is the configuration information of the data visualization platform, such as the configuration information in Kibana: (1) Basic configuration. For example, server.port: the port that the Kibana service listens on; server.host: the host address that the Kibana service is bound to; elasticsearch.hosts: the URL of the Elasticsearch cluster. (2) Security. For example, elasticsearch.username: the username of Elasticsearch; elasticsearch.password: the password of Elasticsearch. (3) Log. For example, logging.dest: the log output file path; logging.verbose: whether to output detailed logs. (4) Others. For example, kibana.index: the name of the Elasticsearch index used by Kibana. xpack.monitoring.enabled: whether to enable X-Pack monitoring. In one embodiment, the output result of the output layer is:
[0099] server.port:5601;
[0100] server.host:"localhost";
[0101] elasticsearch.hosts:["http: / / localhost:9200"];
[0102] elasticsearch.username:"user";
[0103] elasticsearch.password:"pass";
[0104] logging.dest: / var / log / kibana.log.
[0105] Among them, Kibana is an open source data visualization and dashboard tool, which is mainly used for searching, viewing and interacting with Elasticsearch data. Grafana is an open source data visualization and monitoring platform, which provides powerful dashboard and chart functions for real-time monitoring, data analysis and visualization. Elasticsearch is an open source full-text search engine, which is based on the Lucene library and provides a distributed, multi-tenant full-text search engine with HTTP Web interface and schema-free JSON documents.
[0106] That is, the operation flow of the multi-layer perceptron (MLP) neural network model is as follows: the preprocessed input data first flows into the input layer, undergoes weighted summation and nonlinear transformation in the hidden layer, and then flows to the output layer for final prediction. This series of operations ensures that key configuration parameters can be effectively extracted to generate the optimal configuration for different versions of the data visualization platform. This structure and information flow are optimized through multiple rounds of iterations and cross-validation to provide highly accurate and reliable prediction results.
[0107] Step S30, updating the parameters of the data visualization platform according to the configuration parameters, and generating a visualization interface of the data visualization platform according to the updated parameters.
[0108] After determining the optimal configuration parameters, you can start updating the configuration of the data visualization platform. This can be done by modifying the configuration file or calling the API of the data visualization platform. The formula used is as follows: V =f(M V , T), where: C V is the optimal configuration of the data visualization platform version v, M V is the metadata of the data visualization platform version v, T is the version-configuration mapping table, and f is the update algorithm function.
[0109] In this way, the optimal configuration can be automatically and accurately selected and applied for different versions of the data visualization platform, simplifying the management process of the data visualization platform, reducing the risk of errors, and ensuring that each version can achieve its optimal performance. This automated and intelligent configuration management method provides strong support for the data visualization platform, making operation and maintenance tasks easier and more efficient.
[0110] Exemplarily, before the step of inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform and predicting the configuration parameters of the data visualization platform through the machine learning model, the step includes:
[0111] The platform attribute data of the data visualization platform after collection and preprocessing is used as pending data;
[0112] Performing correlation analysis on the pending data to obtain interaction item data;
[0113] The interaction item data is used as training data to train the machine learning model to be trained, so as to obtain a machine learning model for predicting configuration parameters of the data visualization platform.
[0114] In this embodiment, after feature selection is performed on the data to be determined, the machine learning model to be trained is trained. Feature selection refers to selecting the most predictive or relevant features from the original data for building a model, or performing data analysis to provide targeted system optimization suggestions. Furthermore, feature selection is performed using correlation analysis to determine the correlation between different features that affect the overall system performance.
[0115] Among them, the interaction term refers to the interaction between two or more configuration parameters or system variables. For example, data cache size and query speed may affect the overall system performance. Feature selection is performed through correlation analysis to determine the mutual influence between different configuration parameters or system variables (such as data cache size and query speed), which helps to optimize the overall system performance.
[0116] In one embodiment, the interaction between system variables is monitored and evaluated in real time through a real-time or dynamic correlation analysis method. If there is a high correlation, it can be considered as an important interaction term.
[0117] In one embodiment, a real-time data collection module is constructed to continuously monitor the operating status of the system, including but not limited to key parameters such as data cache size and query speed. A dynamic correlation analysis module is developed, which can receive and process data from the data collection module in real time. In the correlation analysis module, key interaction items that may affect system performance can be discovered in real time, such as correlation coefficients or covariance calculation methods for linear relationships, and other calculation methods for nonlinear relationships that may be presented by interactions between parameters. A real-time optimization suggestion module is also constructed, which can provide targeted system optimization suggestions based on the correlation analysis results, and provide a friendly user interface, so that the system administrator can monitor the system status in real time and perform necessary system optimization operations, that is, the optimization operations performed by the system administrator after summarizing the rules.
[0118] Furthermore, in this embodiment, the platform attribute data of the collected and preprocessed data visualization platform is subjected to correlation analysis to obtain interaction item data. The interaction item data is used as training data to train the machine learning model to be trained to obtain a machine learning model for predicting the configuration parameters of the data visualization platform. In this way, a machine learning model that can accurately predict the configuration parameters is obtained through training.
[0119] Exemplarily, after the step of using the interaction item data as training data to train the machine learning model to be trained to obtain the machine learning model for predicting the configuration parameters of the data visualization platform, the method further comprises:
[0120] Obtaining validation data for the machine learning model;
[0121] The model accuracy of the machine learning model is verified using the verification data; wherein the evaluation indicators of the model accuracy verification include binary classification features and regression features.
[0122] In the process of machine learning, the data set is divided into three parts: training set, validation set, and test set. The training set is used to train the model, the validation set is used to verify the effect of the model, and the test set is used for the final prediction. After the model is determined using the training set, the validation set is needed to evaluate and optimize the model's accuracy, stability, reliability and other performance to achieve the best results.
[0123] In this embodiment, the model accuracy of the trained machine learning model is verified by using the obtained verification data, wherein the evaluation index of the model accuracy verification includes binary classification features and regression features.
[0124] For binary classification features, such as "logging.verbose: whether to output detailed logs", "xpack.monitoring.enabled: whether to enable X-Pack monitoring", etc., AUC (Area Under the ROC Curve, receiver operating characteristic curve), recall rate, and precision rate can be used for evaluation. ①AUC. AUC is a common indicator for evaluating the performance of binary classification models. It calculates the area under the ROC curve and represents the trade-off between the true positive rate and false positive rate of the model under different thresholds. Its mathematical expression is: AUC = ∫[0,1]ROC(f)(t)dt. Among them, ROC(f)(t) represents the true positive rate and false positive rate of the model at a given threshold t. By calculating the area under the ROC curve, the AUC value can be obtained. ②Recall rate (Recall). The recall rate measures the proportion of positive samples correctly predicted by the model among all positive samples, and is an indicator for evaluating the recall rate of the model. Its mathematical expression is: Recall = TP / (TP+FN). Among them, TP represents true positive (the number of positive samples correctly predicted by the model), and FN represents false negative (the number of positive samples that the model failed to predict correctly). ③ Precision. Precision measures the accuracy of the model in predicting positive samples and is an indicator for evaluating the precision of the model. Its mathematical expression is: Precision = TP / (TP+FP). Among them, TP represents true positive, and FP represents false positive (the number of positive samples incorrectly predicted by the model).
[0125] For regression features, such as "server.port: the port that Kibana service listens on", MSE and R^2 can be used for evaluation. ①MSE (Mean Square Error). The square root of the mean absolute error can give the mean square error (MSE). When calculating this indicator, the square of the distance between the true value and the predicted value is first summed and then the average is taken. This indicator avoids the problem that the absolute value of MAE (mean absolute error) causes the function to be unable to be differentiated, so the mean square error is often used in the loss function of linear regression. On the other hand, the mean square error can amplify the value with large prediction deviation by squaring, thereby improving the detection sensitivity. ②Determination coefficient R^2. By calculating the determination coefficient, the proportion of the total variation of the dependent variable y that can be explained by the independent variable x through the regression model. For example, if R^2 is 0.9, it means that the regression relationship can explain 90% of the variation of the dependent variable. Its calculation formula is: R^2=SSR / SST. Among them, SSR is the sum of the squares of the difference between the mean of the predicted data and the true data, which reflects the degree of dispersion of the model data relative to the mean of the true data. SST is the sum of squares of the difference between the real data and its mean, which reflects the degree of dispersion of the real data relative to the mean. The higher the coefficient of determination R2 is, the closer it is to 1, and the better the model fit is. The closer the coefficient of determination R2 is to 0, the worse the regression line fit is.
[0126] Exemplarily, after the step of using the interaction item data as training data to train the machine learning model to be trained to obtain the machine learning model for predicting the configuration parameters of the data visualization platform, the step further includes:
[0127] Obtaining validation data for the machine learning model;
[0128] adding random noise to the verification data to obtain new verification data; and / or using different data subsets of the verification data as new verification data;
[0129] The model stability of the machine learning model is verified using the new verification data.
[0130] In addition to basic performance indicators, the stability of the model is also a focus of attention. In a big data environment, data may be affected by various noises and anomalies. In order to improve the stability and generalization ability of the model, in this embodiment, a series of stability experiments are designed, which include adding random noise to the verification data, using different data subsets for verification, etc.
[0131] (1) Introducing random noise. The addition of random noise helps reduce the overfitting of the model to the training data and makes it better adapt to unknown data. The principle of adding random noise is to enable the model to learn a wider range of data patterns and features by introducing randomness in the training data. This helps the model generalize better and reduce over-reliance on specific inputs. The addition of random noise to the validation data mainly uses the Gaussian perturbation function, which is expressed as: f(x) = x + N(0,б), where x is the original input data and N(0,б) represents a normally distributed random number with a mean of 0 and a standard deviation of б. By adjusting the size of б, the intensity of the added random noise can be controlled.
[0132] (2) k-fold cross validation. k-fold cross validation is used to evaluate the stability and reliability of the model. Specifically, all data are divided into K parts, and then K-1 parts are used for training, and the remaining 1 part is used for testing. This process is repeated K times, and the test data set is changed each time. Finally, the average of the K test accuracies is taken as the stability indicator of the model.
[0133] Exemplarily, after the step of using the interaction item data as training data to train the machine learning model to be trained to obtain the machine learning model for predicting the configuration parameters of the data visualization platform, the step further includes:
[0134] During the training and validation process of the machine learning model, collect training metric data and validation metric data;
[0135] Generate a visual model evaluation report and model improvement suggestions based on the training indicator data and the verification indicator data.
[0136] In order to perform the above experiments automatically and systematically, a model verification module is developed in this embodiment. This module not only automatically completes the experimental process, but also generates a detailed report including various indicators, charts and suggestions. The report can include the numerical value of the indicator, the chart display and the visualization of the model. At the same time, the report can also provide suggestions for model improvement, such as adjusting hyperparameters, increasing training data, etc. This not only simplifies the experimental process, but also provides a comprehensive and objective evaluation of the model performance, that is, providing an evaluation report of the model at each stage from training to application.
[0137] In one embodiment, the model verification module automatically and systematically executes the experimental process from initializing the experimental configuration to generating a comprehensive report. By reading the preset experimental configuration file, the module automatically sets the experimental parameters and loads the model structure. The module calls the model training interface, starts the model training process, and monitors the training status of the model in real time, collecting key performance indicators such as loss value and accuracy. The real-time data processing component in the module processes these real-time collected data and generates a real-time training curve chart to intuitively display the training process of the model. After the training is completed, the module performs model verification and testing, and uses the preset verification and test data sets to calculate the performance of the model on various evaluation indicators through the built-in evaluation algorithm. The report generation component in the module automatically generates a detailed report including various indicator values, charts and model visualizations based on the collected indicators and evaluation results. While analyzing the model performance, the suggestion generation component in the module provides suggestions for model improvement based on the preset rules and experimental results, such as adjusting the model's hyperparameters or increasing the amount of training data. All experimental results and suggestions are integrated into a comprehensive report, which can be output in multiple formats such as PDF or HTML. Through this model verification module, users can get a comprehensive evaluation of model performance.
[0138] Through this series of experiments and verifications, we can not only accurately evaluate the performance of the model on training and unknown data, but also improve its shortcomings. This feedback loop is the key to the continuous optimization and progress of the model. Overall, it ensures that the model can provide reliable and stable predictions in various situations, so as to better meet the actual needs in the big data environment.
[0139] In one embodiment, the model can also be optimized with real-time feedback.
[0140] Real-time feedback optimization is an iterative process that continuously collects data, analyzes and adjusts to achieve better performance and resource utilization, and uses feedback loop mechanisms to monitor the effects of real-time adjustments and further optimize based on the results. By real-time monitoring and collecting data related to the status of platform hardware and software, performance and resource utilization of internal components and tasks of the data visualization platform, and taking into account specific task requirements and goals, AUC, recall rate, precision, mean square error, coefficient of determination and other indicators, and priority setting rules and strategies, machine learning algorithms are used to automatically iterate the best configuration and adjustment strategy.
[0141] At present, 1. The configuration is complex and time-consuming: There are some existing automatic configuration tools for data visualization platforms such as Kibana and Grafana. These tools configure the data visualization platform based on fixed rules and parameters, that is, hard-coded configuration strategies, and cannot be dynamically adjusted according to the specific operating environment or data changes. 2. Version compatibility issues: Different versions of data visualization platforms such as Kibana and Grafana may have different configuration requirements, and users need to understand the characteristics of each version. This is an additional burden for users. In addition, existing automatic configuration tools often ignore the version issues of the visualization platform and cannot automatically adapt to different types and versions of data visualization platforms. Existing automatic configuration tools often ignore the version issues of the visualization platform and cannot automatically adapt to different types and versions of data visualization platforms. 3. Lack of intelligent optimization: The current configuration method lacks an intelligent optimization mechanism and cannot dynamically adjust the configuration according to real-time data and workload changes, which leads to unstable performance and low resource utilization of data visualization platforms such as Kibana and Grafana. 4. Incomplete monitoring: Existing monitoring methods mainly focus on the monitoring of underlying hardware and infrastructure, and the monitoring of various components and tasks within data visualization platforms such as Kibana and Grafana is relatively insufficient. This makes it difficult to discover and solve problems in a timely manner, affecting the stable operation of the platform.
[0142] In the application scenario of a data visualization platform parameter configuration method of the present application, refer to Figure 3 , to achieve data collection, data preprocessing, feature selection, building machine learning models, model verification, configuration updates, real-time feedback optimization and other steps, thereby relying on the multi-layer perceptron model (MLP), according to the real-time status of the platform's hardware and software, the type and version of the data visualization platform, the data source, visualization requirements, etc., to adaptively provide the best configuration parameters, and monitor the real-time status and performance indicators of the platform's hardware and software in real time, continuously train and iterate the model, improve the accuracy, and achieve continuous optimization of the visualization interface while simplifying the configuration process.
[0143] In this way, 1. Simplify the configuration process: By developing an automatic configuration system based on artificial intelligence and machine learning algorithms, users can get rid of traditional manual configuration, realize the configuration automation of data visualization platforms such as Kibana and Grafana, lower the threshold for use, and improve efficiency. 2. Automatically handle version compatibility: For the intelligent configuration system of the visualization platform, introduce the version-specific multi-layer perceptron (MLP) neural network model algorithm, automatically detect and adapt to different versions of the current visualization platform, achieve the optimal configuration of each version, solve version compatibility issues, and reduce the configuration burden of users. 3. Real-time monitoring and optimization: Utilize a comprehensive monitoring system, including but not limited to using tools such as Elasticsearch for real-time monitoring and log analysis, monitor the status and performance indicators of each component and task of the visualization platform in real time, and provide real-time alarm and fault diagnosis functions. And adjust and update the configuration parameters based on real-time monitoring data to achieve continuous optimization of the algorithm and improvement of platform performance.
[0144] Reference Figure 4 In addition, the embodiment of the present application further provides a data visualization platform parameter configuration device, the data visualization platform parameter configuration device comprising:
[0145] The acquisition module M1 is used to acquire and pre-process the platform attribute data of the data visualization platform to obtain input data; wherein the platform attribute data includes at least one of the system performance parameters of the data visualization platform, the platform type and version information of the data visualization platform, the platform input data input to the data visualization platform, and the chart types that the data visualization platform can provide;
[0146] A prediction module M2, used for inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform, and obtaining the configuration parameters of the data visualization platform through prediction by the machine learning model;
[0147] The updating module M3 is used to update the parameters of the data visualization platform according to the configuration parameters, and generate a visualization interface of the data visualization platform according to the updated parameters.
[0148] Exemplarily, when the platform attribute data includes system performance parameters of the data visualization platform, the acquisition module is further used to:
[0149] Collect configuration files of the data visualization platform;
[0150] Through text mining, system performance parameters of the data visualization platform contained in the configuration file are identified; wherein the system performance parameters include at least one of the hardware performance parameters, software performance parameters, security parameters and functional parameters of the data visualization platform.
[0151] Exemplarily, the prediction module is also used for:
[0152] Before the step of inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform and predicting the configuration parameters of the data visualization platform through the machine learning model,
[0153] The platform attribute data of the data visualization platform after collection and preprocessing is used as pending data;
[0154] Performing correlation analysis on the pending data to obtain interaction item data;
[0155] The interaction item data is used as training data to train the machine learning model to be trained, so as to obtain a machine learning model for predicting configuration parameters of the data visualization platform.
[0156] Exemplarily, the prediction module is also used for:
[0157] After the step of using the interaction item data as training data to train the machine learning model to be trained to obtain a machine learning model for predicting configuration parameters of the data visualization platform,
[0158] Obtaining validation data for the machine learning model;
[0159] The model accuracy of the machine learning model is verified using the verification data; wherein the evaluation indicators of the model accuracy verification include binary classification features and regression features.
[0160] Exemplarily, the prediction module is also used for:
[0161] After the step of using the interaction item data as training data to train the machine learning model to be trained to obtain a machine learning model for predicting configuration parameters of the data visualization platform,
[0162] Obtaining validation data for the machine learning model;
[0163] adding random noise to the verification data to obtain new verification data; and / or using different data subsets of the verification data as new verification data;
[0164] The model stability of the machine learning model is verified using the new verification data.
[0165] Exemplarily, the prediction module is also used for:
[0166] After the step of using the interaction item data as training data to train the machine learning model to be trained to obtain a machine learning model for predicting configuration parameters of the data visualization platform,
[0167] During the training and validation process of the machine learning model, collect training metric data and validation metric data;
[0168] Generate a visual model evaluation report and model improvement suggestions based on the training indicator data and the verification indicator data.
[0169] The data visualization platform parameter configuration device provided by the present application adopts the data visualization platform parameter configuration method in the above embodiment, aiming to flexibly configure the parameters of the data visualization platform and improve the adaptability of parameter configuration of the data visualization platform. Compared with conventional technology, the beneficial effects of the data visualization platform parameter configuration device provided by the embodiment of the present application are the same as the beneficial effects of the data visualization platform parameter configuration method provided by the above embodiment, and other technical features in the data visualization platform parameter configuration device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0170] In addition, an embodiment of the present application also provides a data visualization platform parameter configuration device, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the data visualization platform parameter configuration method as described above are implemented.
[0171] In addition, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the data visualization platform parameter configuration method as described above are implemented.
[0172] In addition, an embodiment of the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the data visualization platform parameter configuration method as described above are implemented.
[0173] The specific implementation methods of the computer program product of the present invention are basically the same as the various embodiments of the above-mentioned data visualization platform parameter configuration method, and will not be repeated here.
[0174] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to conventional technology can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, including a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0176] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for configuring parameters of a data visualization platform. It is characterized in that The method comprises: Collecting and preprocessing platform attribute data of the data visualization platform to obtain input data; wherein the platform attribute data includes at least one of system performance parameters of the data visualization platform, platform type and version information of the data visualization platform, platform input data input to the data visualization platform, and chart types that the data visualization platform can provide; Inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform, and obtaining the configuration parameters of the data visualization platform through prediction by the machine learning model; The parameters of the data visualization platform are updated according to the configuration parameters, and a visualization interface of the data visualization platform is generated according to the updated parameters.
2. The data visualization platform parameter configuration method according to claim 1, It is characterized in that When the platform attribute data includes system performance parameters of the data visualization platform, the step of collecting and preprocessing the platform attribute data of the data visualization platform to obtain input data includes: Collect configuration files of the data visualization platform; Through text mining, system performance parameters of the data visualization platform contained in the configuration file are identified; wherein the system performance parameters include at least one of the hardware performance parameters, software performance parameters, security parameters and functional parameters of the data visualization platform.
3. The data visualization platform parameter configuration method according to claim 1, It is characterized in that Before the step of inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform and predicting the configuration parameters of the data visualization platform through the machine learning model, the method further comprises: The platform attribute data of the data visualization platform after collection and preprocessing is used as pending data; Performing correlation analysis on the pending data to obtain interaction item data; The interaction item data is used as training data to train the machine learning model to be trained, so as to obtain a machine learning model for predicting the configuration parameters of the data visualization platform.
4. The data visualization platform parameter configuration method according to claim 3, It is characterized in that After the step of using the interaction item data as training data to train the machine learning model to be trained to obtain the machine learning model for predicting the configuration parameters of the data visualization platform, the method further comprises: Obtaining validation data for the machine learning model; The model accuracy of the machine learning model is verified using the verification data; wherein the evaluation indicators of the model accuracy verification include binary classification features and regression features.
5. The data visualization platform parameter configuration method according to claim 3, It is characterized in that After the step of using the interaction item data as training data to train the machine learning model to be trained to obtain a machine learning model for predicting configuration parameters of the data visualization platform, the method further includes: Obtaining validation data for the machine learning model; adding random noise to the verification data to obtain new verification data; and / or using different data subsets of the verification data as new verification data; The model stability of the machine learning model is verified using the new verification data.
6. The data visualization platform parameter configuration method according to claim 3, It is characterized in that After the step of using the interaction item data as training data to train the machine learning model to be trained to obtain a machine learning model for predicting configuration parameters of the data visualization platform, the method further includes: During the training and validation process of the machine learning model, collect training metric data and validation metric data; Generate a visual model evaluation report and model improvement suggestions based on the training indicator data and the verification indicator data.
7. A data visualization platform parameter configuration device, It is characterized in that The data visualization platform parameter configuration device comprises: A collection module, used to collect and pre-process the platform attribute data of the data visualization platform to obtain input data; wherein the platform attribute data includes at least one of the system performance parameters of the data visualization platform, the platform type and version information of the data visualization platform, the platform input data input to the data visualization platform, and the chart type that the data visualization platform can provide; A prediction module, used for inputting the input data into a machine learning model for predicting configuration parameters of a data visualization platform, and obtaining the configuration parameters of the data visualization platform through prediction by the machine learning model; The updating module is used to update the parameters of the data visualization platform according to the configuration parameters, and generate a visualization interface of the data visualization platform according to the updated parameters.
8. A data visualization platform parameter configuration device, It is characterized in that The data visualization platform parameter configuration device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the data visualization platform parameter configuration method as described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the data visualization platform parameter configuration method according to any one of claims 1 to 6.
10. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the data visualization platform parameter configuration method as described in any one of claims 1 to 6 are implemented.
