[go: up one dir, main page]

CN116775197A - An algorithm editing method and device - Google Patents

An algorithm editing method and device Download PDF

Info

Publication number
CN116775197A
CN116775197A CN202310827711.5A CN202310827711A CN116775197A CN 116775197 A CN116775197 A CN 116775197A CN 202310827711 A CN202310827711 A CN 202310827711A CN 116775197 A CN116775197 A CN 116775197A
Authority
CN
China
Prior art keywords
algorithm
target
editing
parameter
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310827711.5A
Other languages
Chinese (zh)
Inventor
张德运
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wumu Hengrun Technology Co ltd
Original Assignee
Beijing Wumu Hengrun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wumu Hengrun Technology Co ltd filed Critical Beijing Wumu Hengrun Technology Co ltd
Priority to CN202310827711.5A priority Critical patent/CN116775197A/en
Publication of CN116775197A publication Critical patent/CN116775197A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an algorithm editing method and device, belongs to the technical field of data processing, and can solve the problem that an algorithm for preprocessing data in the prior art is fixed and inflexible. The method comprises the following steps: displaying an algorithm management interface, wherein the algorithm management interface comprises a custom algorithm region and an algorithm editing region; responding to the operation of clicking a newly-built custom algorithm control by a user, and updating an algorithm editing area into a first algorithm editing area, wherein any area allowing editing in the first algorithm editing area is empty; or in response to a user selecting a target custom algorithm control from a plurality of custom algorithm controls, updating the algorithm editing region to a second algorithm editing region; receiving target input of a user in an algorithm editing area, wherein the target input is used for editing a target algorithm; and responding to the target input, and displaying the edited target algorithm.

Description

一种算法编辑方法和装置An algorithm editing method and device

技术领域Technical field

本申请涉及数据处理技术领域,尤其涉及一种算法编辑方法和装置。The present application relates to the field of data processing technology, and in particular to an algorithm editing method and device.

背景技术Background technique

为了充分发挥装备在作战体系中的作用,需要在装备的研制过程中,基于试验产生的数据或推演仿真的数据对装备的效能进行评估,数据预处理作为效能评估系统的重要组成部分,直接影响效能评估的合理性、准确性和可靠性。In order to give full play to the role of equipment in the combat system, it is necessary to evaluate the effectiveness of the equipment based on data generated by experiments or data from deduction simulations during the development process of the equipment. As an important part of the effectiveness evaluation system, data preprocessing directly affects Reasonableness, accuracy and reliability of performance assessment.

但现有数据预处理是基于固定的算法进行的,对于复杂数据采用固定的算法,可能需要舍弃部分数据或者选择不完全贴合的算法,导致计算过程脱离预期,计算结果可靠性不高。However, existing data preprocessing is based on fixed algorithms. Using fixed algorithms for complex data may require discarding part of the data or selecting an algorithm that is not completely suitable, causing the calculation process to deviate from expectations and the calculation results to be unreliable.

因此,亟需一种可以灵活编辑算法的方法。Therefore, a method that can flexibly edit algorithms is urgently needed.

发明内容Contents of the invention

本申请实施例提供了一种算法编辑方法和装置,以解决现有技术中对数据进行预处理的算法固定,不够灵活的问题。Embodiments of the present application provide an algorithm editing method and device to solve the problem in the prior art that the algorithm for preprocessing data is fixed and not flexible enough.

本申请实施例的第一方面,提供一种算法编辑方法,该方法包括:显示算法管理界面,算法管理界面包括自定义算法区域和算法编辑区域,自定义算法区域包括:多个自定义算法控件和新建自定义算法控件;响应于用户点击新建自定义算法控件的操作,将算法编辑区域更新为第一算法编辑区域,第一算法编辑区域中任意允许编辑的区域为空;或者,响应于用户从多个自定义算法控件中选择目标自定义算法控件的操作,将算法编辑区域更新为第二算法编辑区域,第二算法编辑区域中任意允许编辑的区域包括的内容用于表征目标自定义算法控件对应的目标自定义算法;接收用户在算法编辑区域的目标输入,目标输入用于编辑目标算法;响应于目标输入,显示编辑得到的目标算法。A first aspect of the embodiment of this application provides an algorithm editing method. The method includes: displaying an algorithm management interface. The algorithm management interface includes a custom algorithm area and an algorithm editing area. The custom algorithm area includes: multiple custom algorithm controls. and create a new custom algorithm control; in response to the user clicking on the operation of creating a new custom algorithm control, the algorithm editing area is updated to the first algorithm editing area, and any area allowed to be edited in the first algorithm editing area is empty; or, in response to the user The operation of selecting a target custom algorithm control from multiple custom algorithm controls, updating the algorithm editing area to a second algorithm editing area, and the content included in any editable area in the second algorithm editing area is used to characterize the target custom algorithm The target custom algorithm corresponding to the control; receives the user's target input in the algorithm editing area, and the target input is used to edit the target algorithm; in response to the target input, the edited target algorithm is displayed.

本申请一些实施例中,算法编辑区域包括:算法参数管理区域,参数权重管理区域,编辑区域;算法参数管理区域包括:参数编辑表;参数权重管理区域包括:权重编辑表;编辑区域包括:输入框,多个预设运算符号控件;响应于目标输入,显示编辑得到的目标算法,包括:响应于用户选中参数编辑表中目标参数行的选择操作,确定目标参数行对应的目标参数,参数编辑表中的任一行包括:参数,参数类型,参数描述,参数类型用于指示参数的数据类型,参数的描述用于指示参数是入参或者出参;在权重编辑表的目标权重行包括目标参数的权重情况下,从目标权重行中获取目标参数的目标权重,权重编辑表的任一行包括:属性,权重类型,权重;属性用于指示属性对应的行中的权重所属的参数,权重类型用于指示权重的数据类型;在输入框中显示目标权重和目标参数;响应于用户点击多个预设运算符号控件中目标控件的操作,在输入框中显示目标控件对应的预设符号。In some embodiments of this application, the algorithm editing area includes: algorithm parameter management area, parameter weight management area, and editing area; the algorithm parameter management area includes: parameter editing table; the parameter weight management area includes: weight editing table; and the editing area includes: input box, multiple preset operation symbol controls; in response to the target input, display the edited target algorithm, including: in response to the user's selection operation of the target parameter row in the parameter editing table, determining the target parameter corresponding to the target parameter row, parameter editing Any row in the table includes: parameter, parameter type, parameter description. The parameter type is used to indicate the data type of the parameter. The parameter description is used to indicate whether the parameter is an input parameter or an output parameter; the target weight row in the weight editing table includes the target parameter. In the case of weight, obtain the target weight of the target parameter from the target weight row. Any row of the weight editing table includes: attribute, weight type, weight; the attribute is used to indicate the parameter to which the weight in the row corresponding to the attribute belongs, and the weight type is The data type indicating the weight; the target weight and target parameters are displayed in the input box; in response to the user clicking on the target control in multiple preset operation symbol controls, the preset symbol corresponding to the target control is displayed in the input box.

本申请一些实施例中,编辑区域还包括:清除控件和清除全部控件;方法还包括:响应于用户点击清除控件的操作,清除输入框中显示的目标内容,目标内容为用户指示的待删除的内容;响应于用户点击清除全部控件的操作,清除输入框中显示的内容。In some embodiments of the present application, the editing area also includes: clearing controls and clearing all controls; the method also includes: in response to the user clicking the clear control operation, clearing the target content displayed in the input box, and the target content is the content to be deleted indicated by the user. Content; clears the content displayed in the input box in response to the user clicking to clear all controls.

本申请一些实施例中,算法参数管理区域还包括:添加参数控件,删除参数控件;参数权重管理区域还包括:添加权重控件,删除权重控件;该方法还包括:响应于用户点击添加参数控件的操作,在参数编辑表中新增一行;响应于用户点击删除参数控件的操作,在参数编辑表中删除选中行;响应于用户点击添加权重控件的操作,在权重编辑表中新增一行;响应于用户点击删除权重控件的操作,在权重编辑表中删除选中行。In some embodiments of the present application, the algorithm parameter management area also includes: adding parameter controls and deleting parameter controls; the parameter weight management area also includes: adding weight controls and deleting weight controls; the method also includes: responding to the user clicking to add parameter controls. Operation, add a new row in the parameter editing table; in response to the user's click to delete the parameter control, delete the selected row in the parameter editing table; in response to the user's click to add the weight control, add a new row in the weight editing table; in response to When the user clicks to delete the weight control, the selected row is deleted in the weight editing table.

本申请一些实施例中,该方法还包括:响应于用户对参数编辑表中第一目标单元格的编辑操作,在第一目标单元格中显示编辑的内容,第一目标单元格为参数编辑表中的任意单元格;响应于对权重编辑表中第二目标单元格的编辑操作,在第二目标单元格中显示编辑的内容,第二目标单元格为权重编辑表中的任意单元格。In some embodiments of the present application, the method further includes: in response to the user's editing operation on the first target cell in the parameter editing table, displaying the edited content in the first target cell, and the first target cell is the parameter editing table any cell in the weight editing table; in response to the editing operation on the second target cell in the weight editing table, the edited content is displayed in the second target cell, and the second target cell is any cell in the weight editing table.

本申请一些实施例中,算法管理界面还包括:预设算法区域,预设算法区域包括多个预设算法;该方法还包括:响应于从多个预设算法中选择目标预设算法的操作,显示目标预设算法。In some embodiments of the present application, the algorithm management interface also includes: a preset algorithm area, and the preset algorithm area includes multiple preset algorithms; the method further includes: responding to an operation of selecting a target preset algorithm from multiple preset algorithms. , displays the target preset algorithm.

本申请一些实施例中,算法管理界面还包括:保存控件;算法编辑区域包括:算法名称编辑框,算法概述编辑框;响应于目标输入,显示编辑得到的目标算法之后,该方法还包括:响应于用户点击保存控件的操作,在自定义算法区域显示目标算法的名称,目标算法的名称为算法名称编辑框中的内容;将目标算法保存到自定义算法库,自定义算法库中存储了多个自定义算法。In some embodiments of this application, the algorithm management interface also includes: a save control; the algorithm editing area includes: an algorithm name edit box and an algorithm summary edit box; in response to the target input, after displaying the edited target algorithm, the method also includes: responding When the user clicks the save control, the name of the target algorithm is displayed in the custom algorithm area. The name of the target algorithm is the content in the algorithm name edit box; the target algorithm is saved to the custom algorithm library, which stores multiple a custom algorithm.

