CN113672389A - Server compatibility method, system, equipment and computer readable storage medium - Google Patents

Server compatibility method, system, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113672389A
CN113672389A CN202110962455.1A CN202110962455A CN113672389A CN 113672389 A CN113672389 A CN 113672389A CN 202110962455 A CN202110962455 A CN 202110962455A CN 113672389 A CN113672389 A CN 113672389A
Authority
CN
China
Prior art keywords
target
server
existing
attribute information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110962455.1A
Other languages
Chinese (zh)
Inventor
于文杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202110962455.1A priority Critical patent/CN113672389A/en
Publication of CN113672389A publication Critical patent/CN113672389A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5055Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering software capabilities, i.e. software resources associated or available to the machine
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting

Abstract

The application discloses a server compatibility method, a system, equipment and a computer readable storage medium, which are used for obtaining target attribute information of a target server; determining a target interface to be connected with a target server in target equipment; acquiring a pre-trained target decision tree corresponding to a target interface, wherein a root node of the target decision tree represents information of the target interface, a child node of the target decision tree represents attribute information of a server whether the server is matched with the target interface, and a leaf node of the target decision tree represents a matching result of the server and the target interface; and determining the adaptation result of the target server and the target interface based on the target attribute information and the target decision tree. The decision tree for deciding whether the server and the interface are matched or not is trained in advance in the application, the matching result of the server and the interface can be determined by means of the attribute information of the server and the decision tree, the matching judgment of the interface and the server is not needed to be carried out manually, the efficiency is high, the accuracy is good, and the compatibility efficiency of the server can be improved.

Description

