Method, device, storage medium and system for assisting reinforcement learning scene construction
By dividing the reinforcement learning scenario into functional fragments and building a visual operation platform, the problem of poor reusability of the existing platform is solved, and the efficient reuse of the reinforcement learning platform and the simplification of user operations are achieved.
Patent Information
- Application Number
- CN202310637499.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-08-30
AI Technical Summary
The existing reinforcement learning platform has poor reusability, resulting in many customized scenarios, inability to reuse, and high labor and time costs.
By dividing the reinforcement learning scene building process into multiple functional fragments and building a visual operation platform, users can drag and connect through the module display area and editing area to configure functional modules to improve reusability and lower the operating threshold.
It improves the reusability of the reinforcement learning platform, simplifies user operations, lowers the threshold in the construction process, and improves user experience and efficiency.
Smart Images

Figure CN118569403A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of machine learning, and in particular to a method, device, storage medium and system for assisting in building a reinforcement learning scenario. Background Art
[0002] Reinforcement learning is one of the three major branches of machine learning. In a reinforcement learning problem, there is a decision maker, which we usually call an agent. The area it interacts with is called the environment (env), and the current environment it is in is called the state. The agent will formulate its own execution actions based on the situation it observes, and the agent will be rewarded accordingly based on the execution actions of the agent. The purpose of the agent is to take a series of actions in the environment to maximize the cumulative return. The learning process of reinforcement learning is called deduction. The deduction process of reinforcement learning is a dynamic and constantly interactive process, and the required data is also generated through continuous interaction with the environment. However, the current reinforcement learning platforms generally have the problem of poor reusability. Summary of the invention
[0003] The method, device, storage medium and system for assisting in the construction of reinforcement learning scenarios provided by the present disclosure improve the reusability of the reinforcement learning platform and reduce the user's operating threshold by encapsulating the functional fragments in the process of reinforcement learning scenario construction and building a visual operation platform.
[0004] According to one aspect of an embodiment of the present disclosure, a method for assisting reinforcement learning scene construction is provided, including: displaying a scene construction page; wherein the scene construction page includes a module display area and an editing area, the module display area is used to display functional modules related to reinforcement learning, wherein the reinforcement learning scene construction process is divided into multiple functional fragments, and each functional module corresponds to a functional fragment; in response to detecting that a user drags a first functional module among the multiple functional modules to the editing area, the first functional module dragged in is displayed in an editable form in the editing area; in response to detecting that a user operates the association relationship between the functional modules in the editing area, the execution order between the functional fragments corresponding to the functional modules is determined; in response to detecting that a user enters a configuration instruction in the first functional module in the editing area, the first functional module is configured according to the configuration instruction. By encapsulating the functional fragments in the reinforcement learning scene construction process and building a visual operation platform, the reusability of the reinforcement learning platform can be improved and the user's operation threshold can be reduced.
[0005] Optionally, in response to detecting the user's operation on the association relationship between the functional modules in the editing area, determining the execution order between the functional fragments corresponding to the functional modules includes: in response to detecting that the user connects the first functional module with the second functional module already existing in the editing area, determining the execution order between the functional fragments corresponding to the functional modules according to the connection relationship between the first functional module and the second functional module. Determining the execution order between the connected functional modules by connecting the functional modules in the editing area can not only simplify the operation, but also make the relationship between the functional fragments clearer in a visual way.
[0006] Optionally, in response to detecting the user's operation on the association relationship of each functional module in the editing area, determining the execution order between the functional fragments corresponding to each functional module includes: in response to detecting that the user groups multiple functional modules in the editing area, marking the multiple functional modules grouped in the same group as an experimental group and displaying them in combination; determining the execution order between the corresponding functional fragments according to the combination relationship of the multiple functional modules in the experimental group. By supporting visual operations to group multiple functional modules in the editing area to obtain experimental groups, and distinguishing experimental groups by functional fragments corresponding to functional modules to determine the combination relationship and execution order of functional fragments in the experimental group, the relationship between the functional fragments can be made clearer and the user operation can be simplified.
[0007] Optionally, in response to detecting the user's operation on the association relationship between the functional modules in the editing area, determining the execution order between the functional fragments corresponding to the functional modules, further includes: in response to detecting that the user connects the experimental group with a second functional module already existing in the editing area; according to the connection relationship between the experimental group and the second functional module already existing in the editing area, determining the execution order between the corresponding functional fragments. By supporting visual operations to connect the experimental group with other functional modules in the editing area to determine the execution relationship and order between the functional modules in the experimental group and the functional fragments corresponding to other functional modules, the relationship between the functional fragments can be made clearer, while simplifying user operations and lowering the threshold for building reinforcement learning scenarios.
[0008] Optionally, the method further includes: in response to detecting a user's configuration instruction for the first functional module in the editing area, outputting a configuration pop-up window; adjusting the display method of the configuration pop-up window and / or each functional module in the editing area, so that the configuration pop-up window and the target functional module corresponding to the configuration pop-up window are fully displayed in the user interface, and the display method includes: position and / or size. Receiving the user's configuration instruction by displaying the configuration pop-up window can allow the user to send more personalized instructions outside the encapsulated functional fragment; by adjusting the display method of the configuration pop-up window and the corresponding functional module in the editing area, it is possible to avoid situations such as mutual obstruction of the display screen, thereby improving the user experience.
[0009] Optionally, adjusting the display method of the configuration pop-up window and / or each functional module in the editing area includes at least one of the following: controlling the configuration pop-up window to be displayed in a blank area in the editing area; controlling the size of each functional module in the editing area to display the configuration pop-up window of a preset size; controlling the functional modules corresponding to the configuration pop-up window in the editing area to be fully displayed around the configuration pop-up window.
[0010] Optionally, the method further includes: in response to detecting that the user inputs a configuration instruction in the first functional module in the editing area through the configuration pop-up window, highlighting the configuration pop-up window and the first functional module corresponding to the configuration pop-up window. By highlighting the functional module corresponding to the configuration pop-up window in the editing area, the functional module being edited in the editing area can be distinguished from the remaining functional modules, thereby improving the user experience.
[0011] Optionally, the method further includes: in response to detecting that the user drags the first function module into the editing area, highlighting the function module that has the association relationship with the first function module in the module display area. After the user drags the function module into the editing area, by highlighting the function module that has the association relationship with the function module in the editing area in the module display area, that is, highlighting the function module that can be connected with the function module in the editing area in the module display area, the user's subsequent operations can be prompted, preventing the user from making improper relationship connections between the function modules in the editing area, and lowering the user's operation threshold.
[0012] Optionally, the configuration includes at least one of the following items: simulation environment configuration, agent configuration, state configuration, action configuration, reward configuration, number of rounds configuration and number of steps per round configuration. Providing various configuration options for the reinforcement learning scenario building process can easily realize the complete process of reinforcement learning scenario building.
[0013] Optionally, the multiple functional modules include at least one of the following items: simulation module, environment module, feature engineering module, reinforcement learning agent module, rule agent module, result visualization module and scenario description module; wherein the simulation module is at least used to provide a configuration interface and a debugging interface for the scheduling simulation model; the environment module is used to provide at least one of the following items: an environment configuration interface corresponding to the simulation model, a state definition configuration interface and a debugging interface under the environment; the feature engineering module is used to provide at least one of the following items: a state configuration interface, an action configuration interface, and a reward configuration interface; the reinforcement learning agent module is used to provide a ruleless agent configuration interface; the rule agent module is used to provide a rule-based agent configuration interface; the result visualization module is used to provide at least one of the following items: a visual display interface for the reinforcement learning scenario construction and debugging process; the scenario description module is at least used to provide a description configuration interface for the reinforcement learning scenario. Providing various configuration interfaces for the reinforcement learning scenario construction process can reduce the configuration difficulty, simplify the configuration process, and reduce the user operation threshold.
[0014] Optionally, the method further includes: in response to detecting that the user selects the agent rule configuration option in the rule agent module already existing in the editing area, displaying the agent rule configuration page; wherein the agent rule configuration page includes a node toolbar and a node editing area; the node toolbar includes multiple rule configuration nodes, wherein the agent rule configuration process is divided into multiple functional fragments, and each rule configuration node corresponds to a functional fragment; in response to detecting that the user drags a target node from the multiple rule configuration nodes to the node editing area, displaying the dragged target node in an editable form in the node editing area; in response to detecting that the user connects the target node with the rule configuration node already existing in the node editing area, determining the execution order between the corresponding functional fragments according to the connection relationship between the target node and the existing rule configuration node; in response to detecting that the user enters a target node instruction in the target node in the node editing area, configuring the corresponding target rule agent according to the target node instruction. Providing a visual operation page for configuring a rule agent can clearly display the relationship and execution order of each node in the rule agent configuration process and reduce the user's operation threshold.
[0015] According to another aspect of an embodiment of the present disclosure, there is provided a device for assisting in building a reinforcement learning scene, comprising: a scene building page display unit, configured to: display a scene building page; wherein the scene building page comprises a module display area and an editing area, wherein the module display area is used to display functional modules related to reinforcement learning, wherein the reinforcement learning scene building process is divided into a plurality of functional segments, and each functional module corresponds to a functional segment; a user operation detection unit, configured to: detect user operations; a user operation response unit, configured to: in response to the user operation detection unit detecting that a user drags a first functional module among the plurality of functional modules to the editing area, display the dragged first functional module in an editable form in the editing area; in response to the user operation detection unit detecting that a user operates on an association relationship between the functional modules in the editing area, determine an execution order between functional segments corresponding to the functional modules; in response to the user operation detection unit detecting that a user enters a configuration instruction in the first functional module in the editing area, configure the first functional module according to the configuration instruction.
[0016] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium storing instructions is also provided, wherein, when the instructions are executed by at least one computing device, the at least one computing device is prompted to execute the above-mentioned method of assisting reinforcement learning scenario construction.
[0017] According to another aspect of an embodiment of the present disclosure, a system is also provided, including at least one computing device and at least one storage device storing instructions, wherein when the instructions are executed by the at least one computing device, the at least one computing device is prompted to execute the above-mentioned method of assisting in building a reinforcement learning scenario.
[0018] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: According to the method, device, storage medium and system for assisting reinforcement learning scene construction disclosed in the present disclosure, by encapsulating the functional fragments in the reinforcement learning scene construction process and building a visual operation platform, a scene construction page including a module display area and an editing area is displayed, supporting users to perform various visual editing of functional modules related to reinforcement learning, which can improve the reusability of the reinforcement learning platform and lower the user's operation threshold.
[0019] In addition, by connecting the functional modules in the editing area to determine the execution order between the connected functional modules, not only can the operation be simplified, but also the relationship between the functional fragments can be made clearer in a visual way.
[0020] In addition, by supporting visual operations to group multiple functional modules in the editing area to obtain experimental groups, and by distinguishing experimental groups by functional fragments corresponding to functional modules to determine the combination relationship and execution order of functional fragments in the experimental group, the relationship between the functional fragments can be made clearer and user operations can be simplified.
[0021] In addition, by supporting visual operations to connect the experimental group with other functional modules in the editing area, the execution relationship and order between the functional modules in the experimental group and the functional fragments corresponding to other functional modules can be determined. This can make the relationship between the functional fragments clearer, while simplifying user operations and lowering the threshold for building reinforcement learning scenarios.
[0022] In addition, receiving user configuration instructions by displaying a configuration pop-up window can allow users to send more personalized instructions beyond the encapsulated functional fragments; by adjusting the display method of the corresponding functional modules in the configuration pop-up window and the editing area, situations such as mutual obstruction of the display screens can be avoided, thereby improving the user experience.
[0023] In addition, by highlighting the function module corresponding to the pop-up window configured in the editing area, the function module being edited in the editing area can be distinguished from the other function modules, thereby improving the user experience.
[0024] In addition, after the user drags the function module to the editing area, by highlighting in the module display area the function modules that have an association relationship with the function modules in the editing area, that is, highlighting in the module display area the function modules that can be connected to the function modules in the editing area, the user's subsequent operations can be prompted to prevent the user from making improper relationship connections between the function modules in the editing area, thereby lowering the user's operation threshold.
[0025] In addition, various configuration options for the reinforcement learning scene building process are provided, which can easily realize the complete process of reinforcement learning scene building.
[0026] In addition, providing various configuration interfaces for the reinforcement learning scenario building process can reduce the configuration difficulty, simplify the configuration process, and lower the user operation threshold.
[0027] In addition, a visual operation page for configuring rule agents is provided, which can clearly display the relationship and execution order of each node in the rule agent configuration process and lower the user's operation threshold.
[0028] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0030] Figure 1 A flowchart showing a method for assisting reinforcement learning scene building according to an embodiment of the present disclosure;
[0031] Figure 2 A schematic diagram showing an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure;
[0032] Figure 3 A schematic diagram showing a module display area in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure;
[0033] Figure 4 A schematic diagram showing the functional modules in the editing area of the auxiliary reinforcement learning scenario building page according to one embodiment of the present disclosure;
[0034] Figure 5 A schematic diagram showing a parameter configuration pop-up window in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure;
[0035] Figure 6 A schematic diagram showing an instruction configuration pop-up window in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure;
[0036] Figure 7 A schematic diagram showing a pop-up window for displaying parameter configuration and a corresponding target function module in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure is shown;
[0037] Figure 8 A schematic diagram showing a pop-up window for displaying command configuration and a corresponding target function module in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure;
[0038] Fig. 9 A schematic diagram showing an agent rule configuration page in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure;
[0039] Fig.10 A schematic diagram showing an apparatus for assisting in building a reinforcement learning scenario according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0040] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.
[0042] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0043] Reinforcement learning has a wide range of application scenarios. In the field of unmanned driving, unmanned vehicles are agents in reinforcement learning, and the road conditions and weather when unmanned vehicles are driving are the environment (env) in reinforcement learning; if the sensor used by the unmanned vehicle is a lidar, then the point cloud scanned by the lidar is the state in reinforcement learning; if the unmanned vehicle uses an ordinary camera, then the video is the state in reinforcement learning; in addition, the braking, accelerator, left turn, right turn, etc. of the unmanned vehicle are actions in reinforcement learning, and corresponding rewards will be given according to the execution results of the actions. For example, starting from the starting point, the farther the vehicle travels forward, the higher the reward, and the farther the vehicle is from the center line of the lane, the lower the reward. If the vehicle drives out of the lane or hits an obstacle, the reward value can be set to -100; in reinforcement learning in the field of unmanned driving, rewards can be used as supervisory signals, and the mapping from state to action can be continuously modified by learning deduction to achieve the purpose of optimization.
[0044] The process of building a reinforcement learning scenario mainly includes: 1. The user configures the simulation environment (environment, env), state (state), agent (agent), action (action), reward (Reward), etc. of the reinforcement learning project, and also needs to configure the number of games and the number of steps in each game; 2. After multiple games of model algorithm deduction, the best strategy is obtained. For example, in the field of games, AlphaGO, as an intelligent agent, can obtain the strategy with the highest winning rate for each step after multiple games of reinforcement learning deduction to defeat the world Go champion Lee Sedol. At this stage, related reinforcement learning platforms generally face the problems of poor reusability such as many customized scenarios and the lack of standardized products, which leads to the inability to precipitate valuable experience and reuse similar scenarios. Each time, it needs to be built from 0 to 1, which consumes manpower and time costs.
[0045] In order to solve the above problems, the present disclosure provides a method, device, storage medium and system for assisting in the construction of reinforcement learning scenarios. By analyzing the process of reinforcement learning scenario construction, the process of reinforcement learning scenario construction is divided into multiple functional segments and functional modules are encapsulated, and a visual operation platform is constructed, which can improve the reusability of the reinforcement learning platform and reduce the user's operation threshold. Figures 1 to 10 The method, device, storage medium and system for assisting in setting up a reinforcement learning scenario according to the present disclosure are specifically described.
[0046] Figure 1 A flowchart showing a method for assisting reinforcement learning scenario building according to an embodiment of the present disclosure.
[0047] Reference Figure 1 In step 101, a scene building page may be displayed. The scene building page may include a module display area and an editing area. The module display area may be used to display functional modules related to reinforcement learning. The reinforcement learning scene building process may be divided into multiple functional segments, and each functional module may correspond to one functional segment.
[0048] According to the exemplary embodiments of the present disclosure, the process of building a reinforcement learning scenario can be analyzed, and the process of building a reinforcement learning scenario can be divided into multiple functional fragments for functional module encapsulation, so that each functional module can implement the corresponding functional fragment; at the same time, a visual operation platform can be built to support users to call, edit, and perform other operations on the encapsulated functional modules through the visual operation platform.
[0049] According to an exemplary embodiment of the present disclosure, the above-mentioned scene building page can be displayed in the user terminal in the form of application software or web pages. Figure 2 , Figure 2A schematic diagram of an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure is shown. Figure 2 , the scene building page 200 may include a module display area 201 and an editing area 202. The module display area 201 may display the encapsulated functional modules, for example, it may include but not be limited to one or more of the following functional modules related to reinforcement learning: simulation module, environment module, feature engineering module, reinforcement learning agent module, rule agent module, result visualization module; it may also include: scene description module, replay analysis module, etc. The expansion form of the above module display area 201 can refer to Figure 3 , Figure 3 A schematic diagram showing a module display area in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure, referring to Figure 3 The module display area 201 can display various module selection interfaces in a vertical column toolbar or other related forms. For example, Figure 3 The scene description module 301, simulation module 302, environment module 303, feature engineering module 304, reinforcement learning agent module 305, rule agent module 306, result visualization module 307, replay analysis module 308, etc. are shown. In addition, the scene building page 200 may also include a home page option 203, a scene description management page option 204 (which can be used to describe the background, parameters, etc. of the reinforcement learning scene being built), and a simulation management page option 205 (which can be used to describe the simulation model); the scene building page 200 may also provide a selection interface 206 for saving scene templates, a debugging selection interface 207, a deployment selection interface 208, a message prompt interface 209, etc. It can be understood that the above-mentioned scene building page and the module display area, editing area, and display methods of each module therein may not be limited to the forms shown in the above-mentioned Figures 2 and 3, and other equal or similar display methods are also within the protection scope of the present disclosure.
[0050] Return to reference Figure 1 In step 102, in response to detecting that a user drags a first functional module among a plurality of functional modules to an editing area, the dragged first functional module may be displayed in an editable form in the editing area.
[0051] According to an exemplary embodiment of the present disclosure, return to reference Figure 2 The user can drag and drop any functional module in the module display area 201 to the editing area 202 by means of mouse arrows, touch, etc. In addition, the form of adding editable functional modules in the editing area 202 is not limited to dragging, and other methods of clicking and selecting can also be used. For example, but not limited to, you can right-click on the corresponding functional module in the module display area 202 to pop up a selection box, and click the "Add to Editing Area" option in the selection box. Figure 4A schematic diagram of the functional modules in the editing area of the auxiliary reinforcement learning scene building page of one embodiment of the present disclosure is shown. Figure 4 , after placing the scene module in the module display area 201 into the editing area 202, the function module can be displayed in the form of an editable card or other arbitrary editable frame, so that an interface for users to perform editing operations is provided in the above-mentioned editing card or other arbitrary editable frame. For example, in the editable function module displayed in the editing area 202, the simulation module 401 can provide a configuration interface and a debugging interface for the scheduling simulation model, which can be used to call and debug the simulation model through instruction editing; the environment module 402 can provide but is not limited to at least one of the following items: an environment configuration interface corresponding to the simulation model, an environment name selection interface, a state definition configuration interface in a specific environment (which may include but is not limited to at least one parameter setting in the state definition, reward definition, completion definition, and action definition of the agent in the specific environment) and a debugging interface; the feature engineering module 403 can provide but is not limited to at least one of the following items: a state configuration interface, an action configuration interface, and a reward configuration interface; the reinforcement learning agent module 404 can provide an irregular agent configuration interface, including but not limited to Limited to: reinforcement learning agent selection interface, reinforcement learning agent name setting interface; rule agent module 405 can provide a rule agent configuration interface, and can also provide at least one of the following items including but not limited to: associated agent selection interface, rule agent name setting interface; result visualization module 406 can provide at least one of the following items including but not limited to: a visualization display operation interface of the reinforcement learning scene construction and debugging process, used to visualize the results of the reinforcement learning scene construction; in addition: the scene description module 407 can provide a description configuration interface of the reinforcement learning scene, used to describe the reinforcement learning scene being built; the review analysis module can provide an operation interface for feedback of data information during the construction and debugging process, so that users can adjust operations and instructions according to the feedback data information. Each editable function module in the editing area 202 can support one or more functions including but not limited to reuse, renaming, deletion, and template export in the same scene, and / or support copying to other scenes for adaptive modification, so as to reduce the workload in the reinforcement learning scene construction process. It can be understood that the display method of each module in the above-mentioned editing area is not limited to the form in the above-mentioned Figure 4, and other equal or similar display methods are also within the protection scope of the present disclosure; similarly, the various interfaces provided by the above-mentioned modules are not limited to the types listed and combined above, and other displayed editable functional modules that provide interfaces with equal functions or similar combinations are also within the protection scope of the present disclosure.
[0052] According to an exemplary embodiment of the present disclosure, in response to detecting that a user drags a first functional module into the editing area, a functional module associated with the first functional module may be highlighted in the module display area.
[0053] According to an exemplary embodiment of the present disclosure, after the user places a function module in the editing area 202, in order to prompt the user which other function modules can be associated with the function module in the editing area to ensure that there is a feasible execution relationship between the corresponding function fragments, the function module associated with the function module in the editing area 202 can be highlighted in the module display area 201. The method of highlighting is, for example, but not limited to, at least one of the following: highlighting, color highlighting, adding a special effect black frame, etc.
[0054] Return to reference Figure 1 In step 103, in response to detecting the user's operation on the association relationship of each functional module in the editing area, the execution order between the functional fragments corresponding to each functional module can be determined.
[0055] According to an exemplary embodiment of the present disclosure, return to reference Figure 4 , the user can perform association operations on the functional modules displayed in the editing area 202, for example, but not limited to, by adding undirected connection lines 410 and / or directed connection lines between the functional modules to determine the association relationship between the functional modules. Similarly, for example, but not limited to, the execution order between the functional fragments corresponding to the functional modules is determined in combination with the undirected connection lines 410 and the placement order of the functional modules in the editing page, and / or the execution order between the functional fragments corresponding to the functional modules is determined by the upstream and downstream of the directed connection lines between the functional modules. It can be understood that a functional module 402 can be interconnected with multiple functional modules 403 respectively, and there may not be a necessary execution order between the functional modules connected in parallel in the multiple functional modules 403, but they are independent of each other.
[0056] According to an exemplary embodiment of the present disclosure, in order to ensure that there is a feasible execution relationship between corresponding functional fragments, when the user associates functional modules that do not have an association relationship in the editing area 202, a prompt may be given to the user. The prompt method includes, for example, but not limited to: refusing to associate functional modules that do not have an association relationship, and highlighting functional modules that have been associated but do not have an association relationship.
[0057] According to an exemplary embodiment of the present disclosure, in response to detecting that a user connects a first functional module with a second functional module already existing in the editing area 202, the execution order between functional fragments corresponding to the functional modules can be determined according to the connection relationship between the first functional module and the second functional module.
[0058] According to an exemplary embodiment of the present disclosure, the naming method of the first functional module and the second functional module is to distinguish the interconnected functional modules, and there is no necessary order relationship between the two functional modules due to this naming method.
[0059] According to an exemplary embodiment of the present disclosure, referring to Figure 4 , the execution order of the functional fragments corresponding to the functional modules can be determined by combining the undirected connection lines and the placement order of the functional modules in the editing page. For example, but not limited to, the connection lines between the functional modules in the editing area 202 determine the association relationship between the functional modules, and the placement order of the functional modules from left to right in the editing area 202 determines that the execution order of the functional fragments corresponding to the functional modules with the association relationship is also from left to right.
[0060] According to an exemplary embodiment of the present disclosure, in response to detecting that a user has grouped multiple functional modules in the editing area 202, the multiple functional modules grouped in the same group can be marked as an experimental group and displayed in combination; the execution order between corresponding functional fragments can be determined according to the combination relationship of the multiple functional modules in the experimental group.
[0061] According to an exemplary embodiment of the present disclosure, the user can associate the functional modules displayed in the editing area 202 by grouping. For example, but not limited to, multiple functional modules can be placed in an editing box to determine the association relationship between the functional modules in the editing box as an experimental group, for example Figure 4 The experimental group 411 shown. By distinguishing the experimental groups, the functional fragments corresponding to the functional modules in the experimental group 411 can be integrated, and the integrated functional fragments can be distinguished from other functional modules or experimental groups in the editing area 202 as independent functional fragments. At this time, the association relationship between the functional modules in the experimental group 411 and the execution order between the functional fragments corresponding to the functional modules can be, but not limited to: the corresponding functional fragments are sequentially executed according to the placement position of each functional module in the experimental group 411, and / or, there may not necessarily be a certain execution order between the functional fragments corresponding to the functional modules in the experimental group 411, and only the combination relationship is used to realize the sharing of functions such as parameter setting in the process of strengthening the learning scene construction.
[0062] According to an exemplary embodiment of the present disclosure, in response to detecting that the user connects the experimental group 411 with the second functional module already existing in the editing area 202; based on the connection relationship between the experimental group 411 and the second functional module already existing in the editing area 202, the execution order between the corresponding functional fragments can be determined.
[0063] According to an exemplary embodiment of the present disclosure, referring to Figure 4, the user can connect the experimental group 411 in the editing area 202 with other functional modules, such as the feature engineering module 403, through a connecting line to determine the association relationship between the experimental group 402 and the feature engineering module 412 connected thereto; it can be understood that the method of distinguishing the experimental groups can integrate the functional fragments corresponding to each functional module in the experimental group 411, so that the integrated functional fragments can be distinguished from other functional modules or experimental groups in the editing area as independent functional fragments. When multiple experimental groups are connected in parallel with other functional modules, multiple sets of parallel experimental parameters can be set through the parallel experimental groups for debugging.
[0064] It is worth mentioning that according to the exemplary embodiments of the present disclosure, after the functional modules displayed in the editing area 202 are associated with each other by means of connecting lines, experimental groups, etc., when the functional fragments corresponding to each functional module are actually executed, the execution order of the functional fragments corresponding to each functional module is not necessarily restricted by the determined association relationship and the placement order in the editing area 202. It can be understood that each functional module can integrate the corresponding functional fragments by means of connecting lines and / or experimental groups, and in the approximate execution order, there are also parameters and / or settings in the functional fragments that are globally valid and / or cyclically updated.
[0065] Return to reference Figure 1 In step 104, in response to detecting that a user inputs a configuration instruction in the first functional module in the editing area, the first functional module may be configured according to the configuration instruction.
[0066] According to an exemplary embodiment of the present disclosure, in response to detecting a user's configuration instruction for a first functional module in the editing area 202, a configuration pop-up window can be output; the display method of the configuration pop-up window and / or each functional module in the editing area 202 can be adjusted so that the configuration pop-up window and the target functional module corresponding to the configuration pop-up window are fully displayed in the user interface, and the display method includes: position and / or size.
[0067] According to an exemplary embodiment of the present disclosure, referring to Figure 4 The function modules in the editing area 202 can support the user to select and / or input configuration instructions by clicking, for example, but not limited to, the user can select existing configuration instructions by clicking in a form similar to the selection box 408, and can also obtain configuration instructions by clicking in a form similar to the interface 409 in the function module. Figure 5 and Figure 6 The configuration pop-up windows 501 and 601 shown are used to personalize and edit configuration instructions by inputting instructions in the configuration pop-up windows 501 and 601 . Figure 5 A schematic diagram showing a parameter configuration pop-up window in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure is shown. Figure 6A schematic diagram of an instruction configuration pop-up window in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure is shown. When a user edits an instruction, the display methods such as the position and / or size of each functional module in the configuration pop-up window 501, 601 and / or the editing area 202 can be adaptively adjusted so that the configuration pop-up window 501, 601 and the target functional module corresponding to the configuration pop-up window are fully displayed in the user interface.
[0068] According to an exemplary embodiment of the present disclosure, the display mode of each functional module in the configuration pop-up window 501, 601 and / or the editing area 202 can be adjusted, for example, but not limited to the following mode: the configuration pop-up window 501, 601 is controlled to be displayed in the blank area in the editing area 202, that is, when there are fewer functional modules in the editing area 202, it is foreseeable that there may be a blank area outside the functional modules in the editing area 202. At this time, the configuration pop-up window 501, 601 can be adjusted to be displayed in the blank area to avoid the configuration pop-up window 501, 601 affecting the functional modules in the editing area 202. The function module can be blocked; the size of each function module in the editing area 202 can be controlled to display the configuration pop-up window 501, 601 of the preset size, that is, the configuration pop-up window 501, 601 in the editing area can be set to a fixed size to ensure that the user has a comfortable use effect when using the displayed configuration pop-up window 501, 601 for editing. At the same time, the size of each function module in the editing area 202 can be controlled to cooperate with the fixed-size configuration pop-up window 501, 601 for display. For example, the function modules in the editing area 202 can be controlled to be reduced in size so that the configuration pop-up window 501, 601 can be displayed. 01 reserves enough display page space while fully displaying each functional module in the editing area 202, improving the user experience. For example, the functional modules corresponding to the configuration pop-up windows 501 and 601 in the editing area 202 can be controlled to be enlarged and displayed, and the other functional modules can be reduced and displayed, so as to ensure that the user can locate the functional module being edited while editing the configuration pop-up windows 501 and 601; the functional modules corresponding to the configuration pop-up windows 501 and 601 in the editing area 202 are controlled to be fully displayed around the configuration pop-up windows 501 and 601, that is, considering the configuration pop-up windows in the editing area 202 The function modules corresponding to the windows 501 and 601 may be more relevant or more relevant to the editing content of the configuration pop-up windows 501 and 601 than the other function modules. The function modules corresponding to the configuration pop-up windows 501 and 601 in the editing area 202 may be controlled to be fully displayed around the configuration pop-up windows 501 and 601, ignoring the possible obstruction of the other function modules by the page boundaries of the configuration pop-up windows 501 and 601 or the editing area 202, so as to ensure that the user can refer to the content of the function modules corresponding to the configuration pop-up windows 501 and 601 when editing instructions through the configuration pop-up windows 501 and 601. Through the above display method, the coherence of the previous and next contexts can be optimized.
[0069] According to an exemplary embodiment of the present disclosure, in response to detecting that a user enters a configuration instruction in a first functional module in the editing area 202 via a configuration pop-up window 501 or 601 , the configuration pop-up window 501 or 601 and the first functional module corresponding to the configuration pop-up window may be highlighted.
[0070] Figure 7 A schematic diagram showing a pop-up window for parameter configuration and a corresponding target function module displayed in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure is shown. Figure 8 A schematic diagram showing a pop-up window for displaying instruction configuration and a corresponding target function module in an auxiliary reinforcement learning scenario building page according to an embodiment of the present disclosure is shown.
[0071] Reference Figure 7 and Figure 8 According to an exemplary embodiment of the present disclosure, when a user enters a configuration instruction in a configuration pop-up window, the configuration pop-up window and the function modules 701 and 801 corresponding to the configuration pop-up window can be highlighted, and the display boxes corresponding to the function modules 701 and 801 and the configuration pop-up window can be more accurately located, for example, but not limited to at least one of the following: highlighting, color highlighting, adding special effect black frames, etc.
[0072] According to an exemplary embodiment of the present disclosure, return to reference Figure 4 In response to detecting that the user selects the agent rule configuration option 412 in the rule agent module 405 that already exists in the editing area, the following may be displayed: Fig. 9 The agent rule configuration page 900 is shown; Fig. 9A schematic diagram of an agent rule configuration page in an auxiliary reinforcement learning scenario building page of an embodiment of the present disclosure is shown. Among them, the agent rule configuration page 900 may include a node toolbar 901 and a node editing area 902; the node toolbar 901 may include multiple rule configuration nodes, wherein the agent rule configuration process may be divided into multiple functional fragments, and each rule configuration node may correspond to a functional fragment; in response to detecting that a user drags a target node from multiple rule configuration nodes to the node editing area 902, the dragged target node may be displayed in an editable form in the node editing area 902; in response to detecting that a user connects the target node with an existing rule configuration node in the node editing area 902, the execution order between the corresponding functional fragments is determined according to the connection relationship between the target node and the existing rule configuration node; in response to detecting that a user enters a target node instruction in the target node in the node editing area 902, the corresponding target rule agent may be configured according to the target node instruction. It can be understood that the above-mentioned intelligent agent rule configuration page 900 and the node display area 901, node editing area 902, and the display method of each node in the node editing area 902 are not limited to the form shown in the above-mentioned Figure 9, and other equivalent display methods are also within the protection scope of the present disclosure.
[0073] According to the exemplary embodiment of the present disclosure, the configuration process of the rule agent can be divided into multiple nodes, for example, but not limited to: a loop node, which can be used to establish a loop task for the rule agent to support the occurrence of event loops; a parallel node, which can be used to establish a task parallel to an existing task for the rule agent or support multiple events to occur in parallel; a sequence node, which can be used to set the execution order of the tasks of the rule agent; a selection node, which can be used to set execution options for the existing tasks of the rule agent; a combination node, which can be used to combine the tasks corresponding to each node of the rule agent; a conditional node, which can be used to set execution conditions for the existing tasks of the rule agent; an action node, which can be used to set action tasks for the rule agent; and a decoration node, which can be used to set the appearance of the rule agent. The functional fragments corresponding to each node can be encapsulated in a module, and the operation interface is displayed to the user in the agent rule configuration page 900. It can be understood that the functional fragments corresponding to the above nodes are not limited to the types listed and combined above, and other agent rule configuration nodes that provide equal or similar functions are also within the protection scope of the present disclosure. The user can drag and drop any node in the node display area 901 to the node editing area 902 by means of mouse arrows, touch, etc. In addition, the form of adding editable nodes in the node editing area 902 is not limited to dragging, and can also be added by other click selection methods, such as, but not limited to, right-clicking the corresponding node in the node display area 901 to pop up a selection box, and clicking the "Add to Editing Area" option in the selection box. In the editing area, you can Fig. 9 The nodes are displayed in the form of editable nodes or other arbitrary editable frames, so that an interface for users to perform editing operations is provided in the editable nodes or other arbitrary editable frames.
[0074] According to an exemplary embodiment of the present disclosure, referring to Fig. 9 , the user can perform association operations on the nodes displayed in the editing area, for example, but not limited to, the association relationship between the nodes can be determined by adding undirected connection lines 904 and / or directed connection lines between the nodes. Similarly, for example, but not limited to, the execution order between the functional fragments corresponding to the nodes can be determined by combining the undirected connection lines 904 and the order in which the nodes are placed in the editing page, and / or the execution order between the functional fragments corresponding to the nodes can be determined by the upstream and downstream of the directed connection lines between the nodes. It is understandable that, referring to Fig. 9 , a node can be connected to multiple nodes, and there may not be a necessary execution order between the nodes connected in parallel, but they are independent of each other.
[0075] According to an exemplary embodiment of the present disclosure, referring to Fig. 9, the execution order of the functional fragments corresponding to the nodes can be determined by combining the undirected connection line 904 and the placement order of the nodes in the node editing page. For example, but not limited to, the connection lines between the nodes in the node editing area 902 can determine the association relationship between the nodes, and the placement order of the nodes from left to right in the editing area can determine that the execution order of the functional fragments corresponding to the nodes with the association relationship is also from left to right.
[0076] According to an exemplary embodiment of the present disclosure, after the nodes displayed in the node editing area 902 are associated with each other by means of connecting lines, when the functional fragments corresponding to each node are actually executed, the execution order of the functional fragments corresponding to each node is not necessarily restricted by the determined association relationship and the placement order in the node editing area 902. It can be understood that each node can integrate the corresponding functional fragments by means of connecting lines, and in the approximate execution order, there are also parameters and / or settings in the functional fragments that are globally valid and / or cyclically updated.
[0077] According to an exemplary embodiment of the present disclosure, the nodes in the node editing area 902 can support the user to enter configuration instructions by clicking input and / or pop-up window input, for example, but not limited to, the user can rename the node by directly entering instructions in the editable node, and can also obtain the configuration pop-up window by clicking the edit code 903, and personalize the configuration instructions by entering instructions in the configuration pop-up window. When the user edits the instructions, the display methods such as the position and / or size of each node in the configuration pop-up window and / or the node editing area 902 can be adaptively adjusted, so that the configuration pop-up window and the target node corresponding to the configuration pop-up window are fully displayed in the user interface.
[0078] According to an exemplary embodiment of the present disclosure, when a user enters a configuration instruction in a configuration pop-up window, the configuration pop-up window and the node corresponding to the configuration pop-up window can be highlighted, for example, but not limited to: highlighting, color highlighting, adding a special effect black frame, etc.
[0079] According to an exemplary embodiment of the present disclosure, a user can implement at least one configuration not limited to the following items through the method of assisting reinforcement learning scenario construction provided by the present disclosure: simulation environment configuration (the simulation model can be configured through the interface in the simulation module, and the environment information can be configured through the interface in the environment module), agent configuration (reinforcement learning agent configuration, rule agent configuration), state configuration, action configuration, reward configuration, deduction round number configuration and number of steps per round configuration.
[0080] Fig.10 A schematic diagram showing an apparatus for assisting in building a reinforcement learning scenario according to an embodiment of the present disclosure.
[0081] Reference Fig.10 The device 1000 for assisting reinforcement learning scene construction may include a scene construction page display unit 1001, a user operation detection unit 1002 and a user operation response unit 1003.
[0082] The scene building page display unit 1001 can display the scene building page. The scene building page can include a module display area and an editing area. The module display area can be used to display functional modules related to reinforcement learning. The reinforcement learning scene building process can be divided into multiple functional segments, and each functional module can correspond to a functional segment.
[0083] The user operation detection unit 1002 can detect user operations.
[0084] The user operation response unit 1003 can display the dragged first function module in an editable form in the editing area in response to the user operation detection unit 1002 detecting that the user drags a first function module among the multiple function modules to the editing area.
[0085] The user operation response unit 1003 can determine the execution order between the function fragments corresponding to the function modules in response to the user operation detection unit 1002 detecting the user's operation on the association relationship of the function modules in the editing area.
[0086] The user operation response unit 1003 can configure the first function module according to the configuration instruction in response to the user operation detection unit 1002 detecting that the user inputs a configuration instruction in the first function module in the editing area.
[0087] In one embodiment of the present disclosure, the user operation response unit 1003 is configured as follows:
[0088] In response to the user operation detection unit detecting that the user connects the first function module with a second function module already existing in the editing area, the execution order between the function fragments corresponding to the function modules is determined according to the connection relationship between the first function module and the second function module.
[0089] In one embodiment of the present disclosure, the user operation response unit 1003 is configured as follows:
[0090] In response to the user operation detection unit detecting that the user groups multiple functional modules in the editing area, the multiple functional modules grouped in the same group are marked as an experimental group and displayed in combination; the execution order between corresponding functional fragments is determined according to the combination relationship of the multiple functional modules in the experimental group.
[0091] In one embodiment of the present disclosure, the user operation response unit 1003 is configured as follows:
[0092] In response to the user operation detection unit detecting that the user connects the experimental group with a third functional module already existing in the editing area; the execution order between corresponding functional fragments is determined according to the connection relationship between the experimental group and the third functional module already existing in the editing area.
[0093] In one embodiment of the present disclosure, the user operation response unit 1003 is further configured to:
[0094] In response to the user operation detection unit detecting the user's configuration instructions for the first functional module in the editing area, a configuration pop-up window is output; the display method of the configuration pop-up window and / or each functional module in the editing area is adjusted so that the configuration pop-up window and the target functional module corresponding to the configuration pop-up window are fully displayed in the user interface, and the display method includes: position and / or size.
[0095] In one embodiment of the present disclosure, the user operation response unit 1003 adjusts the display mode of the configuration pop-up window and / or each functional module in the editing area, including at least one of the following configurations:
[0096] Control the configuration pop-up window to be displayed in a blank area of the editing area;
[0097] Controlling the size of each functional module in the editing area to display the configuration pop-up window of a preset size;
[0098] Control the functional modules corresponding to the configuration pop-up window in the editing area to be fully displayed around the configuration pop-up window.
[0099] In one embodiment of the present disclosure, the user operation response unit 1003 is further configured to:
[0100] In response to the user operation detection unit detecting that the user inputs a configuration instruction in the first functional module in the editing area through the configuration pop-up window, the configuration pop-up window and the first functional module corresponding to the configuration pop-up window are highlighted.
[0101] In one embodiment of the present disclosure, the user operation response unit 1003 is further configured to:
[0102] In response to the user operation detection unit detecting that the user drags the first functional module into the editing area, the functional modules that have the association relationship with the first functional module are highlighted in the module display area.
[0103] In one embodiment of the present disclosure, the configuration includes at least one of the following items: simulation environment configuration, agent configuration, state configuration, action configuration, reward configuration, number of deduction rounds configuration and number of steps per round configuration.
[0104] In one embodiment of the present disclosure, the plurality of functional modules include at least one of the following: a simulation module, an environment module, a feature engineering module, a reinforcement learning agent module, a rule agent module, a result visualization module, and a scenario description module;
[0105] Among them, the simulation module is at least used to provide a configuration interface and a debugging interface for the scheduling simulation model; the environment module is used to provide at least one of the following items: an environment configuration interface corresponding to the simulation model, a state definition configuration interface and a debugging interface under the environment; the feature engineering module is used to provide at least one of the following items: a state configuration interface, an action configuration interface, and a reward configuration interface; the reinforcement learning agent module is used to provide an irregular agent configuration interface; the rule agent module is used to provide a rule agent configuration interface; the result visualization module is used to provide at least one of the following items: a visualization display interface for the reinforcement learning scenario construction and debugging process; the scenario description module is at least used to provide a description configuration interface for the reinforcement learning scenario.
[0106] In one embodiment of the present disclosure, the user operation response unit 1003 is further configured to:
[0107] In response to the user operation detection unit detecting that the user selects the agent rule configuration option in the rule agent module already existing in the editing area, the agent rule configuration page is displayed; wherein, the agent rule configuration page includes a node toolbar and a node editing area; the node toolbar includes multiple rule configuration nodes, wherein the agent rule configuration process is divided into multiple functional fragments, and each rule configuration node corresponds to a functional fragment; in response to the user operation detection unit detecting that the user drags a target node from the multiple rule configuration nodes to the node editing area, the dragged target node is displayed in an editable form in the node editing area; in response to the user operation detection unit detecting that the user connects the target node with the rule configuration node already existing in the node editing area, the execution order between the corresponding functional fragments is determined according to the connection relationship between the target node and the existing rule configuration node; in response to the user operation detection unit detecting that the user enters a target node instruction in the target node in the node editing area, the corresponding target rule agent is configured according to the target node instruction.
[0108] The above-mentioned device 1000 for assisting reinforcement learning scene construction can implement the various exemplary embodiments of the method for assisting reinforcement learning scene construction disclosed above through but not limited to the scene construction page display unit 1001, the user operation detection unit 1002 and the user operation response unit 1003. The specific implementation steps roughly correspond to the contents of the various exemplary embodiments of the method for assisting reinforcement learning scene construction above, and will not be repeated here. It can be understood that the functional combination and functional distinction of each functional unit in the above-mentioned device 1000 for assisting reinforcement learning scene construction are not limited to the above-mentioned description and Fig.10 In the form of, other devices that can achieve similar functions are also within the protection scope of this disclosure.
[0109] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to execute the method of auxiliary reinforcement learning scenario building according to the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0110] According to an exemplary embodiment of the present disclosure, a computer program product may also be provided, and instructions in the computer program product may be executed by a processor of a computer device to complete the above-mentioned method of assisting in building a reinforcement learning scenario.
[0111] According to an exemplary embodiment of the present disclosure, the above-mentioned device may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above-mentioned instruction set. Here, the above-mentioned device is not necessarily a single electronic device, but may also be any device or circuit capable of executing the above-mentioned instructions (or instruction sets) individually or jointly. The above-mentioned device may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with an interface locally or remotely (e.g., via wireless transmission).
[0112] According to an exemplary embodiment of the present disclosure, a system is also provided, including at least one computing device and at least one storage device storing instructions, wherein when the instructions are executed by the at least one computing device, the at least one computing device is prompted to execute the above-mentioned method embodiment for assisting in building a reinforcement learning scenario.
[0113] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0114] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for assisting reinforcement learning scene construction, characterized in that: include: Displaying a scene building page; wherein the scene building page includes a module display area and an editing area, wherein the module display area is used to display functional modules related to reinforcement learning, wherein the reinforcement learning scene building process is divided into multiple functional segments, and each functional module corresponds to a functional segment; In response to detecting that a user drags a first functional module among the plurality of functional modules to the editing area, displaying the dragged first functional module in an editable form in the editing area; In response to detecting a user's operation on the association relationship of each functional module in the editing area, determining an execution order between functional segments corresponding to each functional module; In response to detecting that a user inputs a configuration instruction in the first functional module in the editing area, the first functional module is configured according to the configuration instruction.
2. The method according to claim 1, characterized in that The step of determining the execution order of the functional segments corresponding to the functional modules in response to detecting the user's operation on the association relationship of the functional modules in the editing area includes: In response to detecting that the user connects the first function module with a second function module already existing in the editing area, an execution order between function segments corresponding to the function modules is determined according to a connection relationship between the first function module and the second function module.
3. The method according to claim 1, characterized in that The step of determining the execution order of the functional segments corresponding to the functional modules in response to detecting the user's operation on the association relationship of the functional modules in the editing area includes: In response to detecting that the user groups the multiple functional modules in the editing area, marking the multiple functional modules grouped in the same group as an experimental group and displaying them in combination; The execution order between corresponding functional fragments is determined according to the combination relationship of the multiple functional modules in the experimental group.
4. The method according to claim 3, characterized in that In response to detecting the user's operation on the association relationship of the functional modules in the editing area, determining the execution order between the functional segments corresponding to the functional modules, further includes: In response to detecting that the user connects the experimental group with a second functional module already existing in the editing area; According to the connection relationship between the experimental group and the second functional module existing in the editing area, the execution order between the corresponding functional segments is determined.
5. The method according to claim 1, characterized in that Also includes: In response to detecting a configuration instruction from a user for the first functional module in the editing area, outputting a configuration pop-up window; Adjust the display method of the configuration pop-up window and / or each functional module in the editing area so that the configuration pop-up window and the target functional module corresponding to the configuration pop-up window are fully displayed in the user interface, and the display method includes: position and / or size.
6. The method according to claim 1, characterized in that The configuration includes at least one of the following items: simulation environment configuration, agent configuration, state configuration, action configuration, reward configuration, number of game configuration and number of steps per game configuration.
7. The method according to any one of claims 1 to 6, characterized in that in, The plurality of functional modules include at least one of the following: a simulation module, an environment module, a feature engineering module, a reinforcement learning agent module, a rule agent module, and a result visualization module; Among them, the simulation module is at least used to provide a configuration interface and a debugging interface for the scheduling simulation model; the environment module is used to provide at least one of the following items: an environment configuration interface corresponding to the simulation model, a state definition configuration interface and a debugging interface under the environment; the feature engineering module is used to provide at least one of the following items: a state configuration interface, an action configuration interface, and a reward configuration interface; the reinforcement learning agent module is used to provide an irregular agent configuration interface; the rule agent module is used to provide a rule agent configuration interface; the result visualization module is used to provide at least one of the following items: a visualization display interface for the reinforcement learning scenario construction and debugging process.
8. A device for assisting in building a reinforcement learning scenario, characterized in that: include: The scene building page display unit is configured to: display the scene building page; wherein, The scene building page includes a module display area and an editing area, wherein the module display area is used to display functional modules related to reinforcement learning, wherein the reinforcement learning scene building process is divided into multiple functional segments, and each functional module corresponds to a functional segment; The user operation detection unit is configured to: detect a user operation; The user operation response unit is configured to: In response to the user operation detection unit detecting that the user drags a first function module among the plurality of function modules to the editing area, displaying the dragged first function module in an editable form in the editing area; In response to the user operation detection unit detecting the user's operation on the association relationship of each functional module in the editing area, determining the execution order between the functional fragments corresponding to each functional module; In response to the user operation detection unit detecting that the user inputs a configuration instruction in the first function module in the editing area, the first function module is configured according to the configuration instruction.
9. A computer-readable storage medium storing instructions, wherein: When the instructions are executed by at least one computing device, the at least one computing device is prompted to execute the method for assisting reinforcement learning scenario building as described in any one of claims 1 to 7.
10. A system comprising at least one computing device and at least one storage device storing instructions, wherein: When the instructions are executed by the at least one computing device, the at least one computing device is prompted to execute the method for assisting reinforcement learning scenario construction as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Page building method and device, medium and computing equipment
CN109918607A
Machine learning model building method and device and related equipment
CN110598868A
Modeling method and device based on graphical behavior tree and reinforcement learning
CN115545213A
Assembly line deployment method and device, electronic equipment and storage medium
CN115934109A
Reinforcement learning apparatus and method based on user learning environment
US20230088699A1