本申请实施例的第二方面,提供一种算法编辑装置,该装置包括:显示模块,用于显示算法管理界面,算法管理界面包括自定义算法区域和算法编辑区域,自定义算法区域包括:多个自定义算法控件和新建自定义算法控件;更新模块,用于响应于用户点击新建自定义算法控件的操作,将算法编辑区域更新为第一算法编辑区域,第一算法编辑区域中任意允许编辑的区域为空;或者,响应于用户从多个自定义算法控件中选择目标自定义算法控件的操作,将算法编辑区域更新为第二算法编辑区域,第二算法编辑区域中任意允许编辑的区域包括的内容用于表征目标自定义算法控件对应的目标自定义算法;接收模块,用于接收用户在算法编辑区域的目标输入,目标输入用于编辑目标算法;显示模块,还用于响应于目标输入,显示编辑得到的目标算法。A second aspect of the embodiment of the present application provides an algorithm editing device. The device includes: a display module for displaying an algorithm management interface. The algorithm management interface includes a custom algorithm area and an algorithm editing area. The custom algorithm area includes: A custom algorithm control and a new custom algorithm control; an update module, configured to update the algorithm editing area to the first algorithm editing area in response to the user clicking on the operation of creating a new custom algorithm control, and any editing in the first algorithm editing area is allowed The area is empty; or, in response to the user's operation of selecting a target custom algorithm control from multiple custom algorithm controls, the algorithm editing area is updated to a second algorithm editing area, and any area in the second algorithm editing area that is allowed to be edited The included content is used to characterize the target custom algorithm corresponding to the target custom algorithm control; the receiving module is used to receive the user's target input in the algorithm editing area, and the target input is used to edit the target algorithm; the display module is also used to respond to the target Enter and display the edited target algorithm.

本申请一些实施例中,该装置还包括:删除模块,该删除模块,用于响应于用户在第一自定义算法控件上的删除操作,删除第一自定义算法控件,第一自定义算法控件为多个自定义算法控件中的一个。In some embodiments of the present application, the device further includes: a deletion module, the deletion module is configured to delete the first custom algorithm control in response to the user's deletion operation on the first custom algorithm control. One of several custom algorithm controls.

本申请一些实施例中,该装置还包括:确定模块和获取模块;算法编辑区域包括:算法参数管理区域,参数权重管理区域,编辑区域;算法参数管理区域包括:参数编辑表;参数权重管理区域包括:权重编辑表;编辑区域包括:输入框,多个预设运算符号控件;该确定模块,用于响应于用户选中参数编辑表中目标参数行的选择操作,确定目标参数行对应的目标参数,参数编辑表中的任一行包括:参数,参数类型,参数描述,参数类型用于指示参数的数据类型,参数的描述用于指示参数是入参或者出参;获取模块,用于在权重编辑表的目标权重行包括目标参数的权重情况下,从目标权重行中获取目标参数的目标权重,权重编辑表的任一行包括:属性,权重类型,权重;属性用于指示属性对应的行中的权重所属的参数,权重类型用于指示权重的数据类型;该显示模块,具体用于在输入框中显示目标权重和目标参数;响应于用户点击多个预设运算符号控件中目标控件的操作,在输入框中显示目标控件对应的预设符号。In some embodiments of the present application, the device further includes: a determination module and an acquisition module; the algorithm editing area includes: an algorithm parameter management area, a parameter weight management area, and an editing area; the algorithm parameter management area includes: a parameter editing table; and a parameter weight management area. It includes: a weight editing table; the editing area includes: an input box and a plurality of preset operation symbol controls; the determination module is used to determine the target parameter corresponding to the target parameter row in response to the user's selection operation of selecting the target parameter row in the parameter editing table. , any row in the parameter editing table includes: parameter, parameter type, parameter description. The parameter type is used to indicate the data type of the parameter. The parameter description is used to indicate whether the parameter is an input parameter or an output parameter; the acquisition module is used to edit the weight. When the target weight row of the table includes the weight of the target parameter, the target weight of the target parameter is obtained from the target weight row. Any row of the weight editing table includes: attribute, weight type, weight; attributes are used to indicate the attributes in the row corresponding to the attribute. The parameter to which the weight belongs, and the weight type is used to indicate the data type of the weight; the display module is specifically used to display the target weight and target parameters in the input box; in response to the user clicking on the target control in multiple preset operation symbol controls, Display the preset symbol corresponding to the target control in the input box.

本申请一些实施例中,编辑区域还包括:清除控件和清除全部控件;该删除模块,还用于响应于用户点击清除控件的操作,清除输入框中显示的目标内容,目标内容为用户指示的待删除的内容;响应于用户点击清除全部控件的操作,清除输入框中显示的内容。In some embodiments of the present application, the editing area also includes: clear controls and clear all controls; the deletion module is also used to clear the target content displayed in the input box in response to the user clicking the clear control operation, and the target content is the user indicated Content to be deleted; in response to the user clicking to clear all controls, clear the content displayed in the input box.

本申请一些实施例中,该装置还包括:添加模块;算法参数管理区域还包括:添加参数控件,删除参数控件;参数权重管理区域还包括:添加权重控件,删除权重控件;该添加模块,用于响应于用户点击添加参数控件的操作,在参数编辑表中新增一行;该删除模块,还用于响应于用户点击删除参数控件的操作,在参数编辑表中删除选中行;该添加模块,还用于响应于用户点击添加权重控件的操作,在权重编辑表中新增一行;该删除模块,还用于响应于用户点击删除权重控件的操作,在权重编辑表中删除选中行。In some embodiments of the present application, the device further includes: an adding module; the algorithm parameter management area also includes: adding parameter controls and deleting parameter controls; the parameter weight management area also includes: adding weight controls and deleting weight controls; the adding module is used to In response to the user clicking the operation of adding the parameter control, a new row is added in the parameter editing table; the deletion module is also used to respond to the user clicking the operation of deleting the parameter control, and deleting the selected row in the parameter editing table; the adding module, It is also used to add a new row in the weight editing table in response to the user clicking to add the weight control; the deletion module is also used to delete the selected row in the weight editing table in response to the user clicking to delete the weight control.

本申请一些实施例中,该显示模块,还用于响应于用户对参数编辑表中第一目标单元格的编辑操作,在第一目标单元格中显示编辑的内容,第一目标单元格为参数编辑表中的任意单元格;响应于对权重编辑表中第二目标单元格的编辑操作,在第二目标单元格中显示编辑的内容,第二目标单元格为权重编辑表中的任意单元格。In some embodiments of the present application, the display module is also used to display the edited content in the first target cell in response to the user's editing operation on the first target cell in the parameter editing table, and the first target cell is the parameter. Edit any cell in the table; in response to the editing operation on the second target cell in the weight editing table, display the edited content in the second target cell, and the second target cell is any cell in the weight editing table .

本申请一些实施例中,算法管理界面还包括:预设算法区域,预设算法区域包括多个预设算法;该显示模块,还用于响应于从多个预设算法中选择目标预设算法的操作,显示目标预设算法。In some embodiments of the present application, the algorithm management interface also includes: a preset algorithm area, which includes multiple preset algorithms; the display module is also used to respond to selecting a target preset algorithm from multiple preset algorithms. operation, display the target preset algorithm.

本申请一些实施例中,该装置还包括:保存模块;算法管理界面还包括:保存控件;算法编辑区域包括:算法名称编辑框,算法概述编辑框;该显示模块,还用于响应于目标输入,显示编辑得到的目标算法之后,响应于用户点击保存控件的操作,在自定义算法区域显示目标算法的名称,目标算法的名称为算法名称编辑框中的内容;该保存模块,用于将目标算法保存到自定义算法库,自定义算法库中存储了多个自定义算法。In some embodiments of the present application, the device further includes: a saving module; the algorithm management interface also includes: a saving control; the algorithm editing area includes: an algorithm name edit box and an algorithm summary edit box; the display module is also used to respond to target input , after displaying the edited target algorithm, in response to the user clicking the save control, the name of the target algorithm is displayed in the custom algorithm area. The name of the target algorithm is the content in the algorithm name edit box; the save module is used to save the target algorithm. The algorithm is saved to the custom algorithm library, which stores multiple custom algorithms.

本申请实施例的第三方面,提供一种电子设备,该电子设备包括处理器、存储器及存储在该存储器上并可在该处理器上运行的程序或指令,该程序或指令被该处理器执行时实现如第一方面所述的算法编辑方法的步骤。A third aspect of the embodiment of the present application provides an electronic device. The electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor. The program or instruction is executed by the processor. When executed, the steps of the algorithm editing method as described in the first aspect are implemented.

本申请实施例的第四方面,提供一种计算机可读存储介质,该计算机可读存储介质上存储程序或指令,该程序或指令被处理器执行时实现如第一方面所述的算法编辑方法的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium. Programs or instructions are stored on the computer-readable storage medium. When the programs or instructions are executed by a processor, the algorithm editing method as described in the first aspect is implemented. A step of.

本申请实施例的第五方面,提供一种计算机程序产品,其中,该计算机程序产品包括计算机程序或指令,当该计算机程序产品在处理器上运行时,使得处理器执行该计算机程序或指令,实现如第一方面所述的算法编辑方法的步骤。A fifth aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a computer program or instructions, and when the computer program product is run on a processor, it causes the processor to execute the computer program or instructions, The steps of implementing the algorithm editing method as described in the first aspect.

本申请实施例的第六方面,提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现如第一方面所述的算法编辑方法。A sixth aspect of the embodiment of the present application provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the method described in the first aspect. Algorithmic editing methods.

本申请实施例提供的技术方案与现有技术相比具有如下优点:Compared with the existing technology, the technical solution provided by the embodiment of the present application has the following advantages:

本申请实施例中,显示算法管理界面,算法管理界面包括自定义算法区域和算法编辑区域,自定义算法区域包括:多个自定义算法控件和新建自定义算法控件;响应于用户点击新建自定义算法控件的操作,将算法编辑区域更新为第一算法编辑区域,第一算法编辑区域中任意允许编辑的区域为空;或者,响应于用户从多个自定义算法控件中选择目标自定义算法控件的操作,将算法编辑区域更新为第二算法编辑区域,第二算法编辑区域中任意允许编辑的区域包括的内容用于表征目标自定义算法控件对应的目标自定义算法;接收用户在算法编辑区域的目标输入,目标输入用于编辑目标算法;响应于目标输入,显示编辑得到的目标算法。如此,用户可以根据实际数据,通过该方案编辑自定义算法对数据进行预处理,以得到更可靠的结果,避免了通过已有的固定算法处理复杂数据时,需要舍弃部分数据,或者通过不够合理的算法对数据进行预处理。In the embodiment of this application, the algorithm management interface is displayed. The algorithm management interface includes a custom algorithm area and an algorithm editing area. The custom algorithm area includes: multiple custom algorithm controls and a new custom algorithm control; in response to the user clicking a new custom algorithm The operation of the algorithm control is to update the algorithm editing area to the first algorithm editing area, and any area allowed to be edited in the first algorithm editing area is empty; or, in response to the user selecting the target custom algorithm control from multiple custom algorithm controls The operation of updating the algorithm editing area to the second algorithm editing area. The content included in any area that is allowed to be edited in the second algorithm editing area is used to characterize the target custom algorithm corresponding to the target custom algorithm control; receiving user input in the algorithm editing area The target input is used to edit the target algorithm; in response to the target input, the edited target algorithm is displayed. In this way, users can use this solution to edit custom algorithms to preprocess data based on actual data to obtain more reliable results. This avoids the need to discard part of the data when processing complex data through existing fixed algorithms, or the process is not reasonable enough. algorithm to preprocess the data.