Server compatibility method, system, equipment and computer readable storage medium
Technical Field
The present application relates to the field of server technologies, and more particularly, to a server compatible method, system, device, and computer readable storage medium.
Background
At present, when managing the server, can manage target server through server management platform, at this in-process, server management platform need dispose and manage target server through the server interface, however because the difference of server interface, the server interface probably is not the adaptation with target server for target server can't be compatible with server management platform, at this moment, just need artifical judgement server interface and target server whether the adaptation, lead to server compatible efficiency low, and then influence server management efficiency.
In summary, how to improve the compatibility efficiency of the server is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a server compatibility method, which can solve the technical problem of improving the compatibility efficiency of the server to a certain extent. The application also provides a server compatible system, a device and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a server compatible method comprising:
acquiring target attribute information of a target server;
determining a target interface to be connected with the target server in target equipment;
acquiring a pre-trained target decision tree corresponding to the target interface, wherein a root node of the target decision tree represents information of the target interface, a child node of the target decision tree represents attribute information of a server whether the target interface is matched with the target interface, and a leaf node of the target decision tree represents a matching result of the server and the target interface;
and determining an adaptation result of the target server and the target interface based on the target attribute information and the target decision tree so as to determine a compatible result of the target server based on the adaptation result.
Preferably, the training process of the target decision tree includes:
acquiring existing attribute information of an existing server adapted to the target equipment;
determining the information gain of each existing attribute information to the existing server based on the adaptation influence result of the existing attribute information to the existing server and the target interface;
based on the information gain, selecting the decision attribute information as the child node of the target decision tree from the existing attribute information;
and generating the target decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result.
Preferably, the determining, based on the result of the adaptation influence of the existing attribute information on the existing server and the target interface, the information gain of each existing attribute information on the existing server includes:
determining a first information entropy between the target interface and the existing server based on the adaptation result of the target interface and the existing server;
determining a second information entropy between the existing attribute information and the existing server based on the attribution relationship between the existing attribute information and the existing server;
and determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy.
Preferably, the determining a first information entropy between the target interface and the existing server based on the adaptation result of the target interface and the existing server includes:
determining the first information entropy between the target interface and the existing server based on the adaptation result of the target interface and the existing server through a first operation formula;
the first operation formula includes:
Figure BDA0003222582230000021
wherein Ent (D) represents the first information entropy; d represents the set of existing servers; k-1 indicates that the target interface is adapted to the existing server, and k-2 indicates that the target interface is not suitable for the existing serverPreparing; p is a radical ofkRepresenting the proportion of the k-th type of the existing server to all the existing servers;
the determining a second information entropy between the existing attribute information and the existing server based on the attribution relationship between the existing attribute information and the existing server includes:
determining the second information entropy between the existing attribute information and the existing server through a second operation formula based on the attribution relationship between the existing attribute information and the existing server;
the second operation formula includes:
Figure BDA0003222582230000031
wherein, Ent (D)v) Representing the second information entropy; n represents a total type of the existing attribute information; p is a radical ofvRepresenting a proportion of the existing servers having the existing attribute information of the vth type to all the existing servers;
the determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy includes:
determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy through a third operation formula;
the third operation formula includes:
Figure BDA0003222582230000032
wherein Gain (D, a) represents the information Gain; a represents the existing attribute information; i Dv| represents the number of the existing servers having the existing attribute information of the vth type; | D | represents the total number of the existing servers.
Preferably, the selecting, based on the information gain, the decision attribute information as a child node of the target decision tree from the existing attribute information includes:
sequencing the information gain values according to the sequence from high to low to obtain a sequencing result;
and selecting the existing attribute information corresponding to the information gain value of a preset part from the head of the sorting result as the decision attribute information.
Preferably, the generating the target decision tree based on the information of the target interface, the decision attribute information, and the adaptation influence result includes:
generating an initial decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result;
determining an accuracy of the initial decision tree;
judging whether the accuracy meets a preset requirement;
if the accuracy does not meet the preset requirement, changing the value of the preset part, returning to the step of selecting the existing attribute information corresponding to the information gain value of the preset part from the head of the sorting result as the decision attribute information;
and if the accuracy meets the preset requirement, taking the initial decision tree as the target decision tree.
Preferably, after determining the adaptation result between the target server and the target interface based on the target attribute information and the target decision tree, the method further includes:
and analyzing the adaptation result, and if a plurality of target interfaces with the same function are adapted to the target server, selecting the target interface corresponding to the second information entropy with the minimum value to be connected with the target server.
A server compatible system comprising:
the first acquisition module is used for acquiring target attribute information of a target server;
the first determining module is used for determining a target interface to be connected with the target server in target equipment;
a second obtaining module, configured to obtain a pre-trained target decision tree corresponding to the target interface, where a root node of the target decision tree represents information of the target interface, a child node of the target decision tree represents attribute information of a server that is adapted to the target interface, and a leaf node of the target decision tree represents an adaptation result of the server and the target interface;
a second determining module, configured to determine an adaptation result of the target server and the target interface based on the target attribute information and the target decision tree, so as to determine a compatible result of the target server based on the adaptation result.
A server compatible device comprising:
a memory for storing a computer program;
a processor for implementing the steps of any of the server compatible methods described above when executing the computer program.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the server-compatible method as set forth in any one of the above.
The application provides a server compatibility method, which comprises the steps of obtaining target attribute information of a target server; determining a target interface to be connected with a target server in target equipment; acquiring a pre-trained target decision tree corresponding to a target interface, wherein a root node of the target decision tree represents information of the target interface, a child node of the target decision tree represents attribute information of a server whether the server is matched with the target interface, and a leaf node of the target decision tree represents a matching result of the server and the target interface; and determining an adaptation result of the target server and the target interface based on the target attribute information and the target decision tree so as to determine a compatible result of the target server based on the adaptation result. The decision tree for deciding whether the server and the interface are matched or not is trained in advance in the application, the matching result of the server and the interface can be determined by means of the attribute information of the server and the decision tree, the matching judgment of the interface and the server is not needed to be carried out manually, the efficiency is high, the accuracy is good, and the compatibility efficiency of the server can be improved. The server compatible system, the device and the computer readable storage medium provided by the application also solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a server compatibility method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a decision tree of a server alarm management function adaptation interface;
FIG. 3 is a schematic diagram of the training of a target decision tree in the present application;
FIG. 4 is a schematic diagram of another training of a goal decision tree in the present application;
fig. 5 is a schematic structural diagram of a server-compatible system according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a server-compatible device according to an embodiment of the present application;
fig. 7 is another schematic structural diagram of a server compatible device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a server compatibility method according to an embodiment of the present disclosure.
The server compatibility method provided by the embodiment of the application can comprise the following steps:
step S101: and acquiring target attribute information of the target server.
In practical application, the target attribute information of the target server may be obtained first, so as to determine whether the target server is adapted to the corresponding interface according to the target attribute information subsequently. It should be noted that the type of the attribute information of the server may be determined according to actual needs, for example, the attribute information of the server may include basic information of hardware of the server, such as a server model, a BMC (Baseboard management Controller) version, a BMC release date, a CPU (central processing unit) model, a memory number, a motherboard type, an interface return value number, and the like.
Step S102: and determining a target interface to be connected with a target server in the target equipment.
In practical applications, the target device is connected to the target server through the target interface, so that the target interface to be connected to the target server in the target device needs to be determined, so as to determine whether the target interface is adapted to the target server in the following.
It should be noted that the type of the target interface may be determined according to actual needs, and the target interface may be determined according to functions of the interface, for example, the interface for managing the server alarm is determined as the target interface.
Step S103: the method comprises the steps of obtaining a pre-trained target decision tree corresponding to a target interface, wherein a root node of the target decision tree represents information of the target interface, child nodes of the target decision tree represent attribute information of a server whether the server is matched with the target interface, and leaf nodes of the target decision tree represent a matching result of the server and the target interface.
In practical application, a target decision tree corresponding to a target interface needs to be trained in advance, a root node of the target decision tree represents information of the target interface, child nodes of the target decision tree represent attribute information of a server whether the target interface is matched with the child nodes of the target decision tree, and leaf nodes of the target decision tree represent a matching result of the server and the target interface, so that whether the target server is matched with the target interface can be determined according to the target decision tree. For convenience of understanding, taking a decision tree of the server alarm management function adaptation interface as an example, a schematic diagram may refer to fig. 2, and as can be seen from fig. 2, when the CPU model of the server is S, the server cannot be adapted to the server alarm management function adaptation interface, and only when the CPU model of the server is general, the BMC issues a log later than a certain log, and the acquired interface return value includes a keyword "port", the server cannot be adapted to the server alarm management function adaptation interface.
Step S104: and determining an adaptation result of the target server and the target interface based on the target attribute information and the target decision tree so as to determine a compatible result of the target server based on the adaptation result.
In practical application, after the target attribute information and the target decision tree are obtained, whether the target attribute information is consistent with the attribute information of the child node of the target decision tree can be judged according to the target decision tree, whether the target server is matched with the target interface is determined according to the consistency judgment result, a corresponding matching result is obtained, and then a compatible result of the target equipment and the target server is determined according to the matching result subsequently, for example, if the matching result is not matched, the target server and the target equipment cannot be compatible through the target interface.
The application provides a server compatibility method, which comprises the steps of obtaining target attribute information of a target server; determining a target interface to be connected with a target server in target equipment; acquiring a pre-trained target decision tree corresponding to a target interface, wherein a root node of the target decision tree represents information of the target interface, a child node of the target decision tree represents attribute information of a server whether the server is matched with the target interface, and a leaf node of the target decision tree represents a matching result of the server and the target interface; and determining an adaptation result of the target server and the target interface based on the target attribute information and the target decision tree so as to determine a compatible result of the target server based on the adaptation result. The decision tree for deciding whether the server and the interface are matched or not is trained in advance in the application, the matching result of the server and the interface can be determined by means of the attribute information of the server and the decision tree, the matching judgment of the interface and the server is not needed to be carried out manually, the efficiency is high, the accuracy is good, and the compatibility efficiency of the server can be improved.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating training of a target decision tree according to the present application.
In the server compatibility method provided in the embodiment of the present application, the training process of the target decision tree may include the following steps:
step S201: and acquiring the existing attribute information of the existing server adapted to the target equipment.
In practical application, since the server adapted to the target device can reflect the adaptation condition between the server and the interface, the existing attribute information of the existing server adapted to the target device may be obtained first, so as to determine the target decision tree according to the existing attribute information later.
Step S202: and determining the information gain of each existing attribute information to the existing server based on the adaptation influence result of the existing attribute information to the existing server and the target interface.
In practical application, the adaptation contribution degrees of the existing attribute information to the server and the interface are different, and in order to better judge the adaptation contribution degree of the existing attribute information to the server and the interface, after the existing server and the existing attribute information are obtained, the information gain of each existing attribute information to the existing server can be determined based on the adaptation influence results of the existing attribute information to the existing server and the target interface, so that the adaptation contribution degree of the existing attribute information to the server and the interface can be known according to the information gain, and the larger the information gain value is, the higher the adaptation contribution degree of the existing attribute information to the server and the interface is.
Step S203: and based on the information gain, selecting the decision attribute information as the child node of the target decision tree from the existing attribute information.
Step S204: and generating a target decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result.
In practical application, after determining the information gain of each existing attribute information to the existing server based on the adaptation influence result of the existing attribute information to the existing server and the target interface, the decision attribute information serving as the child node of the target decision tree can be selected from the existing attribute information based on the information gain, namely, the existing attribute information is determined to participate in the construction of the target decision tree; and finally, generating a target decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result.
Referring to fig. 4, fig. 4 is another training diagram of the objective decision tree in the present application.
In the server compatibility method provided in the embodiment of the present application, the training process of the target decision tree may include the following steps:
step S301: and acquiring the existing attribute information of the existing server adapted to the target equipment.
Step S302: and determining a first information entropy between the target interface and the existing server based on the adaptation result of the target interface and the existing server.
Step S303: and determining a second information entropy between the existing attribute information and the existing server based on the attribution relationship between the existing attribute information and the existing server.
Step S304: and determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy.
In practical application, in the process of determining the information gain of each existing attribute information to the existing server based on the adaptation influence result of the existing attribute information to the existing server and the target interface, because the information entropy can carry out quantitative measurement on the information, and the adaptation contribution degree of the existing attribute information to the server and the interface can be represented by the amount of the associated information of the existing attribute information and the existing server, the first information entropy between the target interface and the existing server can be determined based on the adaptation result of the target interface and the existing server; determining a second information entropy between the existing attribute information and the existing server based on the attribution relationship between the existing attribute information and the existing server; and determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy.
Step S305: and based on the information gain, selecting the decision attribute information as the child node of the target decision tree from the existing attribute information.
Step S306: and generating a target decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result.
In a specific application scenario, in the process of determining a first information entropy between a target interface and an existing server based on an adaptation result of the target interface and the existing server, in order to quickly calculate the first information entropy, the first information entropy between the target interface and the existing server can be determined based on the adaptation result of the target interface and the existing server through a first operation formula;
the first operation formula includes:
Figure BDA0003222582230000091
wherein, Ent (D) represents the first information entropy; d represents the set of existing servers; k equals 1 to indicate that the target interface is matched with the existing server, and k equals 2 to indicate that the target interface is not matched with the existing server; pk represents the proportion of the kth existing server to all existing servers;
in a specific application scenario, in the process of determining the second information entropy between the existing attribute information and the existing server based on the attribution relationship between the existing attribute information and the existing server, in order to accelerate the calculation efficiency, the second information entropy between the existing attribute information and the existing server can be determined based on the attribution relationship between the existing attribute information and the existing server through a second operation formula;
the second operation formula includes:
Figure BDA0003222582230000092
wherein, Ent (D)v) Representing a second information entropy; n represents the total type of the existing attribute information; p is a radical ofvRepresenting the proportion of the existing server with the existing attribute information of the v-th type in all the existing servers;
in a specific application scenario, in the process of determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy, in order to accelerate the calculation efficiency, the information gain of each existing attribute information to the existing server can be determined based on the first information entropy and the second information entropy through a third operation formula;
the third operation formula includes:
Figure BDA0003222582230000093
wherein Gain (D, a) represents an information Gain; a represents existing attribute information; i DvL represents the number of existing servers having the existing attribute information of the vth type; | D | represents the total number of existing servers.
In a specific application scenario, in order to reduce the information gain of the irrelevant attribute, in the case that the second information entropy is larger than the first information entropy, the value of the second information entropy may be forced to be 1, and the like.
In the server compatibility method provided by the embodiment of the application, in the process of selecting the decision attribute information as the child node of the target decision tree from the existing attribute information based on the information gain, in order to give consideration to the training efficiency of the decision tree, the information gain values can be sequenced from high to low to obtain a sequencing result; and selecting existing attribute information corresponding to the information gain value of the preset part from the head of the sequencing result as decision attribute information. For example, existing attribute information corresponding to the first half of the information gain values is selected as decision attribute information in the sorted information gain values.
In practical application, in the process of generating a target decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result, in order to ensure the precision of the decision tree, an initial decision tree can be generated based on the information of the target interface, the decision attribute information and the adaptation influence result; determining the accuracy of the initial decision tree; judging whether the accuracy meets the preset requirement; if the accuracy does not meet the preset requirement, changing the value of the preset part, for example, changing half of the preset part into three-quarters, and the like, returning to the step of selecting the existing attribute information corresponding to the information gain value of the preset part from the head of the sequencing result as the decision attribute information; and if the accuracy meets the preset requirement, taking the initial decision tree as a target decision tree.
In the server compatibility method provided in the embodiment of the present application, in a compatibility process of a target server, a target device may have a plurality of interfaces with the same function and adapted to the target server, and at this time, in order to ensure that the target server is compatible with the target device as much as possible, after an adaptation result between the target server and the target interface is determined based on target attribute information and a target decision tree, the adaptation result may be analyzed, and if a plurality of target interfaces with the same function are adapted to the target server, a target interface corresponding to a second information entropy with a smallest value is selected to be connected to the target server.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a server compatible system according to an embodiment of the present disclosure.
The server compatible system provided by the embodiment of the application can include:
a first obtaining module 101, configured to obtain target attribute information of a target server;
a first determining module 102, configured to determine a target interface to be connected to a target server in a target device;
a second obtaining module 103, configured to obtain a pre-trained target decision tree corresponding to a target interface, where a root node of the target decision tree represents information of the target interface, a child node of the target decision tree represents attribute information of a server that is adapted to the target interface, and a leaf node of the target decision tree represents an adaptation result of the server and the target interface;
and a second determining module 104, configured to determine an adaptation result of the target server and the target interface based on the target attribute information and the target decision tree, so as to determine a compatible result of the target server based on the adaptation result.
The server compatible system provided by the embodiment of the application can include:
the third acquisition module is used for acquiring the existing attribute information of the existing server adaptive to the target equipment;
the third determining module is used for determining the information gain of each existing attribute information to the existing server based on the adaptation influence result of the existing attribute information to the existing server and the target interface;
the first selection module is used for selecting the decision attribute information as the child node of the target decision tree from the existing attribute information based on the information gain;
and the first generation module is used for generating a target decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result.
In an embodiment of the present application, the third determining module may include:
the first determining unit is used for determining a first information entropy between the target interface and the existing server based on the adaptation result of the target interface and the existing server;
the second determining unit is used for determining a second information entropy between the existing attribute information and the existing server based on the attribution relationship between the existing attribute information and the existing server;
and a third determining unit, configured to determine an information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy.
In an embodiment of the application, a server compatibility system includes a first determining unit, where the first determining unit is specifically configured to:
determining a first information entropy between a target interface and an existing server based on an adaptation result of the target interface and the existing server through a first operation formula;
the first operation formula includes:
Figure BDA0003222582230000111
wherein, Ent (D) represents the first information entropy; d represents the set of existing servers; k 1 represents that the target interface is matched with the existing server, k 2 represents the targetThe interface is not adaptive to the existing server; p is a radical ofkRepresenting the proportion of the kth existing server to all existing servers;
the second determining unit is specifically configured to:
determining a second information entropy between the existing attribute information and the existing server through a second operation formula based on the attribution relationship between the existing attribute information and the existing server;
the second operation formula includes:
Figure BDA0003222582230000121
wherein, Ent (D)v) Representing a second information entropy; n represents the total type of the existing attribute information; p is a radical ofvRepresenting the proportion of the existing server with the existing attribute information of the v-th type in all the existing servers;
the third determining unit is specifically configured to:
determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy through a third operation formula;
the third operation formula includes:
Figure BDA0003222582230000122
wherein Gain (D, a) represents an information Gain; a represents existing attribute information; i DvL represents the number of existing servers having the existing attribute information of the vth type; | D | represents the total number of existing servers.
In an embodiment of the application, a first selecting unit is specifically configured to: sorting the information gain values in the sequence from high to low to obtain a sorting result; and selecting existing attribute information corresponding to the information gain value of the preset part from the head of the sequencing result as decision attribute information.
In an embodiment of the application, a first generating unit is specifically configured to: generating an initial decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result; determining the accuracy of the initial decision tree; judging whether the accuracy meets the preset requirement; if the accuracy does not meet the preset requirement, changing the value of the preset part, returning to the step of selecting the existing attribute information corresponding to the information gain value of the preset part from the head of the sequencing result as the decision attribute information; and if the accuracy meets the preset requirement, taking the initial decision tree as a target decision tree.
The server compatible system provided in the embodiment of the present application may further include:
and the first analysis module is used for analyzing the adaptation result after the second determination module determines the adaptation result of the target server and the target interface based on the target attribute information and the target decision tree, and selecting the target interface corresponding to the second information entropy with the minimum value to be connected with the target server if a plurality of target interfaces with the same function are all adapted with the target server.
The application also provides a server compatible device and a computer readable storage medium, which have the corresponding effects of the server compatible method provided by the embodiment of the application. Referring to fig. 6, fig. 6 is a schematic structural diagram of a server compatible device according to an embodiment of the present application.
The server compatible device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program:
acquiring target attribute information of a target server;
determining a target interface to be connected with a target server in target equipment;
acquiring a pre-trained target decision tree corresponding to a target interface, wherein a root node of the target decision tree represents information of the target interface, a child node of the target decision tree represents attribute information of a server whether the server is matched with the target interface, and a leaf node of the target decision tree represents a matching result of the server and the target interface;
and determining an adaptation result of the target server and the target interface based on the target attribute information and the target decision tree so as to determine a compatible result of the target server based on the adaptation result.
The server compatible device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: acquiring existing attribute information of an existing server adapted to target equipment; determining the information gain of each existing attribute information to the existing server based on the adaptation influence result of the existing attribute information to the existing server and the target interface; based on the information gain, selecting the decision attribute information as the child node of the target decision tree from the existing attribute information; and generating a target decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result.
The server compatible device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: determining a first information entropy between a target interface and an existing server based on an adaptation result of the target interface and the existing server; determining a second information entropy between the existing attribute information and the existing server based on the attribution relationship between the existing attribute information and the existing server; and determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy.
The server compatible device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: determining a first information entropy between a target interface and an existing server based on an adaptation result of the target interface and the existing server through a first operation formula;
the first operation formula includes:
Figure BDA0003222582230000141
wherein, Ent (D) represents the first information entropy; d represents an existing serverA set of (a); k equals 1 to indicate that the target interface is matched with the existing server, and k equals 2 to indicate that the target interface is not matched with the existing server; p is a radical ofkRepresenting the proportion of the kth existing server to all existing servers;
the server compatible device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: determining a second information entropy between the existing attribute information and the existing server through a second operation formula based on the attribution relationship between the existing attribute information and the existing server;
the second operation formula includes:
Figure BDA0003222582230000142
wherein, Ent (D)v) Representing a second information entropy; n represents the total type of the existing attribute information; p is a radical ofvRepresenting the proportion of the existing server with the existing attribute information of the v-th type in all the existing servers;
the server compatible device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy through a third operation formula;
the third operation formula includes:
Figure BDA0003222582230000143
wherein Gain (D, a) represents an information Gain; a represents existing attribute information; i DvL represents the number of existing servers having the existing attribute information of the vth type; | D | represents the total number of existing servers.
The server compatible device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: sorting the information gain values in the sequence from high to low to obtain a sorting result; and selecting existing attribute information corresponding to the information gain value of the preset part from the head of the sequencing result as decision attribute information.
The server compatible device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: generating an initial decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result; determining the accuracy of the initial decision tree; judging whether the accuracy meets the preset requirement; if the accuracy does not meet the preset requirement, changing the value of the preset part, returning to the step of selecting the existing attribute information corresponding to the information gain value of the preset part from the head of the sequencing result as the decision attribute information;
and if the accuracy meets the preset requirement, taking the initial decision tree as a target decision tree.
The server compatible device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: and after determining the adaptation result of the target server and the target interface based on the target attribute information and the target decision tree, analyzing the adaptation result, and if a plurality of target interfaces with the same function are all adapted to the target server, selecting the target interface corresponding to the second information entropy with the minimum value to be connected with the target server.
Referring to fig. 7, another server compatible device provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; a communication module 205 coupled to the processor 202 for enabling communication of the server compatible device with the outside world. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
acquiring target attribute information of a target server;
determining a target interface to be connected with a target server in target equipment;
acquiring a pre-trained target decision tree corresponding to a target interface, wherein a root node of the target decision tree represents information of the target interface, a child node of the target decision tree represents attribute information of a server whether the server is matched with the target interface, and a leaf node of the target decision tree represents a matching result of the server and the target interface;
and determining an adaptation result of the target server and the target interface based on the target attribute information and the target decision tree so as to determine a compatible result of the target server based on the adaptation result.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: acquiring existing attribute information of an existing server adapted to target equipment; determining the information gain of each existing attribute information to the existing server based on the adaptation influence result of the existing attribute information to the existing server and the target interface; based on the information gain, selecting the decision attribute information as the child node of the target decision tree from the existing attribute information; and generating a target decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: determining a first information entropy between a target interface and an existing server based on an adaptation result of the target interface and the existing server; determining a second information entropy between the existing attribute information and the existing server based on the attribution relationship between the existing attribute information and the existing server; and determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: determining a first information entropy between a target interface and an existing server based on an adaptation result of the target interface and the existing server through a first operation formula;
the first operation formula includes:
Figure BDA0003222582230000161
wherein, Ent (D) represents the first information entropy; d represents the set of existing servers; k equals 1 to indicate that the target interface is matched with the existing server, and k equals 2 to indicate that the target interface is not matched with the existing server; p is a radical ofkRepresenting the proportion of the kth existing server to all existing servers;
a computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: determining a second information entropy between the existing attribute information and the existing server through a second operation formula based on the attribution relationship between the existing attribute information and the existing server;
the second operation formula includes:
Figure BDA0003222582230000162
wherein, Ent (D)v) Representing a second information entropy; n represents the total type of the existing attribute information; p is a radical ofvRepresenting the proportion of the existing server with the existing attribute information of the v-th type in all the existing servers;
a computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy through a third operation formula;
the third operation formula includes:
Figure BDA0003222582230000171
wherein Gain (D, a) represents an information Gain; a represents existing attribute information; i DvL represents the number of existing servers having the existing attribute information of the vth type; | D | represents the total number of existing servers.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: sorting the information gain values in the sequence from high to low to obtain a sorting result; and selecting existing attribute information corresponding to the information gain value of the preset part from the head of the sequencing result as decision attribute information.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: generating an initial decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result; determining the accuracy of the initial decision tree; judging whether the accuracy meets the preset requirement; if the accuracy does not meet the preset requirement, changing the value of the preset part, returning to the step of selecting the existing attribute information corresponding to the information gain value of the preset part from the head of the sequencing result as the decision attribute information; and if the accuracy meets the preset requirement, taking the initial decision tree as a target decision tree.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and after determining the adaptation result of the target server and the target interface based on the target attribute information and the target decision tree, analyzing the adaptation result, and if a plurality of target interfaces with the same function are all adapted to the target server, selecting the target interface corresponding to the second information entropy with the minimum value to be connected with the target server.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of a relevant part in a server compatible system, a device and a computer readable storage medium provided in the embodiments of the present application, refer to a detailed description of a corresponding part in a server compatible method provided in the embodiments of the present application, and are not described herein again. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A server compatibility method, comprising:
acquiring target attribute information of a target server;
determining a target interface to be connected with the target server in target equipment;
acquiring a pre-trained target decision tree corresponding to the target interface, wherein a root node of the target decision tree represents information of the target interface, a child node of the target decision tree represents attribute information of a server whether the target interface is matched with the target interface, and a leaf node of the target decision tree represents a matching result of the server and the target interface;
and determining an adaptation result of the target server and the target interface based on the target attribute information and the target decision tree so as to determine a compatible result of the target server based on the adaptation result.
2. The method of claim 1, wherein the training process of the target decision tree comprises:
acquiring existing attribute information of an existing server adapted to the target equipment;
determining the information gain of each existing attribute information to the existing server based on the adaptation influence result of the existing attribute information to the existing server and the target interface;
based on the information gain, selecting the decision attribute information as the child node of the target decision tree from the existing attribute information;
and generating the target decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result.
3. The method of claim 2, wherein determining an information gain of each of the existing attribute information for the existing server based on the adaptation impact result of the existing attribute information for the existing server and the target interface comprises:
determining a first information entropy between the target interface and the existing server based on the adaptation result of the target interface and the existing server;
determining a second information entropy between the existing attribute information and the existing server based on the attribution relationship between the existing attribute information and the existing server;
and determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy.
4. The method according to claim 3, wherein the determining a first information entropy between the target interface and the existing server based on the adaptation result of the target interface and the existing server comprises:
determining the first information entropy between the target interface and the existing server based on the adaptation result of the target interface and the existing server through a first operation formula;
the first operation formula includes:
Figure FDA0003222582220000021
wherein Ent (D) represents the first information entropy; d represents the set of existing servers; k equals 1 to indicate that the target interface is matched with the existing server, and k equals 2 to indicate that the target interface is not matched with the existing server; p is a radical ofkIndicating a ratio of said existing server of class k to all said existing serversExample (c);
the determining a second information entropy between the existing attribute information and the existing server based on the attribution relationship between the existing attribute information and the existing server includes:
determining the second information entropy between the existing attribute information and the existing server through a second operation formula based on the attribution relationship between the existing attribute information and the existing server;
the second operation formula includes:
Figure FDA0003222582220000022
wherein, Ent (D)v) Representing the second information entropy; n represents a total type of the existing attribute information; p is a radical ofvRepresenting a proportion of the existing servers having the existing attribute information of the vth type to all the existing servers;
the determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy includes:
determining the information gain of each existing attribute information to the existing server based on the first information entropy and the second information entropy through a third operation formula;
the third operation formula includes:
Figure FDA0003222582220000023
wherein Gain (D, a) represents the information Gain; a represents the existing attribute information; i Dv| represents the number of the existing servers having the existing attribute information of the vth type; | D | represents the total number of the existing servers.
5. The method of claim 4, wherein the selecting decision attribute information from the existing attribute information as child nodes of the target decision tree based on the information gain comprises:
sequencing the information gain values according to the sequence from high to low to obtain a sequencing result;
and selecting the existing attribute information corresponding to the information gain value of a preset part from the head of the sorting result as the decision attribute information.
6. The method of claim 5, wherein generating the target decision tree based on the information of the target interface, the decision attribute information, and the adaptation impact result comprises:
generating an initial decision tree based on the information of the target interface, the decision attribute information and the adaptation influence result;
determining an accuracy of the initial decision tree;
judging whether the accuracy meets a preset requirement;
if the accuracy does not meet the preset requirement, changing the value of the preset part, returning to the step of selecting the existing attribute information corresponding to the information gain value of the preset part from the head of the sorting result as the decision attribute information;
and if the accuracy meets the preset requirement, taking the initial decision tree as the target decision tree.
7. The method of claim 6, wherein after determining the adaptation result of the target server and the target interface based on the target attribute information and the target decision tree, further comprising:
and analyzing the adaptation result, and if a plurality of target interfaces with the same function are adapted to the target server, selecting the target interface corresponding to the second information entropy with the minimum value to be connected with the target server.
8. A server compatible system, comprising:
the first acquisition module is used for acquiring target attribute information of a target server;
the first determining module is used for determining a target interface to be connected with the target server in target equipment;
a second obtaining module, configured to obtain a pre-trained target decision tree corresponding to the target interface, where a root node of the target decision tree represents information of the target interface, a child node of the target decision tree represents attribute information of a server that is adapted to the target interface, and a leaf node of the target decision tree represents an adaptation result of the server and the target interface;
a second determining module, configured to determine an adaptation result of the target server and the target interface based on the target attribute information and the target decision tree, so as to determine a compatible result of the target server based on the adaptation result.
9. A server compatible device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the server compatible method according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the server-compatible method according to any one of claims 1 to 7.
CN202110962455.1A 2021-08-20 2021-08-20 Server compatibility method, system, equipment and computer readable storage medium Pending CN113672389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110962455.1A CN113672389A (en) 2021-08-20 2021-08-20 Server compatibility method, system, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110962455.1A CN113672389A (en) 2021-08-20 2021-08-20 Server compatibility method, system, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113672389A true CN113672389A (en) 2021-11-19

