Port wiring assisting method, and model training method and apparatus
The federated learning model calculates port confidence and displays recommended ports to assist users in port connection, which solves the problem of cumbersome update and deployment processes in traditional embedded software development and improves connection accuracy and efficiency.
Patent Information
- Application Number
- PCT/CN2023/140138
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-14
- Filing Date
- 2023-12-20
- Publication Date
- 2024-10-17
AI Technical Summary
In traditional embedded software development, the code deployment process of updating and modifying functional algorithms is cumbersome, resulting in huge manpower consumption. In addition, the port connection process in complex models is cumbersome and inefficient. The existing automatic connection solution can only handle the connection of two components. The first port cannot correctly establish a multi-port connection.
Using a federated learning model, it obtains port information by receiving connection instructions, calculates port confidence, displays recommended ports, assists users in connecting, and allows users to switch or enter port names to adjust connections, improving connection accuracy and efficiency.
It improves the accuracy and efficiency of port wiring, simplifies the wiring process in complex models, reduces the need for manual error correction, and improves development efficiency.
Smart Images

Figure CN2023140138_17102024_PF_FP_ABST
Abstract
Description
A port connection auxiliary method, model training method and device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 14, 2023, with application number 202310420252.9 and invention name “A port connection auxiliary method, model training method and device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of vehicles, and in particular to a port connection assistance method, a model training method, and a device. Background Art
[0003] Traditional embedded software development involves two phases: designing the software's functional algorithms, implementing them in a specific programming language, and then deploying them to hardware for testing. Updating the functional algorithms, modifying the code, and then redeploying and retesting the program is a lengthy and labor-intensive process. To accelerate this process, model-based design (MBD) and development have seen significant development in recent years, with the emergence of a wide range of model-based development software tools covering model design, simulation, analysis, and verification. These tools enable engineers to perform model-based design and development using intuitive component diagrams within a visual, interactive platform. During the modeling development process, users add basic components based on the different functions provided by the modeling development tool to the development interface, connect the input and output ports of the components, and establish port connections to represent the data flow or control flow relationship between components. The connection process usually involves dragging the mouse or using shortcut keys from the output port of one component to the input of another component, and establishing connections one by one. In a complex model, there are as many as hundreds of ports to be connected, which brings certain difficulties to users in finding the target ports and connecting operations. The traditional connection process is cumbersome and inefficient, so it is very necessary to optimize the connection method and process in the modeling process.
[0004] Currently, a solution is available for automatically completing the connection operation by selecting the component where the port is located. However, this solution can only connect the first ports of two components. If there are many ports on a component or the port to be connected is not the first port, the connection cannot be established correctly using this method, requiring error correction, which affects the connection efficiency.
[0005] Summary of the Invention
[0006] The present application provides a port connection assistance method, a model training method and a device for improving the accuracy of auxiliary connection and improving the connection efficiency.
[0007] The first aspect of the present application provides a port connection assistance method, which includes: receiving a connection instruction, the connection instruction instructing to connect a first port; obtaining port information of the first port and port information of the second port according to the connection instruction, the second port being one or more currently idle ports; inputting the port information of the first port and the port information of the second port into a federated learning model to obtain the port confidence of the second port compared with the first port, the port confidence being the degree of correlation of the port information; displaying recommended ports on a display list on a development interface, the recommended ports being the n ports with the highest port confidence among the second ports, where n≥1; displaying auxiliary connections on the development interface, the auxiliary connections being the connections between the first port and the third port, the third port being the port with the highest port confidence among the recommended ports.
[0008] In the above aspects, when the first development platform receives a connection instruction for the first port, it determines the currently idle port as the second port, and obtains the port information of the first port and the port information of the second port and inputs them into the federated learning model, wherein the second port is one or more, and the federated learning model can output the port information of each second port and the port confidence of the first port, select the n ports with the highest confidence and display them to the user in the display list of the development interface, and display the connection between the third port with the highest port confidence and the first port on the development interface. Since the port confidence is the degree of correlation between the port information of the second port and the port information of the first port, selecting the third port as the connection port can improve the accuracy of the auxiliary connection and improve the connection efficiency.
[0009] In one possible implementation, after the auxiliary connection is displayed on the development interface, the method further includes: receiving a switching instruction from the user, the switching instruction instructing to switch to a fourth port, where the fourth port is a port on the display list; and adjusting the auxiliary connection to a connection between the first port and the fourth port.
[0010] In the above possible implementation manner, the third port may not be the port that the user wants to connect to, but may be another port with high confidence on the display list. The user can send a switching instruction to the first development platform, instructing to switch to the fourth port. After receiving the switching instruction, the first development platform can cancel the connection between the first port and the third port, and adjust the auxiliary connection to the connection between the first port and the fourth port, thereby improving the flexibility of the solution.
[0011] In a possible implementation, before receiving the user's switching instruction, the method further includes: receiving a port name input by the user; and displaying ports related to the port name in a display list.
[0012] In the above possible implementation, the ports on the display list may not be the ports that the user wants to connect to. The user can directly enter the port name of the port to which they want to connect. The first development platform will then change the ports in the display list to the ports corresponding to the port name entered by the user, and will display the auxiliary connection between the port corresponding to the port name and the first port on the development interface. The port name entered by the user does not necessarily need to be a complete name. In this case, the first development platform can automatically match the ports associated with the entered name based on the name entered by the user and display them in the display list. The user can then select one of the ports as the port for the auxiliary connection with the first port, and send a switching instruction to the first development platform, thereby increasing the flexibility of the solution.
[0013] In a possible implementation, after displaying the connection between the first port and the port with the highest port confidence among the recommended ports, the method further includes: receiving a confirmation instruction from the user; and performing the connection according to the auxiliary connection in response to the confirmation instruction.
[0014] In the above possible implementation manner, the auxiliary connection is only used as an example preview connection and is not an actual connection between the two ports. The auxiliary connection is only materialized after user confirmation. That is, the first development platform connects the two ports according to the connection method of the auxiliary connection only after receiving the user's confirmation instruction, thereby improving the accuracy of the actual connection.
[0015] In a possible implementation, the port information includes multiple of the port name, port type, data type transmitted by the port, component type, component category, location of the port in the interface, and name of the component where the port is located.
[0016] In one possible implementation, inputting the port information of the first port and the port information of the second port into the federated learning model includes: filtering the second port according to the port type, data type, and component type of the first port to obtain a fifth port; and inputting the port information of the first port and the port information of the fifth port into the federated learning model.
[0017] In the above possible implementation, before inputting the port information of the first port and the port information of the second port into the federated learning model, the first development platform may further filter the second ports. Specifically, the first development platform filters the second ports whose port information does not meet the port type, data type, and component type requirements of the first port. The remaining second ports are the fifth ports. The first development platform can input the port information of the first port and the port information of the fifth port into the federated learning model, eliminating the need to calculate the port data of all second ports, thereby reducing the computational effort.
[0018] In one possible implementation, the federated learning model includes the weight of the port name, the weight of the component type, the weight of the port position in the interface, and the weight of the name of the component in which the port is located.
[0019] In one possible implementation, the method further includes: obtaining port information of a sixth port and port information of a first connection port, where the sixth port is one or more currently idle ports, and the first connection port is a connection port determined by a user; sending the port information of the sixth port and the port information of the first connection port to a federated learning server; receiving a training model from the federated learning server, where the training model is obtained by training the port information of the sixth port and the port information of the first connection port by the federated learning server; and updating the federated learning model according to the training model.
[0020] In the above possible implementation, for the federated learning model used to calculate port confidence, with the user's consent, the federated learning server can collect the user's connection information during the model development process and generate a local dataset. Based on the federated learning method, the confidence calculation model is optimized to make the recommendation results more accurate. The federated learning server can obtain from the first development platform an idle port in the development interface of the first development platform as the sixth port. The idle ports in the development interface can be one or more. The federated learning server can promptly train the local federated learning model based on the port information of the sixth port and the port information of the first connection port, obtain a trained model, and send the trained model to the first development platform to update the local federated learning model of the first development platform and improve the accuracy of the port confidence.
[0021] The second aspect of the present application provides a model training method, which includes: receiving port information of the sixth port and the port information of the first connection port from the first development platform, the sixth port is one or more currently idle ports, and the first connection port is a connection port determined by the user; training the port information of the sixth port and the port information of the first connection port to obtain a training model; and sending the training model to the first development platform.
[0022] In the above aspects, for the federated learning model used to calculate port confidence, with the user's consent, the federated learning server can collect the user's connection information during the model development process and generate a local dataset. Based on the federated learning method, the confidence calculation model is optimized to make the recommendation results more accurate. The federated learning server can obtain from the first development platform an idle port in the development interface of the first development platform as the sixth port. The idle ports in the development interface can be one or more. The federated learning server can promptly train the local federated learning model based on the port information of the sixth port and the port information of the first connection port, obtain a trained model, and send the trained model to the first development platform to update the local federated learning model of the first development platform and improve the accuracy of the port confidence.
[0023] In one possible implementation, the method further includes: receiving port information of a seventh port and port information of a second connection port from a second development platform, the seventh port being one or more currently idle ports, and the second connection port being a connection port determined by a user; and training the port information of the seventh port and the port information of the second connection port to adjust the training model.
[0024] In the above possible implementation, based on the characteristics of the federated learning server, the federated learning server can also receive information from other development platforms (such as a second development platform) and obtain an idle port in the development interface of the second development platform as the seventh port. The idle ports in the development interface can be one or more. The federated learning server can promptly train the local federated learning model based on the port information of the sixth port and the port information of the first connection port, obtain the trained training model, and send the trained model to the first development platform to update the local federated learning model of the first development platform. If the data uploaded by the second development platform is uploaded at the same time or later than the data uploaded by the first development platform, the training model sent to the first development platform can be adjusted by training the data uploaded by the second development platform to improve the calculation accuracy of the port confidence.
[0025] A third aspect of the present application provides a port connection assistance device that can implement the method described in the first aspect or any possible implementation of the first aspect. The device includes corresponding units or modules for executing the method described above. The units or modules included in the device can be implemented through software and / or hardware. The device can be, for example, a network device, or a chip, chip system, or processor that supports the network device in implementing the method described above. It can also be a logic module or software that can implement all or part of the network device's functions.
[0026] In a fourth aspect, the present application provides a model training device that can implement the method in the second aspect or any possible implementation of the second aspect. The device includes corresponding units or modules for executing the above-mentioned method. The units or modules included in the device can be implemented in software and / or hardware. The device can be, for example, a network device, or a chip, chip system, or processor that supports the network device to implement the above-mentioned method, or a logic module or software that can implement all or part of the network device functions.
[0027] In a fifth aspect, the present application provides a computer device, comprising: a processor coupled to a memory, the memory being configured to store instructions, wherein when the instructions are executed by the processor, the computer device implements the method of the first aspect or any possible implementation of the first aspect. The computer device may be, for example, a network device, or a chip or chip system that supports the network device in implementing the method.
[0028] In a sixth aspect, the present application provides a computer device, comprising: a processor coupled to a memory, the memory being configured to store instructions, wherein when the instructions are executed by the processor, the computer device implements the method of the second aspect or any possible implementation of the second aspect. The computer device may be, for example, a network device, or a chip or chip system that supports the network device in implementing the method.
[0029] The seventh aspect of the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed by a processor, the method provided by the aforementioned first aspect or any possible implementation method of the first aspect, or the aforementioned second aspect or any possible implementation method of the second aspect is implemented.
[0030] In an eighth aspect, the present application provides a computer program product, which includes computer program code. When the computer program code is executed on a computer, it implements the method provided by the aforementioned first aspect or any possible implementation method of the first aspect, or the aforementioned second aspect or any possible implementation method of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] FIG1 is an architecture diagram of a model-based development provided by an embodiment of the present application;
[0032] FIG2 is a flow chart of a port connection assistance method provided in an embodiment of the present application;
[0033] FIG3 is a schematic diagram of an inter-port distance and a diagonal provided in an embodiment of the present application;
[0034] FIG4 is a schematic diagram of a display list and auxiliary connections provided by an embodiment of the present application;
[0035] FIG5 is a schematic diagram of another display list and auxiliary connections provided by an embodiment of the present application;
[0036] FIG6 is a schematic diagram of a process for completing auxiliary connection on a first development platform according to an embodiment of the present application;
[0037] FIG7 is a schematic diagram of auxiliary connections of a first development platform provided in an embodiment of the present application;
[0038] FIG8 is a schematic diagram of a process of training a federated learning model on a federated learning server according to an embodiment of the present application;
[0039] FIG9 is a schematic structural diagram of an auxiliary connection system provided in an embodiment of the present application;
[0040] FIG10 is a schematic structural diagram of a port connection auxiliary device provided in an embodiment of the present application;
[0041] FIG11 is a schematic structural diagram of a model training device provided in an embodiment of the present application;
[0042] FIG12 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application;
[0043] FIG13 is a schematic structural diagram of another computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The present application provides a port connection assistance method, a model training method and a device for improving the accuracy of auxiliary connection and improving the connection efficiency.
[0045] The following describes the embodiments of the present application in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present application, rather than all the embodiments. Those skilled in the art will appreciate that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0046] The terms "first," "second," and the like in the specification and claims of this application and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or apparatus.
[0047] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0048] In addition, numerous specific details are provided in the detailed description below to better illustrate the present application. Those skilled in the art will appreciate that the present application can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present application.
[0049] First, some technical terms involved in the embodiments of this application are introduced.
[0050] Embedded system: An embedded system generally consists of four parts: an embedded microprocessor, peripheral hardware devices, an embedded operating system, and user applications. It is used to implement functions such as controlling, monitoring, or managing other devices.
[0051] Embedded software: Embedded software is software designed based on embedded systems. It is also a type of computer software, consisting of programs and their documentation, and is an important part of embedded systems.
[0052] Model-based development is a software design method that uses models. Compared to traditional software development processes, it enables developers to develop software faster and at a lower cost. It is applicable to industries such as signal processing, control systems, and communications. Models are central to the entire development process, encompassing requirements, design, implementation, and testing. It is widely used in the aerospace and automotive sectors.
[0053] Model-based development: Another way to express model-based development.
[0054] Model-based development tool: a model-based software development platform.
[0055] What you see is what you get: What you see is what you get in the embodiments of the present application means that the configuration and generation of code generation are integrated, the configuration is performed directly based on the generated target language code, and the code is refreshed in real time after configuration.
[0056] Confidence: Confidence, also known as reliability, confidence level, or confidence coefficient, is used to estimate a population parameter using sampling. Due to the randomness of the sample, the conclusion is always uncertain. Therefore, a probability statement method, known as the interval estimation method in mathematical statistics, is used. The probability that the estimated value is within a certain allowable error range relative to the population parameter is determined. This probability is called the confidence level.
[0057] Weight: Weight is a relative concept, referring to a certain indicator. The weight of an indicator refers to its relative importance in the overall evaluation.
[0058] Federated learning (FL), a distributed machine learning algorithm, enables multiple clients, such as mobile devices or edge servers, to collaborate with the server to train models and update algorithms without leaving the data domain, ultimately yielding a trained global model. This means that during the machine learning process, each participant can leverage the data of others for joint modeling. Without sharing data resources, the parties can jointly train data and build a shared machine learning model without leaving the local data domain.
[0059] Traditional embedded software development involves two phases: designing the software's functional algorithms, implementing them in a specific programming language, and then deploying them to hardware for testing. Updating the functional algorithms, modifying the code, and then redeploying and retesting the program is a lengthy and labor-intensive process. To accelerate this process, model-based design (MBD) and development have seen significant development in recent years, with the emergence of a wide range of model-based development software tools covering model design, simulation, analysis, and verification. These tools enable engineers to perform model-based design and development using intuitive component diagrams within a visual, interactive platform. Please refer to Figure 1. As shown in Figure 1, it is an architecture diagram of a model-based development provided by an embodiment of the present application. The architecture includes a development platform 10, which is a model-based development tool. The development process can be displayed through a development interface 101. For example, component A1011 and component B1012 can be added to the development interface 101, wherein the number of connection ports of component A1011 and component B1012 is not limited. In Figure 1, the ports of component A1011 include A_1, A_2, A_3 and A_4, and the ports of component B1012 include B_1, B_2, B_3 and B_4 as an example. Connecting the input and output ports of the components to establish port connections represents the data flow or control flow relationship between the components. The connection process can be to drag the mouse or shortcut key from the output port of one component to the input of another module, and establish connections one by one. For example, as shown in Figure 1, the connection can be dragged from the output port A_1 to the input port B_2 by the mouse, indicating that the data of component A1011 flows to component B1012.
[0060] In a complex model, there are hundreds of ports to be connected, which makes it difficult for users to find the target ports and perform connection operations. The traditional connection process is cumbersome and inefficient, so it is necessary to optimize the connection method and process during the modeling process.
[0061] Currently, a solution is available for automatically completing the connection operation by selecting the component where the port is located. However, this solution can only connect the first ports of two components. If there are many ports on a component or the port to be connected is not the first port, the connection cannot be established correctly using this method, requiring error correction, which affects the connection efficiency.
[0062] To solve the above problems, an embodiment of the present application provides a port connection assistance method, which is described as follows.
[0063] Please refer to FIG2 , which is a flow chart of a port connection assistance method provided in an embodiment of the present application. The method includes:
[0064] Step 201: The first development platform receives a connection instruction, where the connection instruction instructs to connect to a first port.
[0065] In this embodiment, when a user needs to connect a first port, the user can notify the first development platform via a connection instruction. The connection instruction can be generated by the user clicking or double-clicking the first port with a mouse, or by the user inputting the name of the first port, which is not limited here.
[0066] Step 202: The first development platform obtains port information of the first port and port information of the second port according to the connection instruction, where the second port is one or more currently idle ports.
[0067] In this embodiment, when the first development platform determines that the first port needs to be connected according to the connection instruction, it can determine the connectable ports in the current development interface, that is, the idle ports of all components, use the idle ports as the second port, and then collect the port information of the first port and the port information of the second port.
[0068] Step 203: The first development platform inputs the port information of the first port and the port information of the second port into the federated learning model to obtain the port confidence of the second port compared with the first port, where the port confidence is the degree of correlation of the port information.
[0069] In this embodiment, after obtaining the port information of the first port and the port information of the second port, the first development platform can match the degree of correlation between the port information of the first port and the port information of the second port. Specifically, the port information of the first port and the port information of the second port are input into a federated learning model. The federated learning model can then output a port confidence level indicating the degree of correlation, i.e., the degree of match between the port information of the second port and the port information of the first port. The use of a federated learning model can improve the accuracy of the port confidence level by training the model with data from multiple parties while protecting data privacy.
[0070] In an example, port information may include multiple of the following: port name, port type, data type transmitted by the port, component type, component type, port position in the interface, and the name of the component where the port is located. The port name indicates the position of the port in a certain component. The port type indicates whether the port is an output or input port, and the data type includes the type of data output or input by the port. Component types are divided into three types: source component, calculation component, and sink component. A source component refers to a component used to generate a data source, with only output ports and no input ports. A sink component refers to a component that is a data aggregation component, with only input ports and no output ports. A calculation component refers to a component that calculates and processes port data before outputting it, with both input and output ports. A component type refers to the functional type of a component, such as a display class, a constant output class, a comparator, an adder, etc.
[0071] Among them, the two connected ports must meet the preset conditions, that is, one of the two ports must be an input port and the other must be an output port, and the data types transmitted by the two ports must match, that is, the transmitted data types must be exactly the same or compatible, and the data dimensions must be consistent, and there can also be specific constraints set in advance. For example, Class A components must be connected to Class B components. Before inputting the port information of the first port and the port information of the second port into the federated learning model, the first development platform can also filter the second port, that is, filter the ports in the port information of the second port that do not meet the port type, data type and component type of the first port, and the remaining second ports are the fifth ports. The first development platform can input the port information of the first port and the port information of the fifth port into the federated learning model, without having to calculate the port data of all second ports, thereby reducing the amount of calculation.
[0072] The federated learning model in the embodiment of the present application may include weights for port information that is not involved in filtering, namely, weight 1 for the port name, weight 2 for the component type, weight 3 for the position of the port in the interface, and weight 4 for the name of the component in which the port is located. In the port confidence, the proportion of the port name matching between the first port and the fifth port is weight 1, the proportion of the component type matching between the first port and the fifth port is weight 2, the proportion of the distance between the positions of the first port and the fifth port in the interface is weight 3, and the proportion of the name matching between the first port and the fifth port is weight 4. The weight values of each feature are initially based on the empirical values during actual development.
[0073] Formal description of confidence calculation: Confidence = Feature distance Weight distance +Feature name Weight name +Feature dataTypeWeight dataType +FeaturecomponentType·WeightcomponentType
[0074] Where Confidence is the confidence calculation result;
[0075] Feature distance is the eigenvalue of the distance between ports. The distance between ports is calculated based on the coordinates of the ports on the interface. The eigenvalue is calculated based on the size of the modeling interface and is the diagonal length of the current interface divided by the distance between ports, as shown in Figure 3 below, which shows a schematic diagram of the distance between ports and the diagonal.
[0076] Weight distance is the feature weight of distance, and takes the empirical value as 0.1.
[0077] Feature name and Weight name are the feature value and feature weight of the port name. The feature value is the prefix and suffix matching degree of the name string, that is, the ratio of the matching string length (match with longer prefix or suffix) to the source port name length. The empirical value of the feature weight is 0.45.
[0078] Feature dataType and Weight dataType The eigenvalue and weight of the data type transmitted by the port. The eigenvalue varies depending on the degree of data type matching. If the types are identical, the eigenvalue is 1; if the type alias matches, the eigenvalue is 0.8. Alias matching refers to the same actual port type, but one or both use an alias for that type. For example, if the two port types are i32 and int32_t, respectively, the actual type of both ports is int32. If the types are compatible, such as if the port output is of type int32, its connection can be of type double, the eigenvalue is 0.4. If the types are incompatible, such as if the port types are int32 and String, the eigenvalue is 0. The empirical weight for the data type transmitted by the port is 0.4.
[0079] FeaturecomponentType and WeightcomponentType are the characteristic value and weight of the component type to which the port belongs, respectively. The characteristic value is 0.8 when a source component connects to a compute component, 0.8 when a compute component connects to a compute component, 0.6 when a compute component connects to a sink component, and 0.2 when a source component connects to a sink component. The empirical weight of the component type to which the port belongs is 0.05.
[0080] For federated learning models used to calculate port confidence, with user consent, the federated learning server can collect user connection information during the model development process and generate a local dataset. Based on federated learning methods, the confidence calculation model can be optimized to achieve more accurate recommendation results. The federated learning server can obtain an idle port in the development interface of the first development platform as the sixth port. The idle ports in the development interface can be one or more. The federated learning server can promptly train the local federated learning model based on the port information of the sixth port and the port information of the first connection port, obtain a trained model, and send the trained model to the first development platform to update the local federated learning model of the first development platform.
[0081] Among them, the first connection port actually determined by the user includes a starting port and a target port. Among them, the connection actually determined by the user may be a connection determined by a solution other than the present application, such as a connection port connected by the user himself by dragging the mouse, or it may be a connection determined by the user in an embodiment of the present application that is not a port with the highest port confidence, which is not limited here.
[0082] Based on the characteristics of the federated learning server, the federated learning server can also receive information from other development platforms (such as the second development platform) and obtain an idle port in the development interface of the second development platform as the seventh port. The idle ports in the development interface can be one or more. The federated learning server can promptly train the local federated learning model based on the port information of the sixth port and the port information of the first connection port, obtain the trained training model, and send the trained model to the first development platform to update the local federated learning model of the first development platform. Alternatively, if the data uploaded by the second development platform is uploaded at the same time or later than the data uploaded by the first development platform, the training model sent to the first development platform can be adjusted by training the data uploaded by the second development platform to improve the calculation accuracy of the port confidence.
[0083] Step 204: The first development platform displays recommended ports on a display list of the development interface. The recommended ports are n ports with the highest port confidence among the second ports, where n≥1.
[0084] In this embodiment, after obtaining the port confidence of each second port output by the federated learning model, the first development platform can sort all port confidences from high to low. The first development platform can determine that the second ports corresponding to the top n port confidences have a higher degree of correlation with the first port than the other second ports, that is, these n second ports are likely to be the ports that the user ultimately wants to connect to. The first development platform can display these n second ports as recommended ports in a display list on the development interface. The display list can be displayed at any boundary of the development platform or at the location of the first port, which is not limited here.
[0085] Step 205: The first development platform displays an auxiliary connection on the development interface. The auxiliary connection is a connection between the first port and the third port. The third port is the port with the highest port confidence among the recommended ports.
[0086] In this embodiment, after determining the port confidence of each second port, the first development platform can select the port with the highest port confidence among the recommended ports as the third port. The third port is most likely to be the port that the user ultimately wants to connect to. The first development platform can provide the user with an auxiliary connection example of the first port and the third port, that is, the first development platform automatically connects the first port and the third port, and the user does not need to connect manually.
[0087] In one example, based on the "what you see is what you get" concept, a connection between the port to be connected and the target port is generated in real time based on the user's selected target in the display list and displayed in the interface. When the user switches targets in the display list, the connection is refreshed in real time. When the connection target meets the expectations, the user can confirm the connection establishment to complete the connection creation. In other words, the third port may not be the port the user wants to connect to, but rather another port with a high confidence rating on the display list. The user can send a switch instruction to the first development platform, instructing to switch to the fourth port. After receiving the switch instruction, the first development platform can cancel the connection between the first and third ports and adjust the auxiliary connection to the connection between the first and fourth ports. The user can provide the switch instruction by clicking or double-clicking the fourth port in the display list, which is not limited here.
[0088] In another example, the ports on the display list may not all be the ports the user wants to connect to. The user can directly enter the port name of the port they want to connect to. The first development platform will then change the ports in the display list to the ports corresponding to the port name entered by the user, and will display the auxiliary connection between the port corresponding to the port name and the first port on the development interface. The port name entered by the user does not necessarily need to be a complete name. In this case, the first development platform can automatically match the ports associated with the entered name based on the name entered by the user and display them in the display list. The user can then select one of the ports as the port for the auxiliary connection to the first port, and send a switching instruction to the first development platform.
[0089] In one example, the auxiliary connection is merely a preview of an example connection and is not an actual connection between the two ports. The auxiliary connection is not materialized until the user confirms it. That is, the first development platform connects the two ports according to the connection method of the auxiliary connection only after receiving the user's confirmation instruction. The user's confirmation instruction may be generated by clicking a confirmation button.
[0090] For example, the display list and auxiliary connections can be viewed in the diagram shown in Figure 4. The rectangular shapes in Figure 4 represent basic components provided by the development platform, while the triangles and irregular shapes represent ports. A user triggers a connection recommendation for the SpeedOut port on the leftmost module. As shown in the left image of Figure 4, a floating window displays five recommended ports (AddSubtract.in0, Display_1, Assembler.in, Out_1, and Out). The recommended ports are sorted by port confidence, and by default, the auxiliary connection for the port with the highest confidence level (AddSubtract.in0) is previewed in the development interface. Users can switch between the recommended results. For example, a preview of the connection from the SpeedOut port to the AddSubtract.in0 port is shown. The user confirms the correct connection and completes the final connection, as shown in the right image of Figure 4.
[0091] If the recommended ports do not contain the port the user wants, the user can directly enter the port name. Please refer to Figure 5, which is a schematic diagram of another display list and auxiliary connection provided by an embodiment of the present application. The rectangular pattern in Figure 5 is the basic component provided by the development platform, and the triangle and irregular shape are ports. The user triggers the connection recommendation of the SpeedOut port on the leftmost module. As shown in the left figure of Figure 5, 5 recommended ports (AddSubtract.in0, Display_1, Assembler.in, Out_1, Out) are given in the display list of the floating window. The recommended ports are sorted according to the port confidence level. By default, the auxiliary connection of the port with the highest port confidence level (AddSubtract.in0) is previewed in the development interface. Among them, the 5 recommended ports in the display list are not the ports the user wants. The user can search for the port target by name in the search box of the floating window. Please refer to the right figure of Figure 5. Among them, the user does not need to enter the complete port name, such as sig. The port signal is searched from the connectable ports and presented in the recommended results. The user can select signal and confirm to complete the final connection.
[0092] 6 , wherein step 601: the first development platform triggers a connection recommendation; step 602: the first development platform collects port information, including the port information of the first port and the port information of the second port; step 603: the first development platform performs port confidence calculation on the port information of the first port and the port information of the second port; step 604: the first development platform displays the recommended port in a display list; step 605: when the recommended port does not include the port required by the user, the first development platform can determine the required port through a fuzzy search, that is, the user enters the port name through the search box, and the corresponding port can be displayed in the display list as a recommended port; step 606: the first development platform previews the auxiliary connection in the development interface; step 607: the first development platform completes the connection according to the user's confirmation instruction.
[0093] Specifically, the schematic diagram of the auxiliary connection of the first development platform can be shown in FIG7 , and the user can trigger the auxiliary connection process by double-clicking the source port with the left mouse button, as shown in ① in FIG7 .
[0094] The first development platform collects all port information in the current canvas.
[0095] The first development platform obtains all available ports as the search space for recommended ports based on the acquired port information, port type, data type transmitted by the port, and component type, based on a decision tree algorithm, and calculates the port confidence based on the port features and their weight values used to calculate the confidence.
[0096] In the example, the source port name is Channel_LDMpHydAct, the two port names in the search space are LDMpHydAct and v_veh_x, the port data types are completely matched, the diagonal length of the modeling interface is 640.7 pixel units, the distance from Channel_LDMpHydAct to LDMpHydAct is 70.8 pixel units, and the distance to v_veh_x is 65.1 pixel units. The name matching degrees are 0.56 and 0 respectively, and the component types are all computing components connected to computing components, with an eigenvalue of 0.8.
[0097] The confidence level of Channel_LDMpHydAct connected to LDMpHydAct is:
[0098] (640.7 / 70.8)*0.1+0.56*0.45+1*0.4+0.8*0.05=1.60
[0099] The confidence level of Channel_LDMpHydAct connection v_veh_x is:
[0100] (640.7 / 65.1)*0.1+0*0.45+1*0.4+0.8*0.05=1.42
[0101] The confidence calculation method for other ports is similar.
[0102] The confidence calculation results for the first development platform display the top five most confident port names and component names, as shown in step ② of Figure 7. Based on the confidence calculation results from the previous step, the connection LDMpHydAct has a higher confidence than the connection v_veh_x, so LDMpHydAct is ranked first in the displayed results list.
[0103] The connection effect preview module of the first development platform refreshes the interface, and implements the effect diagram after displaying and selecting the port connection, as shown in ③ in Figure 7.
[0104] The user confirms by pressing the Enter key, and the first development platform completes the connection.
[0105] In an embodiment of the present application, the process of training a federated learning model by a federated learning server can be shown in FIG8 , where step 801: the federated learning server collects connection data, where the connection data is the port information of idle ports and the port information of connected ports determined by the user; step 802: the federated learning server uses the federated learning method to perform model optimization training using the connection data and cloud-based machine learning; step 803: the federated learning server sends the optimized training model to the development platform to update the model.
[0106] In an embodiment of the present application, when the first development platform receives a connection instruction for the first port, it determines the currently idle port as the second port, and obtains the port information of the first port and the port information of the second port and inputs them into the federated learning model, wherein the second port is one or more, and the federated learning model can output the port information of each second port and the port confidence of the first port, select the n ports with the highest confidence and display them to the user in the display list of the development interface, and display the connection between the third port with the highest port confidence and the first port on the development interface. Since the port confidence is the degree of correlation between the port information of the second port and the port information of the first port, selecting the third port as the connection port can improve the connection accuracy and improve the connection efficiency.
[0107] The structural diagram of the auxiliary connection system of an embodiment of the present application can be shown in Figure 9. The system includes a first development platform 91 and a federated learning server 92, wherein the first development platform 91 includes a front-end port information collection module 911, a result display module 912 and a dynamic preview module 913, a back-end confidence calculation module 914, a fuzzy search module 915 and a data acquisition module 916, and the federated learning server 92 includes a federated machine learning module 921.
[0108] When the user triggers the auxiliary connection, the front-end port collection module 911 first collects all the connectable port information, the confidence calculation module 914 first determines the search space of available ports based on the decision tree algorithm, and then calculates the port confidence according to the feature information of the port. The result display module 912 displays several recommended results according to the confidence level. When the user switches the selection in the recommended results, the dynamic preview module 913 draws the connection preview effect on the front-end modeling interface.
[0109] When the user uses the fuzzy search function, the fuzzy search module 915 matches the search results according to the input data and displays them in the result display module 912. Similarly, the dynamic preview module 913 provides a connection preview effect of the search port.
[0110] When a user establishes a connection using this solution or other methods, the data acquisition module 916 collects connection port features and establishes a local data set, which is then trained offline by the cloud-based federated machine learning module 921. The confidence calculation module 914 can update the model after cloud-based training to optimize the inference effect.
[0111] Regarding the port auxiliary connection method described above, the device for executing the method can also be described as follows.
[0112] Please refer to FIG10 , which is a schematic diagram of the structure of a port auxiliary connection device provided in an embodiment of the present application. The device 100 includes:
[0113] The transceiver unit 1001 is configured to receive a connection instruction, where the connection instruction instructs connection to the first port;
[0114] Processing unit 1002 is used to obtain port information of a first port and port information of a second port according to a connection instruction, where the second port is one or more currently idle ports; input the port information of the first port and the port information of the second port into a federated learning model to obtain a port confidence of the second port compared to the first port, where the port confidence is the degree of relevance of the port information; display recommended ports on a display list on a development interface, where the recommended ports are the n ports with the highest port confidence among the second ports, where n ≥ 1; and display auxiliary connections on the development interface, where the auxiliary connections are connections between the first port and the third port, where the third port is the port with the highest port confidence among the recommended ports.
[0115] The processing unit 1001 is used to execute step 201 in the method embodiment of FIG. 2 , and the processing unit 1002 is used to execute steps 202 to 205 in the method embodiment of FIG. 2 .
[0116] Optionally, the transceiver unit 1001 is further configured to:
[0117] receiving a switching instruction from a user, the switching instruction instructing to switch to a fourth port, the fourth port being a port on the display list;
[0118] The processing unit 1002 is further configured to:
[0119] Adjust the auxiliary connection line to connect the first port and the fourth port.
[0120] Optionally, the transceiver unit 1001 is further configured to:
[0121] Receive the port name entered by the user;
[0122] The processing unit 1002 is further configured to:
[0123] Displays the ports associated with the port name in the display list.
[0124] Optionally, the transceiver unit 1001 is further configured to:
[0125] Receive the user's confirmation instruction;
[0126] The processing unit 1002 is further configured to:
[0127] Connect the auxiliary lines according to the confirmation instructions.
[0128] Optionally, the port information includes multiple of the port name, port type, data type transmitted by the port, component type, component type, position of the port in the interface, and name of the component where the port is located.
[0129] Optionally, the processing unit 1002 is specifically configured to:
[0130] filtering the second port according to the port type, data type, and component type of the first port to obtain a fifth port;
[0131] The port information of the first port and the port information of the fifth port are input into the federated learning model.
[0132] Optionally, the federated learning model includes a weight of a port name, a weight of a component type, a weight of a position of the port in the interface, and a weight of a name of a component in which the port is located.
[0133] Optionally, the processing unit 1002 is further configured to:
[0134] Acquire port information of a sixth port and port information of a first connection port, where the sixth port is one or more currently idle ports, and the first connection port is a connection port determined by a user;
[0135] The transceiver unit 1001 is further configured to:
[0136] Send the port information of the sixth port and the port information of the first connection port to the federated learning server;
[0137] Receiving a training model from a federated learning server, where the training model is obtained by the federated learning server through training of port information of the sixth port and port information of the first connection port;
[0138] The processing unit 1002 is further configured to:
[0139] Update the federated learning model based on the training model.
[0140] Please refer to FIG11 , which is a schematic diagram of the structure of a model training device provided in an embodiment of the present application. The device 110 includes:
[0141] The transceiver unit 1101 is configured to receive port information of a sixth port and port information of a first connection port from the first development platform, where the sixth port is one or more currently idle ports and the first connection port is a connection port determined by a user;
[0142] The processing unit 1102 is configured to train the port information of the sixth port and the port information of the first connection port to obtain a training model;
[0143] The transceiver unit 1101 is further configured to send the training model to the first development platform.
[0144] Optionally, the transceiver unit 1101 is further configured to:
[0145] Receiving port information of a seventh port and port information of a second connection port from the second development platform, where the seventh port is one or more currently idle ports, and the second connection port is a connection port determined by a user;
[0146] The processing unit 1102 is further configured to:
[0147] The port information of the seventh port and the port information of the second connection port are trained to adjust the training model.
[0148] Figure 12 shows a possible logical structure diagram of a computer device 120 provided in an embodiment of the present application. The computer device 120 includes a processor 1201, a communication interface 1202, a storage system 1203, and a bus 1204. The processor 1201, the communication interface 1202, and the storage system 1203 are interconnected via the bus 1204. In an embodiment of the present application, the processor 1201 is used to control and manage the actions of the computer device 120. For example, the processor 1201 is used to execute the steps performed by the first development platform in the method embodiment of Figure 2. The communication interface 1202 is used to support communication between the computer device 120. The storage system 1203 is used to store program code and data of the computer device 120.
[0149] The processor 1201 may be a central processing unit (CPU), a general-purpose processor (GPOR), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device (PLD), a transistor logic device (TLD), a hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor 1201 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The bus 1204 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, for example. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG. 12 shows only one thick line, but this does not imply that there is only one bus or only one type of bus.
[0150] The transceiver unit 1001 in the apparatus 100 is equivalent to the communication interface 1202 in the computer device 120 , and the processing unit 1002 in the apparatus 100 is equivalent to the processor 1201 in the computer device 120 .
[0151] The computer device 120 of this embodiment may correspond to the first development platform in the method embodiment of FIG. 2 . The communication interface 1202 in the computer device 120 may implement the functions and / or various steps of the first development platform in the method embodiment of FIG. 2 . For the sake of brevity, they will not be described in detail here.
[0152] FIG13 shows another possible logical structure diagram of a computer device 130 provided in an embodiment of the present application. The computer device 130 includes: a processor 1301, a communication interface 1302, a storage system 1303, and a bus 1304. The processor 1301, the communication interface 1302, and the storage system 1303 are interconnected via the bus 1304. In an embodiment of the present application, the processor 1301 is used to control and manage the actions of the computer device 130. For example, the processor 1301 is used to execute the steps performed by the federated learning server in the method embodiment of FIG2. The communication interface 1302 is used to support the computer device 130 in communication. The storage system 1303 is used to store the program code and data of the computer device 130.
[0153] The processor 1301 may be a central processing unit (CPU), a general-purpose processor (GPOR), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device (PLD), a transistor logic device (TLD), a hardware component, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor 1301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The bus 1304 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, for example. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG. 13 shows only one thick line, but this does not imply that there is only one bus or only one type of bus.
[0154] The transceiver unit 1101 in the apparatus 110 is equivalent to the communication interface 1302 in the computer device 130 , and the processing unit 1102 in the apparatus 110 is equivalent to the processor 1301 in the computer device 130 .
[0155] The computer device 130 of this embodiment may correspond to the federated learning server in the method embodiment of FIG. 2 . The communication interface 1302 in the computer device 130 may implement the functions and / or various steps of the federated learning server in the method embodiment of FIG. 2 . For the sake of brevity, they are not described here.
[0156] It should be understood that the division of units in the above device is merely a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. Moreover, the units in the device can all be implemented in the form of software called through processing elements; or they can all be implemented in the form of hardware; or some units can be implemented in the form of software called through processing elements, and some units can be implemented in the form of hardware. For example, each unit can be a separately established processing element, or it can be integrated into a certain chip of the device. In addition, it can also be stored in the memory in the form of a program, called by a certain processing element of the device and perform the function of the unit. In addition, all or part of these units can be integrated together, or they can be implemented independently. The processing element described here can also be a processor, which can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each unit above can be implemented by the integrated logic circuit of the hardware in the processor element or in the form of software called through the processing element.
[0157] In one example, the unit in any of the above devices may be one or more integrated circuits configured to implement the above method, such as one or more application specific integrated circuits (ASICs), or one or more digital singnal processors (DSPs), or one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms. For another example, when the unit in the device can be implemented in the form of a processing element scheduler, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0158] In another embodiment of the present application, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When the processor of the device executes the computer-executable instructions, the device executes the method executed by the first development platform in the above method embodiment.
[0159] In another embodiment of the present application, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When the processor of the device executes the computer-executable instructions, the device executes the method executed by the federated learning server in the above method embodiment.
[0160] In another embodiment of the present application, a computer program product is provided, comprising computer-executable instructions stored in a computer-readable storage medium. When a processor of a device executes the computer-executable instructions, the device performs the method performed by the first development platform in the above method embodiment.
[0161] In another embodiment of the present application, a computer program product is provided, comprising computer-executable instructions stored in a computer-readable storage medium. When a processor of a device executes the computer-executable instructions, the device performs the method performed by the federated learning server in the above method embodiment.
[0162] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0163] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0164] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0165] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0166] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as 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.
Claims
1. A port connection auxiliary method, It is characterized in that include: receiving a connection instruction, wherein the connection instruction instructs connection to the first port; Acquire port information of the first port and port information of the second port according to the connection instruction, where the second port is one or more currently idle ports; Inputting the port information of the first port and the port information of the second port into a federated learning model to obtain a port confidence of the second port compared with the first port, wherein the port confidence is a correlation degree of the port information; Displaying recommended ports on a display list of a development interface, wherein the recommended ports are n ports with the highest port confidence among the second ports, where n≥1; An auxiliary connection is displayed on the development interface, where the auxiliary connection is a connection between the first port and a third port, and the third port is a port with the highest port confidence among the recommended ports.
2. The method according to claim 1, It is characterized in that After the auxiliary connection is displayed on the development interface, the method further includes: receiving a switching instruction from a user, wherein the switching instruction indicates switching to a fourth port, wherein the fourth port is a port on the display list; The auxiliary connection line is adjusted to be a connection line between the first port and the fourth port.
3. The method according to claim 2, It is characterized in that Before receiving the switching instruction from the user, the method further includes: Receive the port name entered by the user; The ports associated with the port name are displayed in the display list.
4. The method according to any one of claims 1 to 3, It is characterized in that After displaying the connection between the first port and the port with the highest port confidence among the recommended ports, the method further includes: Receive confirmation instructions from the user; Connecting is performed according to the auxiliary connection according to the confirmation instruction.
5. The method according to any one of claims 1 to 4, It is characterized in that The port information includes multiple of the port name, port type, data type transmitted by the port, component type, component type, location of the port in the interface, and name of the component where the port is located.
6. The method according to claim 5, It is characterized in that The inputting the port information of the first port and the port information of the second port into the federated learning model includes: filtering the second port according to the port type, the data type and the component type of the first port to obtain a fifth port; The port information of the first port and the port information of the fifth port are input into a federated learning model.
7. The method according to claim 6, It is characterized in that The federated learning model includes the weight of the port name, the weight of the component type, the weight of the position of the port in the interface, and the weight of the name of the component where the port is located.
8. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises: Acquire port information of a sixth port and port information of a first connection port, wherein the sixth port is one or more currently idle ports, and the first connection port is a connection port determined by a user; Sending the port information of the sixth port and the port information of the first connection port to the federated learning server; Receiving a training model from the federated learning server, where the training model is obtained by the federated learning server through training of the port information of the sixth port and the port information of the first connection port; The federated learning model is updated according to the training model.
9. A model training method, It is characterized in that include: Receiving port information of a sixth port and port information of a first connection port from the first development platform, wherein the sixth port is one or more currently idle ports, and the first connection port is a connection port determined by a user; Training the port information of the sixth port and the port information of the first connection port to obtain a training model; The training model is sent to the first development platform.
10. The method according to claim 9, It is characterized in that The method further comprises: Receiving port information of a seventh port and port information of a second connection port from a second development platform, wherein the seventh port is one or more currently idle ports, and the second connection port is a connection port determined by a user; The port information of the seventh port and the port information of the second connection port are trained to adjust the training model.
11. A port connection auxiliary device, It is characterized in that include: A transceiver unit, configured to receive a connection instruction, wherein the connection instruction indicates connection to the first port; a processing unit, configured to obtain port information of the first port and port information of the second port according to the connection instruction, wherein the second port is one or more currently idle ports; input the port information of the first port and the port information of the second port into a federated learning model to obtain a port confidence of the second port compared with the first port, wherein the port confidence is a correlation degree of the port information; Displaying recommended ports on a display list of a development interface, wherein the recommended ports are n ports with the highest port confidence among the second ports, where n≥1; An auxiliary connection is displayed on the development interface, where the auxiliary connection is a connection between the first port and a third port, and the third port is a port with the highest port confidence among the recommended ports.
12. The device according to claim 11, It is characterized in that The transceiver unit is also used for: receiving a switching instruction from a user, wherein the switching instruction indicates switching to a fourth port, wherein the fourth port is a port on the display list; The processing unit is also used for: The auxiliary connection line is adjusted to be a connection line between the first port and the fourth port.
13. The device according to claim 12, It is characterized in that The transceiver unit is also used for: Receive the port name entered by the user; The processing unit is also used for: The ports associated with the port name are displayed in the display list.
14. The device according to any one of claims 11 to 13, It is characterized in that The transceiver unit is also used for: Receive confirmation instructions from the user; The processing unit is also used for: Connecting is performed according to the auxiliary connection according to the confirmation instruction.
15. The device according to any one of claims 11 to 14, It is characterized in that The port information includes multiple of the port name, port type, data type transmitted by the port, component type, component type, location of the port in the interface, and name of the component where the port is located.
16. The device according to claim 15, It is characterized in that The processing unit is specifically used for: filtering the second port according to the port type, the data type and the component type of the first port to obtain a fifth port; The port information of the first port and the port information of the fifth port are input into a federated learning model.
17. The device according to claim 16, It is characterized in that The federated learning model includes the weight of the port name, the weight of the component type, the weight of the position of the port in the interface, and the weight of the name of the component where the port is located.
18. The device according to any one of claims 11 to 17, It is characterized in that The processing unit is also used for: Acquire port information of a sixth port and port information of a first connection port, wherein the sixth port is one or more currently idle ports, and the first connection port is a connection port determined by a user; The transceiver unit is also used for: Sending the port information of the sixth port and the port information of the first connection port to the federated learning server; Receiving a training model from the federated learning server, where the training model is obtained by the federated learning server through training of the port information of the sixth port and the port information of the first connection port; The processing unit is also used for: The federated learning model is updated according to the training model.
19. A model training device, It is characterized in that include: A transceiver unit, used to receive port information of a sixth port and port information of a first connection port from the first development platform, wherein the sixth port is one or more currently idle ports, and the first connection port is a connection port determined by a user; A processing unit, configured to train the port information of the sixth port and the port information of the first connection port to obtain a training model; The transceiver unit is further used to send the training model to the first development platform.
20. The device according to claim 19, It is characterized in that The transceiver unit is also used for: Receiving port information of a seventh port and port information of a second connection port from a second development platform, wherein the seventh port is one or more currently idle ports, and the second connection port is a connection port determined by a user; The processing unit is also used for: The port information of the seventh port and the port information of the second connection port are trained to adjust the training model.
21. A computer device, It is characterized in that include: processor and memory, The processor is configured to execute instructions stored in the memory, so that the computer device performs the method according to any one of claims 1 to 8.
22. A computer device, It is characterized in that include: processor and memory, The processor is configured to execute instructions stored in the memory, so that the computer device performs the method according to any one of claims 9 to 10.
23. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed on the computer, the computer is caused to execute the method according to any one of claims 1 to 10.
24. A computer program product, It is characterized in that When the computer program product is executed on a computer, the computer performs the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Port connection auxiliary method, model training method and device
CN118797795A
Virtual terminator model modeling and automatic ligature method based on machine learning
CN107247827A
Model processing method and device, terminal equipment and storage medium
CN115951973A
Multi-task based lifelong learning
US20200175362A1
Cited By
Wireless connection system for multi-node equipment control system and household air conditioning system
CN122496926A