附图说明Description of drawings

为了更清楚地说明本申请实施例技术方案,下面将对实施例和现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to describe the embodiments and the prior art. Obviously, the drawings in the following description are only some implementations of the present application. For example, other drawings can also be obtained based on these drawings.

图1为本申请实施例提供的算法编辑方法的流程示意图之一;Figure 1 is one of the flow diagrams of the algorithm editing method provided by the embodiment of the present application;

图2为本申请实施例提供的算法编辑方法的界面示意图之一;Figure 2 is one of the interface schematic diagrams of the algorithm editing method provided by the embodiment of the present application;

图3为本申请实施例提供的算法编辑方法的流程示意图之二;Figure 3 is a second schematic flowchart of the algorithm editing method provided by the embodiment of the present application;

图4为本申请实施例提供的算法编辑方法的界面示意图之二;Figure 4 is the second schematic interface diagram of the algorithm editing method provided by the embodiment of the present application;

图5为本申请实施例提供的算法编辑方法的界面示意图之三;Figure 5 is the third schematic interface diagram of the algorithm editing method provided by the embodiment of the present application;

图6为本申请实施例提供的算法编辑方法的流程示意图之三;Figure 6 is the third schematic flowchart of the algorithm editing method provided by the embodiment of the present application;

图7为本申请实施例提供的算法编辑方法的界面示意图之四;Figure 7 is the fourth schematic interface diagram of the algorithm editing method provided by the embodiment of the present application;

图8为本申请实施例提供的算法编辑方法的界面示意图之五;Figure 8 is the fifth interface schematic diagram of the algorithm editing method provided by the embodiment of the present application;

图9为本申请实施例提供的算法编辑方法的流程示意图之四;Figure 9 is the fourth schematic flowchart of the algorithm editing method provided by the embodiment of the present application;

图10为本申请实施例提供的算法编辑方法的界面示意图之六;Figure 10 is the sixth interface schematic diagram of the algorithm editing method provided by the embodiment of the present application;

图11为本申请实施例提供的算法编辑方法的流程示意图之五;Figure 11 is the fifth schematic flow chart of the algorithm editing method provided by the embodiment of the present application;

图12为本申请实施例提供的算法编辑方法的界面示意图之七;Figure 12 is the seventh interface schematic diagram of the algorithm editing method provided by the embodiment of the present application;

图13为本申请实施例提供的算法编辑方法的界面示意图之八;Figure 13 is the eighth interface schematic diagram of the algorithm editing method provided by the embodiment of the present application;

图14为本申请实施例提供的算法编辑方法的流程示意图之六;Figure 14 is a schematic flowchart No. 6 of the algorithm editing method provided by the embodiment of the present application;

图15为本申请实施例提供的算法编辑方法的界面示意图之九;Figure 15 is the ninth schematic interface diagram of the algorithm editing method provided by the embodiment of the present application;

图16为本申请实施例提供的算法编辑方法的流程示意图之七;Figure 16 is a schematic flowchart 7 of the algorithm editing method provided by the embodiment of the present application;

图17为本申请实施例提供的算法编辑方法的界面示意图之十;Figure 17 is a tenth schematic interface diagram of the algorithm editing method provided by the embodiment of the present application;

图18为本申请实施例提供的算法编辑方法的流程示意图之八;Figure 18 is the eighth flowchart of the algorithm editing method provided by the embodiment of the present application;

图19为本申请实施例提供的算法编辑方法的界面示意图之十一;Figure 19 is an eleventh schematic interface diagram of the algorithm editing method provided by the embodiment of the present application;

图20为本申请实施例提供的算法编辑方法的流程示意图之九;Figure 20 is a schematic flowchart 9 of the algorithm editing method provided by the embodiment of the present application;

图21为本申请实施例提供的算法编辑方法的界面示意图之十二;Figure 21 is the twelfth schematic interface diagram of the algorithm editing method provided by the embodiment of the present application;

图22为本申请实施例提供的一种算法编辑装置的结构框图;Figure 22 is a structural block diagram of an algorithm editing device provided by an embodiment of the present application;

图23为本申请实施例提供的一种电子设备的硬件结构示意图。Figure 23 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art fall within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects and are not used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in orders other than those illustrated or described herein, and that "first," "second," etc. are distinguished Objects are usually of one type, and the number of objects is not limited. For example, the first object can be one or multiple. In addition, "and/or" in the description and claims indicates at least one of the connected objects, and the character "/" generally indicates that the related objects are in an "or" relationship.

本申请实施例中的电子设备可以为移动电子设备,也可以为非移动电子设备。移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动电子设备可以为个人计算机(personalcomputer,PC)、电视机(television,TV)、柜员机或者自助机等;本申请实施例不作具体限定。The electronic device in the embodiment of the present application may be a mobile electronic device or a non-mobile electronic device. Mobile electronic devices can be mobile phones, tablets, laptops, PDAs, vehicle-mounted electronic devices, wearable devices, ultra-mobile personal computers (UMPC), netbooks or personal digital assistants (PDA) etc.; the non-mobile electronic device can be a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc.; the embodiments of this application are not specifically limited.

本申请实施例提供的算法编辑方法的执行主体可以为上述的电子设备(包括移动电子设备和非移动电子设备),也可以为该电子设备中能够实现该算法编辑方法的功能模块和/或功能实体,具体的可以根据实际使用需求确定,本申请实施例不作限定。The execution subject of the algorithm editing method provided by the embodiments of the present application may be the above-mentioned electronic device (including mobile electronic devices and non-mobile electronic devices), or may be a functional module and/or function in the electronic device that can implement the algorithm editing method. The specific entity can be determined according to actual usage requirements, and is not limited in the embodiments of this application.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的算法编辑方法进行详细地说明。The algorithm editing method provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios.

如图1所示,本申请实施例提供一种算法编辑方法,下面以执行主体为电子设备为例,对本申请实施例提供的算法编辑方法进行示例性的说明。该方法可以包括下述的步骤101至步骤104。As shown in FIG. 1 , an embodiment of the present application provides an algorithm editing method. Taking the execution subject as an electronic device as an example, the algorithm editing method provided by the embodiment of the present application will be exemplified below. The method may include steps 101 to 104 described below.

101、显示算法管理界面。101. Display the algorithm management interface.

其中,算法管理界面包括自定义算法区域和算法编辑区域。Among them, the algorithm management interface includes a custom algorithm area and an algorithm editing area.

102、响应于用户在自定义算法区域的编辑操作,更新算法管理界面包括的算法编辑区域。102. In response to the user's editing operation in the custom algorithm area, update the algorithm editing area included in the algorithm management interface.

可以理解,用户在自定义算法区域的编辑操作,可以是用户新建一个自定义算法的操作,还可以是用户编辑已有的自定义算法的操作。It can be understood that the user's editing operation in the custom algorithm area can be the user's operation to create a new custom algorithm, or the user's operation to edit an existing custom algorithm.

103、接收用户在算法编辑区域的目标输入,目标输入用于编辑目标算法。103. Receive the user's target input in the algorithm editing area, and the target input is used to edit the target algorithm.

可以理解,目标输入是用户输入的自定义算法,或者,更改已有的自定义算法。It can be understood that the target input is a custom algorithm input by the user, or changing an existing custom algorithm.

104、响应于目标输入,显示编辑得到的目标算法。104. In response to the target input, display the edited target algorithm.

示例性地,如图2所示,为一种示例性的算法管理界面的示意图。标号200指示的区域为算法管理界面,算法管理界面包括标号201指示的自定义算法区域和标号202指示的算法编辑区域。For example, as shown in Figure 2, it is a schematic diagram of an exemplary algorithm management interface. The area indicated by reference number 200 is the algorithm management interface. The algorithm management interface includes a custom algorithm area indicated by reference number 201 and an algorithm editing area indicated by reference number 202.

可选地,显示编辑得到的目标算法还包括:对目标算法的合规性检查;在目标算法不合规时,显示编辑得到的目标算法,和用于指示目标算法不合规的信息;在目标算法合规时,显示编辑得到的目标算法。Optionally, displaying the edited target algorithm also includes: a compliance check on the target algorithm; when the target algorithm is non-compliant, displaying the edited target algorithm and information indicating that the target algorithm is non-compliant; When the target algorithm is compliant, the edited target algorithm is displayed.

示例性地,目标算法的括号形式不一致,则提示信息可以是“请检查括号的形式是否一致”;目标算法的括号不是成对的,则提示信息可以是“请检查是否缺少括号”等,或者提示信息还可以是对目标算法可能错误的位置标红以提示等。For example, if the bracket forms of the target algorithm are inconsistent, the prompt message may be "Please check whether the bracket forms are consistent"; if the brackets of the target algorithm are not in pairs, the prompt message may be "Please check whether the brackets are missing", etc., or The prompt information can also be a red mark on the position where the target algorithm may be wrong to prompt, etc.

本申请实施例中,显示算法管理界面,算法管理界面包括自定义算法区域和算法编辑区域;响应于用户在自定义算法区域的编辑操作,更新算法管理界面包括的算法编辑区域;接收用户在算法编辑区域的目标输入,目标输入用于编辑目标算法;响应于目标输入,显示编辑得到的目标算法。如此,用户可以根据实际数据,通过该方案编辑自定义算法对数据进行预处理,以得到更可靠的结果,避免了通过已有的固定算法处理复杂数据时,需要舍弃部分数据,或者通过不够合理的算法对数据进行预处理。In the embodiment of the present application, the algorithm management interface is displayed, and the algorithm management interface includes a custom algorithm area and an algorithm editing area; in response to the user's editing operation in the custom algorithm area, the algorithm editing area included in the algorithm management interface is updated; and the algorithm editing area included in the algorithm management interface is received by the user. Target input in the editing area. The target input is used to edit the target algorithm; in response to the target input, the edited target algorithm is displayed. In this way, users can use this solution to edit custom algorithms to preprocess data based on actual data to obtain more reliable results. This avoids the need to discard part of the data when processing complex data through existing fixed algorithms, or the process is not reasonable enough. algorithm to preprocess the data.

本申请一些实施例中,结合图1,如图3所示,自定义算法区域包括:多个自定义算法控件和新建自定义算法控件;上述步骤102具体可以通过下述步骤102a或者步骤102b实现。In some embodiments of the present application, as shown in Figure 3 in conjunction with Figure 1, the custom algorithm area includes: multiple custom algorithm controls and a new custom algorithm control; the above step 102 can be implemented through the following step 102a or step 102b. .

102a、响应于用户点击新建自定义算法控件的操作,将算法编辑区域更新为第一算法编辑区域。102a. In response to the user clicking the operation of creating a new custom algorithm control, update the algorithm editing area to the first algorithm editing area.