Family

ID=78544807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110962455.1A Pending CN113672389A (en) 2021-08-20 2021-08-20 Server compatibility method, system, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113672389A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114896192A (en) * 2022-06-09 2022-08-12 苏州华兴源创科技股份有限公司 Interface matching method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114896192A (en) * 2022-06-09 2022-08-12 苏州华兴源创科技股份有限公司 Interface matching method and device, computer equipment and storage medium
CN114896192B (en) * 2022-06-09 2024-04-09 苏州华兴源创科技股份有限公司 Interface matching method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104778173B (en) Target user determination method, device and equipment
CN110046706B (en) Model generation method and device and server
KR101852527B1 (en) Method for Dynamic Simulation Parameter Calibration by Machine Learning
CN109460775B (en) Data filling method and device based on information entropy
TWI590095B (en) Verification system for software function and verification mathod therefor
CN106485261A (en) A kind of method and apparatus of image recognition
CN110830234A (en) User traffic distribution method and device
CN112860756A (en) Exercise test-based learning resource recommendation method and device and computer equipment
CN109783459A (en) The method, apparatus and computer readable storage medium of data are extracted from log
CN113672389A (en) Server compatibility method, system, equipment and computer readable storage medium
CN114662676A (en) Model optimization method and device, electronic equipment and computer-readable storage medium
WO2021135322A1 (en) Automatic question setting method, apparatus and system
CN110580265B (en) ETL task processing method, device, equipment and storage medium
CN111242670B (en) Method and device for determining seed set of maximum influence degree index
CN110717787A (en) User classification method and device
CN110866437A (en) Color value determination model optimization method and device, electronic equipment and storage medium
JP2023053925A (en) Computer-implemented method, computer program and system for optimally performing stress test of big data management systems (workload generation for optimal stress test of big data management systems)
CN115203556A (en) Score prediction model training method and device, electronic equipment and storage medium
CN113836005A (en) Virtual user generation method and device, electronic equipment and storage medium
CN112464101A (en) Electronic book sorting recommendation method, electronic device and storage medium
CN111309706A (en) Model training method and device, readable storage medium and electronic equipment
US7650579B2 (en) Model correspondence method and device
CN116233103B (en) Interface adaptation method, device, communication equipment and storage medium
CN112800185B (en) Method and device for generating and matching text of interface node in mobile terminal
WO2022051974A1 (en) Code inspection method and apparatus applied to embedded platform, device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination