Method and device for evaluating domain controller performance, electronic device, and storage medium
By using the verification results and initial parameters of multiple detection units in the domain controller performance evaluation to determine the trusted benchmark value, the problem of poor accuracy of domain controller performance evaluation in the existing technology is solved, and more accurate performance evaluation results are achieved.
Patent Information
- Application Number
- CN202210077658.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-24
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-01-24
AI Technical Summary
Existing domain controller performance evaluation methods evaluate directly through verification results, resulting in poor accuracy of performance evaluation results.
Using a method including a planning unit and N detection units, by obtaining M·N verification results of the detection units, the trusted benchmark values of the M test samples are determined, and the domain controller performance is evaluated based on the trusted benchmark values and initial parameters. Output the evaluation results.
The accuracy of the domain controller performance evaluation results is improved, and the correct verification results of the detection unit are determined through trusted benchmark values to ensure the accuracy of the evaluation results.
Smart Images

Figure CN114397876B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of domain controller testing, for example, to a method and device, electronic device, and storage medium for evaluating domain controller performance. Background Art
[0002] At present, with the rapid development of 5G technology, the planning unit of the domain controller is usually used to perform network planning to obtain planning results. The detection unit is used to determine whether the logic of the network link in the planning result is inconsistent, whether there is a missing configuration, and whether there is a timing loop. The verification result of the planning result is obtained by the detection unit. However, the performance of the domain controller is directly evaluated by the verification result. Since it is unknown whether the verification result is correct, the performance evaluation result of the domain controller cannot be accurately obtained.
[0003] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art: the performance of the domain controller is directly evaluated through the verification result, and the accuracy of the performance evaluation result of the domain controller obtained is poor. Summary of the invention
[0004] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0005] The embodiments of the present disclosure provide a method and apparatus, an electronic device, and a storage medium for evaluating the performance of a domain controller, so as to improve the accuracy of the performance evaluation results of the domain controller.
[0006] In some embodiments, a method for evaluating the performance of a domain controller, the domain controller includes a planning unit and N detection units, N is an integer greater than 1, and the method includes: obtaining M·N verification results of the detection unit; wherein the M·N verification results are obtained by the N detection units verifying the planning results of the planning unit according to M test samples; M is an integer greater than 1; determining trusted reference values of the M test samples based on the M·N verification results and initial parameters; evaluating the performance of the domain controller based on the M trusted reference values and the initial parameters; and outputting the evaluation results.
[0007] In some embodiments, the device for evaluating domain controller performance includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for evaluating domain controller performance when running the program instructions.
[0008] In some embodiments, the electronic device comprises the above-mentioned device for evaluating domain controller performance.
[0009] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the above-mentioned method for evaluating the performance of a domain controller is executed.
[0010] The method and device, electronic device, and storage medium for evaluating the performance of a domain controller provided by the embodiments of the present disclosure can achieve the following technical effects: by obtaining M·N verification results of the detection unit; determining the trusted reference values of M test samples according to the M·N verification results and the initial parameters; evaluating the performance of the domain controller according to the M trusted reference values and the initial parameters; and outputting the evaluation results. In this way, since the trusted reference value can determine the correct verification result that the detection unit should obtain. Therefore, by evaluating the performance of the domain controller according to the trusted reference value, it is possible to determine whether the verification result is correct, thereby improving the accuracy of the performance evaluation result of the domain controller obtained.
[0011] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0013] Figure 1 is a schematic diagram of a method for evaluating domain controller performance provided by an embodiment of the present disclosure;
[0014] Figure 2 is a schematic diagram of another method for evaluating domain controller performance provided by an embodiment of the present disclosure;
[0015] Figure 3 is a schematic diagram of the structure of an evaluation device provided by an embodiment of the present disclosure;
[0016] Figure 4 is a schematic diagram of a verification result and initial parameters provided by an embodiment of the present disclosure;
[0017] Figure 5 is a schematic diagram of verification results and evaluation results provided by an embodiment of the present disclosure when the number of test rounds is 5;
[0018] Figure 6 is a schematic diagram of verification results and evaluation results provided by an embodiment of the present disclosure when the number of test rounds is 100;
[0019] Figure 7 is a schematic diagram of verification results and evaluation results provided by an embodiment of the present disclosure when the number of test rounds is 1000;
[0020] Figure 8 It is a schematic diagram of a device for evaluating domain controller performance provided by an embodiment of the present disclosure.
[0021] Reference numerals:
[0022] 100: test sample set storage module; 101: network management / controller; 102: synchronization network; 103: planning unit of software-defined synchronization domain controller; 104: detection unit of software-defined synchronization domain controller; 105: evaluation unit; 106: software-defined synchronization domain controller. DETAILED DESCRIPTION
[0023] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0024] The terms "include" and "have" and any variations thereof in the description and claims of the embodiments of the present disclosure and the above-mentioned drawings are intended to cover non-exclusive inclusions.
[0025] Unless otherwise stated, the term "plurality" means two or more.
[0026] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0027] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0028] This application can be applied to systems or software that evaluate the performance of domain controllers. Usually, a software-defined synchronous network domain controller consists of two parts: a synchronous network planning unit and a synchronous network detection unit. The synchronous network planning unit can automatically plan information such as the synchronous link path and the synchronous port configuration priority according to the network topology connection and resource information; the synchronous network detection unit can perform integrity detection on the actual operation of the synchronous network or the offline planned synchronous operation status, including whether there is a missing configuration, whether there is a timing loop, whether there is an over-limit of synchronous hops, and other issues. Evaluating the performance of a domain controller means evaluating the planning unit or detection unit of a software-defined synchronous network domain controller.
[0029] Meanwhile, the electronic devices involved in the embodiments of the present invention may include but are not limited to mobile phones, tablet computers, personal computers, PDAs, servers, and the like.
[0030] Combination Figure 1 As shown, an embodiment of the present disclosure provides a method for evaluating the performance of a domain controller, wherein the domain controller includes a planning unit and N detection units, where N is an integer greater than 1. The method for evaluating the performance of the domain controller includes:
[0031] Step S101, the electronic device obtains M·N verification results of the detection unit; wherein the M·N verification results are obtained by the N detection units verifying the planning results of the planning unit according to the M test samples; M is an integer greater than 1;
[0032] Step S102, the electronic device determines the credible reference values of the M test samples according to the M·N verification results and the initial parameters;
[0033] Step S103, the electronic device evaluates the performance of the domain controller according to the M trusted reference values and the initial parameters;
[0034] Step S104: the electronic device outputs the evaluation result.
[0035] The method for evaluating the performance of a domain controller provided by the embodiment of the present disclosure is adopted, by obtaining M·N verification results of the detection unit; determining the trusted reference values of M test samples according to the M·N verification results; evaluating the performance of the domain controller according to the M trusted reference values and the initial parameters; and outputting the evaluation result. In this way, since the trusted reference value can determine the correct verification result that the detection unit should obtain. Therefore, by evaluating the performance of the domain controller according to the trusted reference value, it is possible to determine whether the verification result is correct, thereby improving the accuracy of the obtained performance evaluation result of the domain controller.
[0036] Alternatively, M·N represents M times N.
[0037] In some embodiments, the electronic device receives the verification results sent by each detection unit of the domain controller; or, the electronic device calls a preset verification result database to obtain the verification results from the preset verification result database; the preset verification result database stores multiple verification results.
[0038] Optionally, the verification result is 0 or 1; 0 is used to indicate that the detection unit fails to verify the planning result of the planning unit; 1 is used to indicate that the detection unit passes the verification of the planning result of the planning unit.
[0039] Optionally, the initial parameters include initial weights corresponding to the N detection units respectively; determining the credible reference value of the test sample according to the verification result and the initial parameters includes: calculating Get the credible benchmark value of the test sample; where R j '(p k ,s j ) is the credible reference value of the jth test sample; w' i is the initial weight corresponding to the i-th detection unit; R(D i |p k ,s j ) is the verification result of the planning result of the planning unit according to the jth test sample by the i-th detection unit; “·” represents a multiplication sign. In this way, the trustworthy reference value of each test sample can be automatically determined through the initial parameters and the verification results of each detection unit, thereby improving the efficiency of obtaining the performance evaluation results of the domain controller.
[0040] In some embodiments, R(D i |p k ,s j ) is the verification result of the planning result of the planning unit according to the jth test sample by the i-th detection unit. That is, when the test sample is s j In the case of k According to the test samples j Perform planning and obtain planning results k ,s j ; Detection unit D i The planning result p k ,s j The verification result is R(D i |p k ,s j ).
[0041] In some embodiments, R j '(p k ,s j ) is the credible reference value of the jth test sample. That is, the jth test sample in the planning unit p k credible benchmark value.
[0042] In some embodiments, the domain controller includes 4 detection units. The planning result planned by the planning unit according to the test sample 1 is determined as the planning result of the test sample 1; the initial weight of the detection unit D1 is obtained as 0.25, and the verification result of the planning result of the test sample 1 by the detection unit D1 is 0; the initial weight of the detection unit D2 is obtained as 0.25, and the verification result of the planning result of the test sample 1 by the detection unit D2 is 1; the initial weight of the detection unit D3 is obtained as 0.25, and the verification result of the planning result of the test sample 1 by the detection unit D3 is 1; the initial weight of the detection unit D4 is obtained as 0.25, and the verification result of the planning result of the test sample 1 by the detection unit D4 is 1. Calculation The weighted results of each detection unit corresponding to the test sample 1 are obtained, that is: 0.25×1+0.25×0+0.25×1+0.25×1=0.75; since the weighted result 0.75 is greater than 0.5, the credible reference value of the test sample 1 is 1.
[0043] Optionally, the performance of the domain controller is evaluated according to M trusted reference values and initial parameters, including: determining the type of each verification result according to the verification result and trusted reference value corresponding to the test sample; the type includes true negative, true positive and false positive; counting the number of true negatives, true positives and false positives in the verification results corresponding to each detection unit; determining the evaluation value of each detection unit and the weight corresponding to each detection unit according to the number of true negatives, true positives, false positives and initial parameters. In this way, by determining the type of verification result and counting the number of types of verification results corresponding to each detection unit, the accuracy of the verification result corresponding to each detection unit can be determined. Thereby, the performance of each detection unit of the domain controller can be quantitatively evaluated, which is beneficial for users to improve each detection unit according to the evaluation value of each detection unit. At the same time, it is also convenient for users to select appropriate detection units for network planning verification.
[0044] Optionally, the trusted reference value is 0 or 1; the type of each verification result is determined according to the verification result and the trusted reference value corresponding to the test sample, including: when the trusted reference value and the verification result corresponding to the test sample are both 1, the type of the verification result is determined to be a true positive; when the trusted reference value and the verification result corresponding to the test sample are both 0, the type of the verification result is determined to be a true negative; when the trusted reference value corresponding to the test sample is 0 and the verification result is 1, the type of the verification result is determined to be a false positive.
[0045] Optionally, the initial parameters also include the initial parameters of the detection unit; determining the detection unit evaluation value and the corresponding weight of the detection unit according to the number of true negatives, the number of true positives, the number of false positives and the initial parameters, including: calculating Get the accuracy of the detection unit; calculate Get the recall rate of the detection unit; calculate Get the detection unit score; calculate Get the evaluation value of the detection unit; calculate Get the weight corresponding to the detection unit; where precision_rate is the accuracy of the detection unit, TP(D i ) is the number of true positives in the verification result corresponding to the i-th detection unit; TN(D i ) is the number of true negatives in the verification result corresponding to the i-th detection unit; FP(D i) is the number of false positives in the verification result corresponding to the i-th detection unit; recall_rate is the recall rate of the i-th detection unit; f_score(D i ) is the score of the i-th detection unit; f_score(D g ) is the score of the g-th detection unit; P(D i ) is the evaluation value of the i-th detection unit; P'(D i ) is the initial parameter of the i-th detection unit; iter is the test round; w i is the weight corresponding to the i-th detection unit.
[0046] Optionally, the number of test rounds is greater than or equal to one.
[0047] In some embodiments, the test round is 1; the initial parameter of the detection unit D3 is 0.5. The planning result of the planning unit according to the test sample 3 is determined as the planning result of the test sample 3; the planning result of the planning unit according to the test sample 4 is determined as the planning result of the test sample 4. The trusted reference value of the test sample 3 is obtained as 1; the trusted reference value of the test sample 4 is obtained as 0; the verification result a of the planning result of the test sample 3 obtained by the detection unit D3 is obtained as 1; the verification result b of the planning result of the test sample 4 obtained by the detection unit D3 is obtained as 1; the verification result c of the planning result of the test sample 3 obtained by the detection unit D4 is obtained as 1; the verification result d of the planning result of the test sample 4 obtained by the detection unit D4 is obtained as 0. If the verification result a corresponding to test sample 3 is 1 and the credible reference value is 1, then the type of verification result a is true positive; if the verification result b corresponding to test sample 3 is 1 and the credible reference value is 1, then the type of verification result b is true positive; if the verification result c corresponding to test sample 4 is 1 and the credible reference value is 0, then the type of verification result c is false positive; if the verification result d corresponding to test sample 4 is 0 and the credible reference value is 0, then the type of verification result d is true negative. The number of true positives corresponding to detection unit D3 is 2; the number of false positives corresponding to detection unit D4 is 1; the number of true negatives corresponding to detection unit D4 is 1. By calculating The accuracy of the detection unit D3 is 1; by calculating The recall rate of detection unit D3 is 1; by calculating The detection unit D3 has a score of 1; by calculating The evaluation value of the detection unit D3 was obtained to be 0.75.
[0048] Optionally, the initial parameters also include planning unit initial parameters; evaluating the domain controller performance according to each trusted reference value and the initial parameters also includes: calculating Get the planning unit score of the domain controller; calculate Get the planning unit evaluation value of the domain controller; where score(pk ) is the planning unit score; P(p k ) is the planning unit evaluation value; P'(p k ) is the initial parameter of the planning unit;. In this way, the trusted reference value of the test sample is determined by each verification result, that is, it can be determined whether the planning result of the planning unit for the test sample is verified or not. By calculating the verification pass status of the planning result of the planning unit for the test sample, the planning success status of the corresponding planning unit can be determined. In this way, the performance of the planning unit of the domain controller can be quantitatively evaluated, which is beneficial for users to improve each planning unit according to the evaluation value of the planning unit. At the same time, it is also convenient for users to select appropriate planning units for network planning.
[0049] In some embodiments, the test round is 1; the initial parameter of the planning unit is 1; the trusted reference values of 5 test samples are obtained, for example: the trusted reference value of test sample 1 is 1; the trusted reference value of test sample 2 is 0; the trusted reference value of test sample 3 is 1; the trusted reference value of test sample 4 is 1; and the trusted reference value of test sample 5 is 0. By calculating That is: (1+0+1+1+0) / 5=3 / 5; the planning unit score of the domain controller is 3 / 5. The planning unit evaluation value obtained is 0.8.
[0050] Optionally, the initial parameters also include the test sample initial parameters; after evaluating the domain controller performance according to the M trusted reference values and the initial parameters, it also includes: calculating Get the test sample score; calculate Get the test sample evaluation value; where score(s j ) is the score of the jth test sample; P(s j ) is the evaluation value of the jth test sample; P'(s j ) is the initial parameter of the jth test sample. In this way, each test sample can be quantitatively evaluated, so that the user can determine the difficulty of each test sample according to the determined test sample evaluation value.
[0051] In some embodiments, the test round is 1; the domain controller includes 4 detection units and 1 planning unit. The initial parameter of test sample 7 is 20; the planning result of the planning unit according to test sample 7 is determined as the planning result of test sample 7; the initial weight of detection unit D1 is obtained as 0.25, and the verification result of the planning result of test sample 7 is 1; the initial weight of detection unit D2 is obtained as 0.25, and the verification result of the planning result of test sample 7 is 1; the initial weight of detection unit D3 is obtained as 0.25, and the verification result of the planning result of test sample 7 is 1; the initial weight of detection unit D4 is obtained as 0.25, and the verification result of the planning result of test sample 7 is 1. Calculation Get test sample 7 score 0; calculate The evaluation value of test sample 7 is 10.
[0052] In some embodiments, when the test round is 1, the initial parameters are obtained by searching a preset parameter database; the preset parameter database stores the detection unit initial parameters, planning unit initial parameters, test sample initial parameters and initial weights corresponding to the detection units respectively.
[0053] Optionally, after outputting the evaluation result, the method further includes: obtaining the test rounds; when the test rounds reach the preset rounds, displaying the evaluation results to the user; when the test rounds do not reach the preset rounds, accumulating the test rounds; determining the evaluation results as initial parameters; re-obtaining M·N verification results of the detection unit; determining the trusted reference values of M test samples according to the M·N verification results; evaluating the domain controller performance according to the M trusted reference values and the initial parameters; and outputting the evaluation results. In this way, by iterating the evaluation results, the domain controller performance can be evaluated more accurately.
[0054] Combination Figure 2 As shown, the embodiment of the present disclosure provides another method for evaluating the performance of a domain controller, the domain controller includes a planning unit and N detection units, N is an integer greater than 1, and the method for evaluating the performance of the domain controller includes:
[0055] In step S201, the electronic device obtains M·N verification results of the detection unit; wherein the M·N verification results are obtained by N detection units verifying the planning results of the planning unit according to M test samples; M is an integer greater than 1; and then step S202 is executed.
[0056] In step S202, the electronic device determines the trustworthy reference values of the M test samples according to the M·N verification results and the initial parameters; and then executes step S203.
[0057] In step S203, the electronic device evaluates the performance of the domain controller according to the M trusted reference values and the initial parameters; and then executes step S204.
[0058] In step S204, the electronic device outputs the evaluation result; and then executes step S205.
[0059] Step S205, the electronic device obtains a test round; then executes step S206.
[0060] In step S206, the electronic device determines whether the test round reaches the preset round; if the test round reaches the preset round, execute step S208; if the test round does not reach the preset round, execute step S207.
[0061] In step S207, the electronic device determines the evaluation result as the initial parameter, and then executes step S201.
[0062] Step S208: The electronic device displays the evaluation result to the user.
[0063] The method for evaluating the performance of a domain controller according to the embodiment of the present disclosure is adopted. By obtaining the test rounds, if the test rounds do not reach the preset rounds, M·N verification results of the detection unit are obtained; the performance of the domain controller is evaluated according to the M trusted reference values and the initial parameters; the evaluation results are output, and the evaluation results are determined as the initial parameters until the test rounds reach the preset rounds. In this way, the evaluation results are iterated cyclically, so that the performance of the domain controller can be evaluated more accurately.
[0064] Optionally, the evaluation result is determined as the initial parameter, including: determining the weight corresponding to the detection unit as the initial weight corresponding to the detection unit; determining the detection unit evaluation value as the detection unit initial parameter; determining the planning unit evaluation value as the planning unit initial parameter; determining the test sample evaluation value as the test sample initial parameter.
[0065] Optionally, presenting the evaluation result to the user includes: pushing the evaluation result to a preset client.
[0066] Optionally, presenting the evaluation result to the user includes: sending the evaluation result to a preset display screen, triggering the display screen to present the evaluation result.
[0067] In some embodiments, Figure 3 Figure 1 is a schematic diagram of the structure of the evaluation device. Figure 3As shown, the test sample set storage module 100 is connected to the network management or controller 101; the network management or controller 101 is connected to the synchronization network 102 through the network management interface or the southbound interface; the synchronization network 102 is connected to the planning unit 103 of the software-defined synchronization domain controller through the southbound interface, and the planning unit 103 of the software-defined synchronization domain controller is connected to the detection unit 104 of the software-defined synchronization domain controller through the northbound interface; the software-defined synchronization domain controller 106 is connected to the evaluation unit 105. Among them, the test sample set storage module stores multiple test samples, the network management or controller calls the test samples from the test sample set storage module, and loads the test samples as the network management configuration file or the SDN controller configuration file; the network management or controller maps the configuration information corresponding to the network management configuration file or the SDN controller configuration file to the synchronization network through the network management interface or the southbound interface; the planning unit obtains the configuration and operation information from the synchronization network through the southbound interface, and performs network planning to obtain the planning result; the planning unit sends the planning result to multiple detection units, and the detection unit verifies the planning result to obtain the verification result. The software-defined synchronization network domain controller sends the verification result to the evaluation unit. When the evaluation unit is running, it executes the method for evaluating the performance of the domain controller.
[0068] In some embodiments, the evaluation unit 105 is connected to the test sample set storage module 100, and the evaluation unit labels the test samples in the test sample set storage module with corresponding test sample evaluation values.
[0069] In some embodiments, the test sample includes the type of synchronization device, the type, quantity and scale of the bearer device, the location of the injection point of the synchronization time / clock source, the network topology connection, the network planning strategy, etc. Optionally, the synchronization device type includes a time server, a frequency synchronization source, a bearer network synchronization unit and a time allocation unit, etc. The network management / controller is a network management or controller of the synchronization device / bearer device, which is used to map the configuration information of the test sample to the synchronization network. The synchronization network is an actual physical network or an offline virtual network entity composed of synchronization time / clock sources, bearer devices, etc. The planning unit of the software-defined synchronization network domain controller is a controller unit that meets the requirements of YD / T3700-2020 "Technical Requirements for Software-Defined Synchronization Network" and has the ability to automatically plan the synchronization network; the software-defined synchronization network domain controller-detection unit is a controller unit that meets the requirements of YD / T3700-2020 "Technical Requirements for Software-Defined Synchronization Network" and has the ability to automatically detect the synchronization network.
[0070] In some embodiments, 13 test samples, a planning unit of a domain controller, and 5 detection units of a domain controller are used to evaluate the performance of the domain controller. First, the planning results of the domain controller for the 13 test samples are obtained, and then the 13 planning results are verified by the 5 detection units to obtain 65 verification results. Then, the trusted reference values of the 13 test samples are determined based on the 65 verification results and the initial parameters. Finally, the controller performance is evaluated based on the trusted reference value and the initial parameters, that is, the detection unit evaluation value, the weight corresponding to the detection unit, the planning unit evaluation value, and the test sample evaluation value are obtained. Figure 4 It is a schematic diagram of the verification results and initial parameters, such as Figure 4 As shown, num is the number of the test sample; result_d1 is the verification result of detection unit 1; result_d2 is the verification result of detection unit 2; result_d3 is the verification result of detection unit 3; result_d4 is the verification result of detection unit 4; result_d5 is the verification result of detection unit 5; result_hat is the trusted benchmark value of the test sample; sample_hard_score is the evaluation value of the test sample; f1_d1 is the evaluation value of detection unit 1; f1_d2 is the evaluation value of detection unit 2; f1_d3 is the evaluation value of detection unit 3; f1_d4 is the evaluation value of detection unit 4; f1_d5 is the evaluation value of detection unit 5; weight_d1 is the weight of detection unit 1; weight_d2 is the weight of detection unit 2; weight_d3 is the weight of detection unit 3; weight_d4 is the weight of detection unit 4; weight_d5 is the weight of detection unit 5. Among them, the verification result of detection unit 1 for test sample 2 is 0, and the verification result of detection unit 2 for test sample 2 is 0; the verification result of detection unit 3 for test sample 2 is 0; the verification result of detection unit 4 for test sample 2 is 1; the verification result of detection unit 5 for test sample 2 is 0; the initial trusted reference value of test sample 2 is 0; the initial test sample evaluation value of test sample 2 is 35.736373; the initial detection unit evaluation values of detection unit 1, detection unit 2, detection unit 3, detection unit 4 and detection unit 5 are all 0.2; the initial weights of detection unit 1, detection unit 2, detection unit 3, detection unit 4 and detection unit 5 are all 0.2.
[0071] In some embodiments, after the electronic device outputs the evaluation result, the test round is obtained to determine whether the test round reaches the preset round. If the test round does not reach the preset round, the domain controller performance is re-evaluated. Figure 5As shown, the verification result of test sample 5 by detection unit 1 is 1, the verification result of test sample 5 by detection unit 2 is 1; the verification result of test sample 5 by detection unit 3 is 1; the verification result of test sample 5 by detection unit 4 is 0; the verification result of test sample 5 by detection unit 5 is 1; the trusted reference value of test sample 5 is 1.0; the test sample evaluation value of test sample 5 is 32.882007; the evaluation value of detection unit 1 is 0.727273; the evaluation value of detection unit 2 is 0.833333; the evaluation value of detection unit 3 is 0.8; the evaluation value of detection unit 4 is 0.5; the evaluation value of detection unit 5 is 0.8; the weight of detection unit 1 is 0.184376; the weight of detection unit 2 is 0.226845; the weight of detection unit 3 is 0.217727; the weight of detection unit 4 is 0.174943; the weight of detection unit 5 is 0.196109. When the test rounds are 100 times, the verification results and evaluation results are as follows Figure 6 When the test rounds are 1000 times, the verification results and evaluation results are shown as follows Figure 7 shown.
[0072] In some embodiments, different verification results are used to comprehensively evaluate the performance of the domain controller. For example: obtain verification result set A, in which multiple verification results A are stored; verification result A is obtained by the detection unit verifying the planning results of the planning unit according to the test sample set A; multiple test samples are stored in the test sample set A; and evaluation result A is obtained according to the verification result set A. Obtain verification result set B, in which multiple verification results B are stored; verification result B is obtained by the detection unit verifying the planning results of the planning unit according to the test sample set B; multiple test samples are stored in the test sample set B; and evaluation result B is obtained according to the verification result set B. Comprehensively evaluate the performance of the domain controller according to the evaluation results A and the evaluation results B. Among them, the test samples stored in the test sample set A are not completely the same or completely different from the test samples stored in the test sample set B.
[0073] Combination Figure 8 As shown, an embodiment of the present disclosure provides a device for evaluating the performance of a domain controller, including a processor 800 and a memory 801. Optionally, the device may also include a communication interface 802 and a bus 803. The processor 800, the communication interface 802, and the memory 801 may communicate with each other through the bus 803. The communication interface 802 may be used for information transmission. The processor 800 may call the logic instructions in the memory 801 to execute the method for evaluating the performance of a domain controller of the above embodiment.
[0074] The device for evaluating the performance of a domain controller provided by the embodiment of the present disclosure is adopted, by obtaining M·N verification results of the detection unit; determining the trusted reference values of M test samples according to the M·N verification results and the initial parameters; evaluating the performance of the domain controller according to the M trusted reference values and the initial parameters; and outputting the evaluation results. In this way, since the trusted reference value can determine the correct verification result that the detection unit should obtain. Therefore, by evaluating the performance of the domain controller according to the trusted reference value, it is possible to determine whether the verification result is correct, thereby improving the accuracy of the obtained performance evaluation result of the domain controller.
[0075] In addition, the logic instructions in the memory 801 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0076] The memory 801 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 100 executes the functional application and data processing by running the program instructions / modules stored in the memory 801, that is, the method for evaluating the performance of the domain controller in the above embodiment is implemented.
[0077] The memory 801 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 801 may include a high-speed random access memory and may also include a non-volatile memory.
[0078] An embodiment of the present disclosure provides an electronic device, comprising the above-mentioned device for evaluating the performance of a domain controller.
[0079] Optionally, the electronic device includes a computer or a server, etc.
[0080] The electronic device provided by the embodiment of the present disclosure is adopted to obtain M·N verification results of the detection unit; determine the trusted reference values of M test samples according to the M·N verification results and the initial parameters; evaluate the performance of the domain controller according to the M trusted reference values and the initial parameters; and output the evaluation results. In this way, since the trusted reference value can determine the correct verification result that the detection unit should obtain. Therefore, by evaluating the performance of the domain controller according to the trusted reference value, it is possible to determine whether the verification result is correct, thereby improving the accuracy of the performance evaluation result of the domain controller obtained.
[0081] An embodiment of the present disclosure provides a storage medium storing program instructions, which execute the above method for evaluating domain controller performance when running.
[0082] The aforementioned storage medium may be a non-transitory storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or may be a transient storage medium.
[0083] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0084] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for evaluating the performance of a domain controller, wherein the domain controller comprises a planning unit and N detection units, where N is an integer greater than 1, characterized in that: The method comprises: Obtaining M·N verification results of the detection unit; wherein the M·N verification results are obtained by the N detection units verifying the planning results of the planning unit according to the M test samples; M is an integer greater than 1; Determine the credible reference values of M test samples based on M·N verification results and initial parameters; Evaluate domain controller performance based on M trusted benchmark values and initial parameters; Output the evaluation results; The initial parameters include the initial weights corresponding to the N detection units. The credible reference value of the test sample is determined based on the verification results and the initial parameters, including: calculate Obtaining credible benchmark values for test samples; Among them, R j '(p k ,s j ) is the credible reference value of the jth test sample; w' i is the initial weight corresponding to the i-th detection unit; R(D i |p k ,s j ) is the verification result of the planning result of the planning unit according to the jth test sample by the i-th detection unit; Evaluate domain controller performance based on M trusted benchmark values and initial parameters, including: Determining the type of each verification result according to the verification result and the credible reference value corresponding to the test sample; the types include true negative, true positive and false positive; Counting the number of true negatives, true positives, and false positives in the verification results corresponding to each detection unit; Determine the evaluation value of each detection unit and the corresponding weight of each detection unit according to the number of true negatives, the number of true positives, the number of false positives and the initial parameters; The initial parameters also include the initial parameters of the detection unit; the detection unit evaluation value and the corresponding weight of the detection unit are determined according to the number of true negatives, the number of true positives, the number of false positives and the initial parameters, including: calculate Obtain the accuracy of the detection unit; calculate Get the recall rate of the detection unit; calculate Obtaining the detection unit score; calculate Obtaining a detection unit evaluation value; calculate Get the weight corresponding to the detection unit; Among them, precision_rate is the accuracy of the detection unit, TP(D i ) is the number of true positives in the verification result corresponding to the i-th detection unit; TN(D i ) is the number of true negatives in the verification result corresponding to the i-th detection unit; FP(D i ) is the number of false positives in the verification result corresponding to the i-th detection unit; recall_rate is the recall rate of the i-th detection unit; f_score(D i ) is the score of the i-th detection unit; f_score(D g ) is the score of the g-th detection unit; P(D i ) is the evaluation value of the i-th detection unit; P'(D i ) is the initial parameter of the i-th detection unit; iter is the test round; w i is the weight corresponding to the i-th detection unit.
2. The method according to claim 1, characterized in that The initial parameters also include the planning unit initial parameters; Evaluates domain controller performance based on trusted baseline values and initial parameters, including: calculate Get the planning unit score of the domain controller; calculate Get the planning unit evaluation value of the domain controller; Among them, score(p k ) is the planning unit score; P(p k ) is the planning unit evaluation value; P'(p k ) are the initial parameters of the planning unit.
3. The method according to claim 1, characterized in that The initial parameters also include the initial parameters of the test sample; after evaluating the performance of the domain controller based on M trusted benchmark values and initial parameters, it also includes: calculating Get the test sample score; calculate Obtaining a test sample evaluation value; Among them, score(s j ) is the score of the jth test sample; P(s j ) is the evaluation value of the jth test sample; P'(s j ) is the initial parameter of the jth test sample.
4. The method according to any one of claims 1 to 3, characterized in that: After the evaluation results are output, they also include: Get the test round number; When the test rounds reach the preset number, the evaluation results are displayed to the user; In the case that the number of test rounds does not reach the preset number of rounds, the test rounds are accumulated; the evaluation results are determined as initial parameters; M·N verification results of the detection unit are re-obtained; the trusted reference values of M test samples are determined based on the M·N verification results; the domain controller performance is evaluated based on the M trusted reference values and the initial parameters; and the evaluation results are output.
5. A device for evaluating domain controller performance, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for evaluating domain controller performance according to any one of claims 1 to 4 when running the program instructions.
6. An electronic device, characterized in that: The device for evaluating domain controller performance as claimed in claim 5 is included.
7. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for evaluating the performance of a domain controller according to any one of claims 1 to 4 is executed.