其中,第一算法编辑区域中任意允许编辑的区域为空。Among them, any area allowed to be edited in the first algorithm editing area is empty.

示例性地,如图2所示,标号202所示的区域,即为用户点击新建自定义算法控件后,显示的第一算法编辑区域。For example, as shown in Figure 2, the area indicated by number 202 is the first algorithm editing area displayed after the user clicks to create a new custom algorithm control.

102b、响应于用户从多个自定义算法控件中选择目标自定义算法控件的操作,将算法编辑区域更新为第二算法编辑区域。102b. In response to the user's operation of selecting a target custom algorithm control from multiple custom algorithm controls, update the algorithm editing area to the second algorithm editing area.

其中,第二算法编辑区域中任意允许编辑的区域包括的内容用于表征目标自定义算法控件对应的目标自定义算法。Among them, the content included in any area that is allowed to be edited in the second algorithm editing area is used to represent the target custom algorithm corresponding to the target custom algorithm control.

示例性地,如图4所示,标号202所示的区域,即为用户点击自定义算法1控件后,显示的第二算法编辑区域。For example, as shown in Figure 4, the area indicated by number 202 is the second algorithm editing area displayed after the user clicks the custom algorithm 1 control.

可选地,自定义算法区域还包括:导入文件控件;上述步骤102具体可以通过下述步骤102c实现。Optionally, the custom algorithm area also includes: import file control; the above step 102 can be specifically implemented through the following step 102c.

102c、响应于用户点击导入文件控件的操作,将算法编辑区域更新为第三算法编辑区域。102c. In response to the user's click on the import file control, update the algorithm editing area to the third algorithm editing area.

其中,第三算法编辑区域显示指示用户选择待导入文件。Wherein, the third algorithm editing area displays instructions for the user to select the file to be imported.

具体地,用户点击导入文件控件,选择目标文件后,识别目标文件中包括的至少一个算法并显示。Specifically, the user clicks the import file control and after selecting the target file, at least one algorithm included in the target file is identified and displayed.

示例性地,如图5所示,标号202所示的区域,即为用户点击导入文件控件后,显示的第三算法编辑区域。图5中示出的文件1至文件6为示例性的候选待导入文件,用户选择文件后点击确定,即可开始识别文件中包括的算法。For example, as shown in Figure 5, the area indicated by the number 202 is the third algorithm editing area displayed after the user clicks the import file control. Files 1 to 6 shown in Figure 5 are exemplary candidate files to be imported. After the user selects the file and clicks OK, the user can start to identify the algorithm included in the file.

本申请实施例中,自定义算法区域包括:多个自定义算法控件和新建自定义算法控件;响应于用户在自定义算法区域的编辑操作,更新算法管理界面包括的算法编辑区域,包括:响应于用户点击新建自定义算法控件的操作,将算法编辑区域更新为第一算法编辑区域,第一算法编辑区域中任意允许编辑的区域为空;或者,响应于用户从多个自定义算法控件中选择目标自定义算法控件的操作,将算法编辑区域更新为第二算法编辑区域,第二算法编辑区域中任意允许编辑的区域包括的内容用于表征目标自定义算法控件对应的目标自定义算法。用户可以新建一个自定义算法,或者,对已保存的自定义算法进行编辑,方便用户使用。In the embodiment of this application, the custom algorithm area includes: multiple custom algorithm controls and a new custom algorithm control; in response to the user's editing operation in the custom algorithm area, the algorithm editing area included in the algorithm management interface is updated, including: response In response to the user clicking on the operation of creating a new custom algorithm control, the algorithm editing area is updated to the first algorithm editing area, and any area allowed to be edited in the first algorithm editing area is empty; or in response to the user selecting from multiple custom algorithm controls The operation of selecting the target custom algorithm control updates the algorithm editing area to the second algorithm editing area. The content included in any editable area in the second algorithm editing area is used to characterize the target custom algorithm corresponding to the target custom algorithm control. Users can create a new custom algorithm, or edit a saved custom algorithm for user convenience.

本申请一些实施例中,结合图3,如图6所示,该算法编辑方法还包括下述步骤105。In some embodiments of the present application, as shown in Figure 6 in conjunction with Figure 3, the algorithm editing method also includes the following step 105.

105、响应于用户在第一自定义算法控件上的删除操作,删除第一自定义算法控件。105. In response to the user's deletion operation on the first custom algorithm control, delete the first custom algorithm control.

其中,第一自定义算法控件为多个自定义算法控件中的一个。Wherein, the first custom algorithm control is one of multiple custom algorithm controls.

可以理解,对于自定义算法区域包括的多个自定义算法控件,用户可以根据需要删除已保存的自定义算法。It can be understood that for multiple custom algorithm controls included in the custom algorithm area, users can delete the saved custom algorithms as needed.

可以理解,删除掉第一自定义算法控件后,可以同时删除自定义算法库中保存的第一自定义算法,也可以不删除自定义算法库中保存的第一自定义算法,具体根据实际需要确定,本申请不做限定。It can be understood that after deleting the first custom algorithm control, you can delete the first custom algorithm saved in the custom algorithm library at the same time, or you can not delete the first custom algorithm saved in the custom algorithm library, depending on actual needs. OK, this application is not limited.

示例性地,如图7所示,用户在自定义算法1控件中点击鼠标右键,点击显示的删除控件,即可删除掉自定义算法1,删除后显示的界面如图8所示。For example, as shown in Figure 7, the user right-clicks the mouse in the custom algorithm 1 control and clicks the displayed delete control to delete the custom algorithm 1. The interface displayed after deletion is as shown in Figure 8.

本申请实施例中,响应于用户在第一自定义算法控件上的删除操作,删除第一自定义算法控件,第一自定义算法控件为多个自定义算法控件中的一个。如此,在自定义算法区域包括的自定义算法控件较多,或者用户对于不常用的自定义算法控件需要删除时,可以根据需要删除,使得用户对于自定义算法区域更易管理。In the embodiment of the present application, in response to the user's deletion operation on the first custom algorithm control, the first custom algorithm control is deleted, and the first custom algorithm control is one of multiple custom algorithm controls. In this way, the custom algorithm area includes a lot of custom algorithm controls, or if the user needs to delete custom algorithm controls that are not commonly used, they can delete them as needed, making it easier for the user to manage the custom algorithm area.

本申请一些实施例中,结合图3,如图9所示,算法编辑区域包括:算法参数管理区域,参数权重管理区域,编辑区域;算法参数管理区域包括:参数编辑表;参数权重管理区域包括:权重编辑表;编辑区域包括:输入框,多个预设运算符号控件;上述步骤104具体可以通过下述步骤104a至步骤104d实现。In some embodiments of the present application, as shown in Figure 9 in conjunction with Figure 3, the algorithm editing area includes: algorithm parameter management area, parameter weight management area, and editing area; the algorithm parameter management area includes: parameter editing table; the parameter weight management area includes : Weight editing table; the editing area includes: input boxes and multiple preset operation symbol controls; the above step 104 can be specifically implemented through the following steps 104a to 104d.

104a、响应于用户选中参数编辑表中目标参数行的选择操作,确定目标参数行对应的目标参数。104a. In response to the user's selection operation of selecting the target parameter row in the parameter editing table, determine the target parameter corresponding to the target parameter row.

其中,参数编辑表中的任一行包括:参数,参数类型,参数描述,参数类型用于指示参数的数据类型,参数的描述用于指示参数是入参或者出参。Among them, any row in the parameter editing table includes: parameter, parameter type, and parameter description. The parameter type is used to indicate the data type of the parameter, and the parameter description is used to indicate whether the parameter is an input parameter or an output parameter.

104b、在权重编辑表的目标权重行包括目标参数的权重情况下,从目标权重行中获取目标参数的目标权重。104b. When the target weight row of the weight editing table includes the weight of the target parameter, obtain the target weight of the target parameter from the target weight row.

其中,权重编辑表的任一行包括:属性,权重类型,权重;属性用于指示属性对应的行中的权重所属的参数,权重类型用于指示权重的数据类型。Among them, any row in the weight editing table includes: attribute, weight type, and weight; the attribute is used to indicate the parameter to which the weight in the row corresponding to the attribute belongs, and the weight type is used to indicate the data type of the weight.

可以理解,权重编辑表中的属性,是用于描述该行的权重是参数表中某个参数的权重。It can be understood that the attributes in the weight editing table are used to describe that the weight of the row is the weight of a certain parameter in the parameter table.

可以理解,在权重编辑表的目标权重行包括目标参数的权重,即在权重编辑表的目标权重行中,属性对应的内容中包括目标参数,则目标权重行中权重对应的内容为该目标参数的权重;在权重编辑表的任意行不包括目标参数的权重,在权重编辑表的任意行中,属性对应的内容中不包括目标参数,则目标参数的权重为1。It can be understood that the target weight row in the weight editing table includes the weight of the target parameter, that is, in the target weight row of the weight editing table, the content corresponding to the attribute includes the target parameter, then the content corresponding to the weight in the target weight row is the target parameter. The weight of; if any row in the weight editing table does not include the weight of the target parameter, and in any row of the weight editing table, if the content corresponding to the attribute does not include the target parameter, the weight of the target parameter is 1.

104c、在输入框中显示目标权重和目标参数。104c. Display the target weight and target parameters in the input box.

104d、响应于用户点击多个预设运算符号控件中目标控件的操作,在输入框中显示目标控件对应的预设符号。104d. In response to the user clicking on the target control among the multiple preset operation symbol controls, display the preset symbol corresponding to the target control in the input box.

示例性地,如图10所示,标号301指示的为参数编辑表,标号302指示的为权重编辑表,标号303指示的为编辑区域,标号401指示的为输入框,标号402指示的为多个预设运算符号。图10中仅为示例性的示出,预设运算符号还可以包括其他运算符号,本申请实施例不做限定。For example, as shown in Figure 10, the reference number 301 indicates a parameter editing table, the reference number 302 indicates a weight editing table, the reference number 303 indicates an editing area, the reference number 401 indicates an input box, and the reference number 402 indicates a multiple Default operation symbols. FIG. 10 is only an exemplary illustration, and the preset operation symbols may also include other operation symbols, which are not limited by the embodiment of the present application.

需要说明的是,步骤104c和步骤104d不区分先后顺序,在算法编辑的过程中,可以多次重复步骤104a至步骤104d,直至完成需要编辑的算法。It should be noted that the order of steps 104c and 104d is not distinguished. During the algorithm editing process, steps 104a to 104d can be repeated multiple times until the algorithm that needs to be edited is completed.

本申请实施例中,算法编辑区域包括:算法参数管理区域,参数权重管理区域,算法编辑区域;算法参数管理区域包括:参数编辑表;参数权重管理区域包括:权重编辑表;编辑区域包括:输入框,多个预设运算符号控件;响应于目标输入,显示编辑得到的目标算法,包括:响应于用户选中参数编辑表中目标参数行的选择操作,确定目标参数行对应的目标参数,参数编辑表中的任一行包括:参数,参数类型,参数描述,参数类型用于指示参数的数据类型,参数的描述用于指示参数是入参或者出参;在权重编辑表的目标权重行包括目标参数的权重情况下,从目标权重行中获取目标参数的目标权重,权重编辑表的任一行包括:属性,权重类型,权重;属性用于指示属性对应的行中的权重所属的参数,权重类型用于指示权重的数据类型;在输入框中显示目标权重和目标参数;响应于用户点击多个预设运算符号控件中目标控件的操作,在输入框中显示目标控件对应的预设符号。如此,可以通过在参数编辑表中选择算法中需要的参数,以及选择预设运算符号,即可完成自定义算法的编辑,操作过程简单。In the embodiment of this application, the algorithm editing area includes: algorithm parameter management area, parameter weight management area, and algorithm editing area; the algorithm parameter management area includes: parameter editing table; the parameter weight management area includes: weight editing table; the editing area includes: input box, multiple preset operation symbol controls; in response to the target input, display the edited target algorithm, including: in response to the user's selection operation of the target parameter row in the parameter editing table, determining the target parameter corresponding to the target parameter row, parameter editing Any row in the table includes: parameter, parameter type, parameter description. The parameter type is used to indicate the data type of the parameter. The parameter description is used to indicate whether the parameter is an input parameter or an output parameter; the target weight row in the weight editing table includes the target parameter. In the case of weight, obtain the target weight of the target parameter from the target weight row. Any row of the weight editing table includes: attribute, weight type, weight; the attribute is used to indicate the parameter to which the weight in the row corresponding to the attribute belongs, and the weight type is The data type indicating the weight; the target weight and target parameters are displayed in the input box; in response to the user clicking on the target control in multiple preset operation symbol controls, the preset symbol corresponding to the target control is displayed in the input box. In this way, you can complete the editing of the custom algorithm by selecting the parameters required in the algorithm in the parameter editing table and selecting the preset operation symbols. The operation process is simple.

本申请一些实施例中,结合图9,如图11所示,编辑区域还包括:清除控件和清除全部控件;该算法编辑方法还包括下述步骤106和步骤107。In some embodiments of this application, as shown in Figure 11 in conjunction with Figure 9, the editing area also includes: clearing controls and clearing all controls; the algorithm editing method also includes the following steps 106 and 107.

106、响应于用户点击清除控件的操作,清除输入框中显示的目标内容。106. In response to the user clicking the clear control, clear the target content displayed in the input box.

其中,目标内容为用户指示的待删除的内容。Among them, the target content is the content to be deleted indicated by the user.

可以理解,用户指示待删除的内容可以是光标之前显示的一个字符或者多个字符组成的整体;用户指示待删除的内容还可以是用户选中的多个字符,具体根据实际需要确定。It can be understood that the content indicated by the user to be deleted can be one character displayed before the cursor or a combination of multiple characters; the content indicated by the user to be deleted can also be multiple characters selected by the user, which is determined based on actual needs.

107、响应于用户点击清除全部控件的操作,清除输入框中显示的内容。107. In response to the user clicking to clear all controls, clear the content displayed in the input box.

可以理解,清除控件用于用户在需要清除目标内容时使用,清除全部控件用于用户一键清除输入框中显示的全部内容。It can be understood that the clear control is used when the user needs to clear the target content, and the clear all control is used by the user to clear all the content displayed in the input box with one click.

示例性地,如图12所示,点击“Clean”控件后,结合图10,标号401指示的输入框中最近显示(输入)的内容“0.7In2”被清除,不显示。如图13所示,点击“Clean All”控件后,结合图10,标号401指示的输入框中最近显示的内容“0.3In1+0.7In2”被全部清除,标号401指示的输入框不显示任何内容。For example, as shown in Figure 12, after clicking the "Clean" control, combined with Figure 10, the recently displayed (input) content "0.7In2" in the input box indicated by the label 401 is cleared and is not displayed. As shown in Figure 13, after clicking the "Clean All" control, combined with Figure 10, the recently displayed content "0.3In1+0.7In2" in the input box indicated by number 401 is completely cleared, and the input box indicated by number 401 does not display any content. .

本申请实施例中,编辑区域还包括:清除控件和清除全部控件;响应于用户点击清除控件的操作,清除输入框中显示的目标内容,目标内容为用户指示待删除的内容;响应于用户点击清除全部控件的操作,清除输入框中显示的内容。如此,在用户输入错误时,可以清除错误的内容,或者,在用户需要重新输入时,可以清除全部的内容,进一步方便用户使用。In the embodiment of this application, the editing area also includes: clear control and clear all controls; in response to the user clicking the clear control operation, clear the target content displayed in the input box, and the target content is the content to be deleted indicated by the user; in response to the user clicking Clear all controls and clear the content displayed in the input box. In this way, when the user makes an input error, the wrong content can be cleared, or when the user needs to re-enter, all the content can be cleared, which further facilitates the user's use.

本申请一些实施例中,结合图9,如图14所示,算法参数管理区域还包括:添加参数控件,删除参数控件;参数权重管理区域还包括:添加权重控件,删除权重控件;该算法编辑方法还包括下述步骤108至步骤111。In some embodiments of this application, as shown in Figure 14 in conjunction with Figure 9, the algorithm parameter management area also includes: adding parameter controls and deleting parameter controls; the parameter weight management area also includes: adding weight controls and deleting weight controls; the algorithm editor The method also includes the following steps 108 to 111.

108、响应于用户点击添加参数控件的操作,在参数编辑表中新增一行。108. In response to the user clicking on the add parameter control, add a new row in the parameter editing table.

109、响应于用户点击删除参数控件的操作,在参数编辑表中删除选中行。109. In response to the user clicking the delete parameter control, delete the selected row in the parameter editing table.

110、响应于用户点击添加权重控件的操作,在权重编辑表中新增一行。110. In response to the user clicking the operation of adding a weight control, add a new row in the weight editing table.

111、响应于用户点击删除权重控件的操作,在权重编辑表中删除选中行。111. In response to the user's click to delete the weight control, delete the selected row in the weight editing table.

示例性地,如图15所示,参数编辑表上方的“添加”控件,用于在参数编辑表中新增一行,参数编辑表上方的“删除”控件,用于在参数编辑表中删除选中的一行;权重编辑表上方的“添加”控件,用于在权重编辑表中新增一行,权重编辑表上方的“删除”控件,用于在权重编辑表中删除选中的一行。For example, as shown in Figure 15, the "Add" control above the parameter editing table is used to add a new row in the parameter editing table, and the "Delete" control above the parameter editing table is used to delete selected items in the parameter editing table. a row; the "Add" control above the weight editing table is used to add a new row in the weight editing table, and the "Delete" control above the weight editing table is used to delete a selected row in the weight editing table.

可以理解,用户在新建自定义算法时,编辑参数编辑表和权重编辑表,用于编辑算法的参数和权重。It can be understood that when users create a new custom algorithm, they edit the parameter editing table and weight editing table to edit the parameters and weights of the algorithm.

可以理解,用户在自定义算法区域选择目标自定义算法控件,则在算法编辑区域的参数编辑表中,会显示目标自定义算法包括的所有参数、参数类型、参数描述,在算法编辑区域的权重编辑表中显示目标自定义算法包括的所有属性、权重类型、权重,在输入框中显示目标自定义算法的具体内容。如此,在目标自定义算法的基础上,用户想要修改目标自定义算法,可以通过修改参数编辑表和权重编辑表后,在输入框中再修改算法。It can be understood that if the user selects the target custom algorithm control in the custom algorithm area, all parameters, parameter types, parameter descriptions included in the target custom algorithm, and the weights in the algorithm editing area will be displayed in the parameter editing table in the algorithm editing area. All attributes, weight types, and weights included in the target custom algorithm are displayed in the editing table, and the specific content of the target custom algorithm is displayed in the input box. In this way, based on the target custom algorithm, if the user wants to modify the target custom algorithm, he can modify the parameter editing table and weight editing table, and then modify the algorithm in the input box.

本申请实施例中,算法参数管理区域还包括:添加参数控件,删除参数控件;参数权重管理区域还包括:添加权重控件,删除权重控件;响应于用户点击添加参数控件的操作,在参数编辑表中新增一行;响应于用户点击删除参数控件的操作,在参数编辑表中删除选中行;响应于用户点击添加权重控件的操作,在权重编辑表中新增一行;响应于用户点击删除权重控件的操作,在权重编辑表中删除选中行。如此,允许用户在参数编辑表和权重编辑表中新增或者删除一行,以便于添加或者删除自定义算法中的参数和权重。In the embodiment of this application, the algorithm parameter management area also includes: adding parameter controls and deleting parameter controls; the parameter weight management area also includes: adding weight controls and deleting weight controls; in response to the user clicking the operation of adding parameter controls, in the parameter editing table Add a new row in the parameter control table; in response to the user clicking to delete the parameter control, delete the selected row in the parameter editing table; in response to the user clicking to add the weight control, add a new row in the weight editing table; in response to the user clicking to delete the weight control Operation to delete the selected row in the weight editing table. In this way, users are allowed to add or delete a row in the parameter editing table and weight editing table, so as to add or delete parameters and weights in the custom algorithm.

本申请一些实施例中,结合图9,如图16所示,该算法编辑方法还包括下述步骤112和步骤113。In some embodiments of the present application, as shown in Figure 16 in conjunction with Figure 9, the algorithm editing method also includes the following steps 112 and 113.

112、响应于用户对参数编辑表中第一目标单元格的编辑操作,在第一目标单元格中显示编辑的内容。112. In response to the user's editing operation on the first target cell in the parameter editing table, display the edited content in the first target cell.

其中,第一目标单元格为参数编辑表中的任意单元格。Among them, the first target cell is any cell in the parameter editing table.

113、响应于对权重编辑表中第二目标单元格的编辑操作,在第二目标单元格中显示编辑的内容。113. In response to the editing operation on the second target cell in the weight editing table, display the edited content in the second target cell.

其中,第二目标单元格为权重编辑表中的任意单元格。Among them, the second target cell is any cell in the weight editing table.

可以理解,参数编辑表和权重编辑表中的任意单元格允许用户编辑。编辑具体可以是用户删除、修改单元格中的内容,或者在单元格中新增内容。It can be understood that any cell in the parameter editing table and weight editing table allows users to edit. Editing can specifically mean that the user deletes or modifies the content in the cell, or adds new content in the cell.

示例性地,如图17所示,为用户在参数编辑表中新增一行后,在参数列中新增行的单元格中添加“In3”。For example, as shown in Figure 17, after the user adds a new row in the parameter editing table, add "In3" to the cell of the new row in the parameter column.

本申请实施例中,响应于用户对参数编辑表中第一目标单元格的编辑操作,在第一目标单元格中显示编辑的内容,第一目标单元格为参数编辑表中的任意单元格;响应于对权重编辑表中第二目标单元格的编辑操作,在第二目标单元格中显示编辑的内容,第二目标单元格为权重编辑表中的任意单元格。如此,用户可以方便操作参数编辑表和权重编辑表中的单元格。In the embodiment of the present application, in response to the user's editing operation on the first target cell in the parameter editing table, the edited content is displayed in the first target cell, and the first target cell is any cell in the parameter editing table; In response to the editing operation on the second target cell in the weight editing table, the edited content is displayed in the second target cell, and the second target cell is any cell in the weight editing table. In this way, users can conveniently operate cells in the parameter editing table and weight editing table.

本申请一些实施例中,结合图1,如图18所示,预设算法区域,预设算法区域包括多个预设算法;该算法编辑方法还包括下述步骤114。In some embodiments of the present application, in conjunction with Figure 1, as shown in Figure 18, there is a preset algorithm area, and the preset algorithm area includes multiple preset algorithms; the algorithm editing method also includes the following step 114.

114、响应于从多个预设算法中选择目标预设算法的操作,显示目标预设算法。114. In response to the operation of selecting the target preset algorithm from multiple preset algorithms, display the target preset algorithm.

可以理解,多个预设算法是数据预处理常用的算法,用户需要对数据预处理时,对于常规的数据可以直接使用预设算法。It can be understood that multiple preset algorithms are commonly used algorithms for data preprocessing. When users need to preprocess data, they can directly use the preset algorithms for regular data.

示例性地,如图19所示,标号203指示的区域为预设算法区域,包括多个预设算法,图中示出关注数据、归一化-效益性、归一化-成本型、归一化-期望值型、归一化-区间型、归一化-概率型、ADC法、PAU法,具体还可以包括其他算法,如:ARINC法、最大值计算、最小值计算、平均值计算、方差计算、标准方差计算等。其中,ADC法,是效能评估较常用的方法,具体ADC为Availability,Dependability,capability的缩写,用于评估系统的可用性、可信性和能力;PAU法,指拉依达(PauTa)准则,是一种奇异值过滤法;ARINC(Aeronautical RadioIncorporated,航空无线电通信公司)法,是一种可靠性分配法。Exemplarily, as shown in Figure 19, the area indicated by label 203 is a preset algorithm area, including multiple preset algorithms. The figure shows data of interest, normalization-benefit, normalization-cost, and normalization. Normalization-expected value type, normalization-interval type, normalization-probability type, ADC method, PAU method, which can also include other algorithms, such as: ARINC method, maximum value calculation, minimum value calculation, average calculation, Variance calculation, standard deviation calculation, etc. Among them, the ADC method is a commonly used method for performance evaluation. Specifically, ADC is the abbreviation of Availability, Dependability, and capability, which is used to evaluate the availability, credibility, and capability of the system; the PAU method refers to the PauTa criterion, which is A singular value filtering method; the ARINC (Aeronautical Radio Incorporated, Aeronautical Radio Communications Company) method is a reliability allocation method.

本申请实施例中,算法管理界面还包括:预设算法区域,预设算法区域包括多个预设算法;响应于从多个预设算法中选择目标预设算法的操作,显示目标预设算法。如此,内置更多的常用的预设算法,在用户需要使用时,可以直接调用,无需再次编辑。In the embodiment of the present application, the algorithm management interface also includes: a preset algorithm area, the preset algorithm area includes multiple preset algorithms; in response to the operation of selecting a target preset algorithm from multiple preset algorithms, the target preset algorithm is displayed . In this way, more commonly used preset algorithms are built-in, and users can call them directly when they need to use them without editing again.

本申请一些实施例中,结合图1,如图20所示,算法管理界面还包括:保存控件;算法编辑区域包括:算法名称编辑框,算法概述编辑框;上述步骤104之后,该算法编辑方法还包括下述步骤115和步骤116。In some embodiments of the present application, as shown in Figure 20 in conjunction with Figure 1, the algorithm management interface also includes: a save control; the algorithm editing area includes: an algorithm name edit box and an algorithm overview edit box; after the above step 104, the algorithm editing method It also includes steps 115 and 116 described below.

115、响应于用户点击保存控件的操作,在自定义算法区域显示目标算法的名称。115. In response to the user clicking the save control, the name of the target algorithm is displayed in the custom algorithm area.

其中,目标算法的名称为算法名称编辑框中的内容。Among them, the name of the target algorithm is the content in the algorithm name edit box.

116、将目标算法保存到自定义算法库。116. Save the target algorithm to the custom algorithm library.

其中,自定义算法库中存储了多个自定义算法。Among them, multiple custom algorithms are stored in the custom algorithm library.

可以理解,对于用户自定义编辑的算法,为了方便后续使用,可以将自定义算法保存,保存后自定义算法的名称显示在自定义算法区域,并且将自定义算法(包括自定义算法相关信息)保存到自定义算法库中。用户后续需要使用自定义算法时,选择一个自定义算法,自定义算法相关的信息均显示在算法编辑区域中,可以用于用户查看或者编辑。It can be understood that for user-defined edited algorithms, in order to facilitate subsequent use, the custom algorithm can be saved. After saving, the name of the custom algorithm is displayed in the custom algorithm area, and the custom algorithm (including custom algorithm-related information) Save to custom algorithm library. When the user subsequently needs to use a custom algorithm, he or she selects a custom algorithm. Information related to the custom algorithm is displayed in the algorithm editing area and can be viewed or edited by the user.

示例性地,如图21所示,用户点击算法管理界面包括的“保存”控件后,算法名称编辑框中的“自定义算法4”显示在标号201指示的自定义算法区域。For example, as shown in Figure 21, after the user clicks the "Save" control included in the algorithm management interface, "Custom Algorithm 4" in the algorithm name edit box is displayed in the custom algorithm area indicated by label 201.

本申请实施例中,算法管理界面还包括:保存控件;算法编辑区域包括:算法名称编辑框,算法概述编辑框;响应于目标输入,显示编辑得到的目标算法之后,响应于用户点击保存控件的操作,在自定义算法区域显示目标算法的名称,目标算法的名称为算法名称编辑框中的内容;将目标算法保存到自定义算法库,自定义算法库中存储了多个自定义算法。如此,对于用户编辑得到的自定义算法,用户保存后,需要时可以直接使用,也可以在自定义算法的基础上进行编辑。In the embodiment of this application, the algorithm management interface also includes: a save control; the algorithm editing area includes: an algorithm name edit box and an algorithm summary edit box; in response to the target input, after displaying the edited target algorithm, in response to the user clicking on the save control Operation: Display the name of the target algorithm in the custom algorithm area. The name of the target algorithm is the content in the algorithm name edit box; save the target algorithm to the custom algorithm library, which stores multiple custom algorithms. In this way, after the user saves the custom algorithm edited by the user, it can be used directly when needed, or it can be edited on the basis of the custom algorithm.

图22为本申请实施例示出的一种算法编辑装置的结构框图,如图22所示,包括:显示模块2201,用于显示算法管理界面,算法管理界面包括自定义算法区域和算法编辑区域,自定义算法区域包括:多个自定义算法控件和新建自定义算法控件;更新模块2202,用于响应于用户点击新建自定义算法控件的操作,将算法编辑区域更新为第一算法编辑区域,第一算法编辑区域中任意允许编辑的区域为空;或者,响应于用户从多个自定义算法控件中选择目标自定义算法控件的操作,将算法编辑区域更新为第二算法编辑区域,第二算法编辑区域中任意允许编辑的区域包括的内容用于表征目标自定义算法控件对应的目标自定义算法;接收模块2203,用于接收用户在算法编辑区域的目标输入,目标输入用于编辑目标算法;显示模块2201,还用于响应于目标输入,显示编辑得到的目标算法。Figure 22 is a structural block diagram of an algorithm editing device according to an embodiment of the present application. As shown in Figure 22, it includes: a display module 2201 for displaying an algorithm management interface. The algorithm management interface includes a custom algorithm area and an algorithm editing area. The custom algorithm area includes: multiple custom algorithm controls and a new custom algorithm control; the update module 2202 is used to update the algorithm editing area to the first algorithm editing area in response to the user clicking on the operation of creating a new custom algorithm control. Any area allowed to be edited in the first algorithm editing area is empty; or, in response to the user's operation of selecting a target custom algorithm control from multiple custom algorithm controls, the algorithm editing area is updated to the second algorithm editing area, and the second algorithm The content included in any area in the editing area that allows editing is used to represent the target custom algorithm corresponding to the target custom algorithm control; the receiving module 2203 is used to receive the user's target input in the algorithm editing area, and the target input is used to edit the target algorithm; The display module 2201 is also used to display the edited target algorithm in response to the target input.

本申请一些实施例中,该装置还包括:删除模块,该删除模块,用于响应于用户在第一自定义算法控件上的删除操作,删除第一自定义算法控件,第一自定义算法控件为多个自定义算法控件中的一个。In some embodiments of the present application, the device further includes: a deletion module, the deletion module is configured to delete the first custom algorithm control in response to the user's deletion operation on the first custom algorithm control. One of several custom algorithm controls.

本申请一些实施例中,该装置还包括:确定模块和获取模块;算法编辑区域包括:算法参数管理区域,参数权重管理区域,编辑区域;算法参数管理区域包括:参数编辑表;参数权重管理区域包括:权重编辑表;编辑区域包括:输入框,多个预设运算符号控件;该确定模块,用于响应于用户选中参数编辑表中目标参数行的选择操作,确定目标参数行对应的目标参数,参数编辑表中的任一行包括:参数,参数类型,参数描述,参数类型用于指示参数的数据类型,参数的描述用于指示参数是入参或者出参;获取模块,用于在权重编辑表的目标权重行包括目标参数的权重情况下,从目标权重行中获取目标参数的目标权重,权重编辑表的任一行包括:属性,权重类型,权重;属性用于指示属性对应的行中的权重所属的参数,权重类型用于指示权重的数据类型;该显示模块2201,具体用于在输入框中显示目标权重和目标参数;响应于用户点击多个预设运算符号控件中目标控件的操作,在输入框中显示目标控件对应的预设符号。In some embodiments of the present application, the device further includes: a determination module and an acquisition module; the algorithm editing area includes: an algorithm parameter management area, a parameter weight management area, and an editing area; the algorithm parameter management area includes: a parameter editing table; and a parameter weight management area. It includes: a weight editing table; the editing area includes: an input box and a plurality of preset operation symbol controls; the determination module is used to determine the target parameter corresponding to the target parameter row in response to the user's selection operation of selecting the target parameter row in the parameter editing table. , any row in the parameter editing table includes: parameter, parameter type, parameter description. The parameter type is used to indicate the data type of the parameter. The parameter description is used to indicate whether the parameter is an input parameter or an output parameter; the acquisition module is used to edit the weight. When the target weight row of the table includes the weight of the target parameter, the target weight of the target parameter is obtained from the target weight row. Any row of the weight editing table includes: attribute, weight type, weight; attributes are used to indicate the attributes in the row corresponding to the attribute. The parameter to which the weight belongs, and the weight type is used to indicate the data type of the weight; the display module 2201 is specifically used to display the target weight and target parameters in the input box; in response to the user clicking on the target control in multiple preset operation symbol controls , display the preset symbol corresponding to the target control in the input box.

本申请一些实施例中,编辑区域还包括:清除控件和清除全部控件;该删除模块,还用于响应于用户点击清除控件的操作,清除输入框中显示的目标内容,目标内容为用户指示的待删除的内容;响应于用户点击清除全部控件的操作,清除输入框中显示的内容。In some embodiments of the present application, the editing area also includes: clear controls and clear all controls; the deletion module is also used to clear the target content displayed in the input box in response to the user clicking the clear control operation, and the target content is the user indicated Content to be deleted; in response to the user clicking to clear all controls, clear the content displayed in the input box.

本申请一些实施例中,该装置还包括:添加模块;算法参数管理区域还包括:添加参数控件,删除参数控件;参数权重管理区域还包括:添加权重控件,删除权重控件;该添加模块,用于响应于用户点击添加参数控件的操作,在参数编辑表中新增一行;该删除模块,还用于响应于用户点击删除参数控件的操作,在参数编辑表中删除选中行;该添加模块,还用于响应于用户点击添加权重控件的操作,在权重编辑表中新增一行;该删除模块,还用于响应于用户点击删除权重控件的操作,在权重编辑表中删除选中行。In some embodiments of the present application, the device further includes: an adding module; the algorithm parameter management area also includes: adding parameter controls and deleting parameter controls; the parameter weight management area also includes: adding weight controls and deleting weight controls; the adding module is used to In response to the user clicking the operation of adding the parameter control, a new row is added in the parameter editing table; the deletion module is also used to respond to the user clicking the operation of deleting the parameter control, and deleting the selected row in the parameter editing table; the adding module, It is also used to add a new row in the weight editing table in response to the user clicking to add the weight control; the deletion module is also used to delete the selected row in the weight editing table in response to the user clicking to delete the weight control.

本申请一些实施例中,该显示模块2201,还用于响应于用户对参数编辑表中第一目标单元格的编辑操作,在第一目标单元格中显示编辑的内容,第一目标单元格为参数编辑表中的任意单元格;响应于对权重编辑表中第二目标单元格的编辑操作,在第二目标单元格中显示编辑的内容,第二目标单元格为权重编辑表中的任意单元格。In some embodiments of the present application, the display module 2201 is also used to display the edited content in the first target cell in response to the user's editing operation on the first target cell in the parameter editing table. The first target cell is Any cell in the parameter editing table; in response to the editing operation on the second target cell in the weight editing table, the edited content is displayed in the second target cell, and the second target cell is any cell in the weight editing table grid.

本申请一些实施例中,算法管理界面还包括:预设算法区域,预设算法区域包括多个预设算法;该显示模块2201,还用于响应于从多个预设算法中选择目标预设算法的操作,显示目标预设算法。In some embodiments of the present application, the algorithm management interface also includes: a preset algorithm area, which includes multiple preset algorithms; the display module 2201 is also used to respond to selecting a target preset algorithm from multiple preset algorithms. The operation of the algorithm shows the target preset algorithm.

本申请一些实施例中,该装置还包括:保存模块;算法管理界面还包括:保存控件;算法编辑区域包括:算法名称编辑框,算法概述编辑框;该显示模块2201,还用于响应于目标输入,显示编辑得到的目标算法之后,响应于用户点击保存控件的操作,在自定义算法区域显示目标算法的名称,目标算法的名称为算法名称编辑框中的内容;该保存模块,用于将目标算法保存到自定义算法库,自定义算法库中存储了多个自定义算法。In some embodiments of the present application, the device also includes: a saving module; the algorithm management interface also includes: a saving control; the algorithm editing area includes: an algorithm name edit box and an algorithm summary edit box; the display module 2201 is also used to respond to the target After input and display of the edited target algorithm, in response to the user clicking the save control, the name of the target algorithm is displayed in the custom algorithm area. The name of the target algorithm is the content in the algorithm name edit box; the save module is used to save The target algorithm is saved to the custom algorithm library, which stores multiple custom algorithms.

需要说明的是,上述算法编辑装置可以为本申请上述方法实施例中的电子设备,也可以是该电子设备中能够实现该装置实施例功能的功能模块和/或功能实体,本申请实施例不做限定。It should be noted that the above-mentioned algorithm editing device may be the electronic device in the above-mentioned method embodiment of the present application, or may be a functional module and/or functional entity in the electronic device that can implement the functions of the device embodiment. The embodiment of the present application does not Make limitations.

本申请实施例中,各模块可以实现上述方法实施例提供的算法编辑方法,且能达到相同的技术效果,为避免重复,这里不再赘述。In the embodiments of this application, each module can implement the algorithm editing method provided in the above method embodiment, and can achieve the same technical effect. To avoid duplication, the details will not be described here.

本申请实施例还提供一种电子设备,该电子设备可以包括:处理器2301,存储器2302以及存储在存储器2302上并可在处理器2301上运行的程序或指令,该程序或指令被处理器2301执行时可以实现上述方法实施例提供的算法编辑方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides an electronic device. The electronic device may include: a processor 2301, a memory 2302, and a program or instruction stored on the memory 2302 and executable on the processor 2301. The program or instruction is processed by the processor 2301. During execution, each process of the algorithm editing method provided by the above method embodiment can be implemented, and the same technical effect can be achieved. To avoid duplication, details will not be described here.

本申请实施例提供一种计算机可读存储介质,该可读存储介质上存储程序或指令,该程序或指令被处理器执行时实现上述方法实施例提供的算法编辑方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application provide a computer-readable storage medium. Programs or instructions are stored on the readable storage medium. When the program or instructions are executed by a processor, each process of the algorithm editing method provided by the above-mentioned method embodiments is implemented, and can achieve The same technical effects are not repeated here to avoid repetition.

本申请实施例还提供一种计算机程序产品,其中,该计算机程序产品包括计算机程序或指令,当该计算机程序产品在处理器上运行时,使得处理器执行该计算机程序或指令,实现上述方法实施例提供的算法编辑方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present application also provide a computer program product, wherein the computer program product includes a computer program or instructions. When the computer program product is run on a processor, the processor is caused to execute the computer program or instructions to implement the above method. The various processes of the algorithm editing method provided in the example can achieve the same technical effect. To avoid repetition, they will not be described again here.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述算法编辑方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip. The chip includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the above algorithm editing method embodiment. Each process can achieve the same technical effect. To avoid duplication, it will not be described again here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of this application may also be called system-on-chip, system-on-a-chip, system-on-a-chip or system-on-chip, etc.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置,服务器和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, servers and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or contributes to the existing technology, 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 several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code.

以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still make the foregoing technical solutions. The technical solutions described in each embodiment may be modified, or some of the technical features may be equivalently replaced; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions in each embodiment of the present application.

Claims (10)

1.一种算法编辑方法,其特征在于,所述方法包括:1. An algorithm editing method, characterized in that the method includes: 显示算法管理界面,所述算法管理界面包括自定义算法区域和算法编辑区域,所述自定义算法区域包括:多个自定义算法控件和新建自定义算法控件;Display the algorithm management interface. The algorithm management interface includes a custom algorithm area and an algorithm editing area. The custom algorithm area includes: multiple custom algorithm controls and a new custom algorithm control; 响应于用户点击所述新建自定义算法控件的操作,将所述算法编辑区域更新为第一算法编辑区域,所述第一算法编辑区域中任意允许编辑的区域为空;In response to the user clicking on the new custom algorithm control, the algorithm editing area is updated to the first algorithm editing area, and any area allowed to be edited in the first algorithm editing area is empty; 或者,or, 响应于用户从所述多个自定义算法控件中选择目标自定义算法控件的操作,将所述算法编辑区域更新为第二算法编辑区域,所述第二算法编辑区域中任意允许编辑的区域包括的内容用于表征所述目标自定义算法控件对应的目标自定义算法;In response to the user's operation of selecting a target custom algorithm control from the plurality of custom algorithm controls, the algorithm editing area is updated to a second algorithm editing area, and any area allowed to be edited in the second algorithm editing area includes The content is used to characterize the target custom algorithm corresponding to the target custom algorithm control; 接收用户在所述算法编辑区域的目标输入,所述目标输入用于编辑目标算法;Receive the user's target input in the algorithm editing area, and the target input is used to edit the target algorithm; 响应于所述目标输入,显示编辑得到的所述目标算法。In response to the target input, the edited target algorithm is displayed. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that, the method further comprises: 响应于用户在第一自定义算法控件上的删除操作,删除所述第一自定义算法控件,所述第一自定义算法控件为所述多个自定义算法控件中的一个。In response to the user's deletion operation on the first custom algorithm control, the first custom algorithm control is deleted, and the first custom algorithm control is one of the plurality of custom algorithm controls. 3.根据权利要求1所述的方法,其特征在于,所述算法编辑区域包括:算法参数管理区域,参数权重管理区域,编辑区域;所述算法参数管理区域包括:参数编辑表;所述参数权重管理区域包括:权重编辑表;所述编辑区域包括:输入框,多个预设运算符号控件;3. The method according to claim 1, characterized in that the algorithm editing area includes: an algorithm parameter management area, a parameter weight management area, and an editing area; the algorithm parameter management area includes: a parameter editing table; the parameters The weight management area includes: a weight editing table; the editing area includes: an input box and multiple preset operation symbol controls; 所述响应于所述目标输入,显示编辑得到的所述目标算法,包括:In response to the target input, displaying the edited target algorithm includes: 响应于用户选中所述参数编辑表中目标参数行的选择操作,确定所述目标参数行对应的目标参数,所述参数编辑表中的任一行包括:参数,参数类型,参数描述,所述参数类型用于指示所述参数的数据类型,所述参数的描述用于指示所述参数是入参或者出参;In response to the selection operation of the user selecting the target parameter row in the parameter editing table, the target parameter corresponding to the target parameter row is determined. Any row in the parameter editing table includes: parameter, parameter type, parameter description, the parameter The type is used to indicate the data type of the parameter, and the description of the parameter is used to indicate whether the parameter is an input parameter or an output parameter; 在所述权重编辑表的目标权重行包括所述目标参数的权重情况下,从所述目标权重行中获取所述目标参数的目标权重,所述权重编辑表的任一行包括:属性,权重类型,权重;所述属性用于指示所述属性对应的行中的权重所属的参数,所述权重类型用于指示所述权重的数据类型;When the target weight row of the weight editing table includes the weight of the target parameter, the target weight of the target parameter is obtained from the target weight row. Any row of the weight editing table includes: attributes, weight types , weight; the attribute is used to indicate the parameter to which the weight in the row corresponding to the attribute belongs, and the weight type is used to indicate the data type of the weight; 在所述输入框中显示所述目标权重和所述目标参数;Display the target weight and the target parameter in the input box; 响应于用户点击多个预设运算符号控件中目标控件的操作,在所述输入框中显示所述目标控件对应的预设符号。In response to the user clicking on a target control among the plurality of preset operation symbol controls, the preset symbol corresponding to the target control is displayed in the input box. 4.根据权利要求3所述的方法,其特征在于,所述编辑区域还包括:清除控件和清除全部控件;所述方法还包括:4. The method according to claim 3, wherein the editing area further includes: clearing controls and clearing all controls; the method further includes: 响应于用户点击清除控件的操作,清除所述输入框中显示的目标内容,所述目标内容为用户指示的待删除的内容;In response to the user clicking the clear control, clear the target content displayed in the input box, where the target content is the content to be deleted indicated by the user; 响应于用户点击清除全部控件的操作,清除所述输入框中显示的内容。In response to the user clicking to clear all controls, the content displayed in the input box is cleared. 5.根据权利要求3所述的方法,其特征在于,所述算法参数管理区域还包括:添加参数控件,删除参数控件;所述参数权重管理区域还包括:添加权重控件,删除权重控件;5. The method according to claim 3, wherein the algorithm parameter management area further includes: adding a parameter control and deleting a parameter control; the parameter weight management area further includes: adding a weight control and deleting a weight control; 所述方法还包括:The method also includes: 响应于用户点击所述添加参数控件的操作,在所述参数编辑表中新增一行;In response to the user clicking on the add parameter control, adding a new row in the parameter editing table; 响应于用户点击所述删除参数控件的操作,在所述参数编辑表中删除选中行;In response to the user clicking the delete parameter control, delete the selected row in the parameter editing table; 响应于用户点击所述添加权重控件的操作,在所述权重编辑表中新增一行;In response to the user clicking the operation of adding a weight control, adding a new row in the weight editing table; 响应于用户点击所述删除权重控件的操作,在所述权重编辑表中删除选中行。In response to the user clicking the operation of deleting the weight control, the selected row is deleted in the weight editing table. 6.根据权利要求3所述的方法,其特征在于,所述方法还包括:6. The method according to claim 3, characterized in that, the method further comprises: 响应于用户对所述参数编辑表中第一目标单元格的编辑操作,在所述第一目标单元格中显示编辑的内容,所述第一目标单元格为所述参数编辑表中的任意单元格;In response to the user's editing operation on the first target cell in the parameter editing table, the edited content is displayed in the first target cell, and the first target cell is any cell in the parameter editing table grid; 响应于对所述权重编辑表中第二目标单元格的编辑操作,在所述第二目标单元格中显示编辑的内容,所述第二目标单元格为所述权重编辑表中的任意单元格。In response to the editing operation on the second target cell in the weight editing table, the edited content is displayed in the second target cell, and the second target cell is any cell in the weight editing table . 7.根据权利要求1至6任一项所述的方法,其特征在于,所述算法管理界面还包括:预设算法区域,所述预设算法区域包括多个预设算法;所述方法还包括:7. The method according to any one of claims 1 to 6, characterized in that the algorithm management interface further includes: a preset algorithm area, the preset algorithm area includes a plurality of preset algorithms; the method further include: 响应于从多个预设算法中选择目标预设算法的操作,显示所述目标预设算法。In response to an operation of selecting a target preset algorithm from a plurality of preset algorithms, the target preset algorithm is displayed. 8.根据权利要求1至6任一项所述的方法,其特征在于,所述算法管理界面还包括:保存控件;所述算法编辑区域包括:算法名称编辑框,算法概述编辑框;8. The method according to any one of claims 1 to 6, characterized in that the algorithm management interface further includes: a save control; the algorithm editing area includes: an algorithm name editing box and an algorithm summary editing box; 所述响应于所述目标输入,显示编辑得到的所述目标算法之后,所述方法还包括:After displaying the edited target algorithm in response to the target input, the method further includes: 响应于用户点击所述保存控件的操作,在所述自定义算法区域显示所述目标算法的名称,所述目标算法的名称为所述算法名称编辑框中的内容;In response to the user clicking the save control, the name of the target algorithm is displayed in the custom algorithm area, and the name of the target algorithm is the content in the algorithm name edit box; 将所述目标算法保存到自定义算法库,所述自定义算法库中存储了多个自定义算法。The target algorithm is saved to a custom algorithm library, where multiple custom algorithms are stored. 9.一种算法编辑装置,其特征在于,所述装置包括:9. An algorithm editing device, characterized in that the device includes: 显示模块,用于显示算法管理界面,所述算法管理界面包括自定义算法区域和算法编辑区域,所述自定义算法区域包括:多个自定义算法控件和新建自定义算法控件;A display module is used to display the algorithm management interface. The algorithm management interface includes a custom algorithm area and an algorithm editing area. The custom algorithm area includes: multiple custom algorithm controls and a new custom algorithm control; 更新模块,用于响应于用户点击所述新建自定义算法控件的操作,将所述算法编辑区域更新为第一算法编辑区域,所述第一算法编辑区域中任意允许编辑的区域为空;An update module, configured to update the algorithm editing area to a first algorithm editing area in response to the user clicking on the newly created custom algorithm control, and any area allowed to be edited in the first algorithm editing area is empty; 或者,or, 响应于用户从所述多个自定义算法控件中选择目标自定义算法控件的操作,将所述算法编辑区域更新为第二算法编辑区域,所述第二算法编辑区域中任意允许编辑的区域包括的内容用于表征所述目标自定义算法控件对应的目标自定义算法;In response to the user's operation of selecting a target custom algorithm control from the plurality of custom algorithm controls, the algorithm editing area is updated to a second algorithm editing area, and any area allowed to be edited in the second algorithm editing area includes The content is used to characterize the target custom algorithm corresponding to the target custom algorithm control; 接收模块,用于接收用户在所述算法编辑区域的目标输入,所述目标输入用于编辑目标算法;A receiving module, configured to receive the user's target input in the algorithm editing area, where the target input is used to edit the target algorithm; 显示模块,还用于响应于所述目标输入,显示编辑得到的所述目标算法。A display module is also configured to display the edited target algorithm in response to the target input. 10.一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至8任一项所述的算法编辑方法。10. An electronic device, comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor. When the program or instructions are executed by the processor, the implementation of claim 1 is achieved. The algorithm editing method described in any one of to 8.
CN202310827711.5A 2023-07-06 2023-07-06 An algorithm editing method and device Pending CN116775197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310827711.5A CN116775197A (en) 2023-07-06 2023-07-06 An algorithm editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310827711.5A CN116775197A (en) 2023-07-06 2023-07-06 An algorithm editing method and device

Publications (1)

Publication Number Publication Date
CN116775197A true CN116775197A (en) 2023-09-19

Family

ID=87994525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310827711.5A Pending CN116775197A (en) 2023-07-06 2023-07-06 An algorithm editing method and device

Country Status (1)

Country Link
CN (1) CN116775197A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119473267A (en) * 2025-01-08 2025-02-18 北京清湃科技有限公司 A parameter configuration method, device, medium and program product for acoustic experiment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102468A (en) * 2014-07-23 2014-10-15 中国电子科技集团公司第四十一研究所 Network analyzer formula editor and data graphic display method and device thereof
CN111191412A (en) * 2019-12-24 2020-05-22 远光软件股份有限公司 Method, device, storage medium and terminal for editing formula
CN112036141A (en) * 2020-09-01 2020-12-04 金蝶软件(中国)有限公司 Calculation formula configuration method, data processing device and computer storage medium
CN112947923A (en) * 2021-02-25 2021-06-11 维沃移动通信有限公司 Object editing method and device and electronic equipment
CN114494120A (en) * 2021-12-20 2022-05-13 苏州镁伽科技有限公司 Algorithm editing method and device for detection equipment and detection equipment
CN115146600A (en) * 2022-08-03 2022-10-04 平安付科技服务有限公司 Form generation method, device, storage medium and computer equipment
CN115828873A (en) * 2022-12-05 2023-03-21 长城计算机软件与系统有限公司 Method and device for setting expression in electronic form

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102468A (en) * 2014-07-23 2014-10-15 中国电子科技集团公司第四十一研究所 Network analyzer formula editor and data graphic display method and device thereof
CN111191412A (en) * 2019-12-24 2020-05-22 远光软件股份有限公司 Method, device, storage medium and terminal for editing formula
CN112036141A (en) * 2020-09-01 2020-12-04 金蝶软件(中国)有限公司 Calculation formula configuration method, data processing device and computer storage medium
CN112947923A (en) * 2021-02-25 2021-06-11 维沃移动通信有限公司 Object editing method and device and electronic equipment
CN114494120A (en) * 2021-12-20 2022-05-13 苏州镁伽科技有限公司 Algorithm editing method and device for detection equipment and detection equipment
CN115146600A (en) * 2022-08-03 2022-10-04 平安付科技服务有限公司 Form generation method, device, storage medium and computer equipment
CN115828873A (en) * 2022-12-05 2023-03-21 长城计算机软件与系统有限公司 Method and device for setting expression in electronic form

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119473267A (en) * 2025-01-08 2025-02-18 北京清湃科技有限公司 A parameter configuration method, device, medium and program product for acoustic experiment

Similar Documents

Publication Publication Date Title
RU2487402C2 (en) Dynamic formulae for spreadsheet cells
CN113157947A (en) Knowledge graph construction method, tool, device and server
CN109885819B (en) Data table dynamic adjustment method, system, device and storage medium
CN108897496B (en) Disk array configuration management method and device, computer equipment and storage medium
CN110543450A (en) Electronic document generation method, device, computer equipment and storage medium
CN111723134A (en) Information processing method, device, electronic device and storage medium
CN114201615B (en) Scientific research data change review method and server based on data snapshot
CN112783447A (en) Method, apparatus, device, medium, and article of manufacture for processing snapshots
CN116775197A (en) An algorithm editing method and device
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN115454971A (en) Data migration method, device, electronic device and storage medium
CN115328992B (en) Event analysis method, device, medium and electronic equipment
CN115794056B (en) Script file processing method, device, equipment and storage medium
CN114647578B (en) System testing method, device, equipment and storage medium
CN118093965A (en) Information processing method, device, equipment and storage medium
CN118916006A (en) Custom service management method, device, equipment and storage medium
CN113495651B (en) Window control method and device
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN114021642A (en) Data processing method and device, electronic equipment and storage medium
CN108460159B (en) Information reply method, terminal equipment and computer readable storage medium
CN111240957B (en) Activity diagram generation method for Android applications
CN113326680A (en) Method and device for generating table
CN115344127B (en) Method, device, equipment and storage medium for determining candidate word display order
CN114841755B (en) Copywriting generation method, device, electronic device and storage medium
CN115098444B (en) Directory data processing method, device, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20230919