CN117540034A - Test question model generation method and device and computer equipment - Google Patents

Test question model generation method and device and computer equipment Download PDF

Info

Publication number
CN117540034A
CN117540034A CN202311642154.6A CN202311642154A CN117540034A CN 117540034 A CN117540034 A CN 117540034A CN 202311642154 A CN202311642154 A CN 202311642154A CN 117540034 A CN117540034 A CN 117540034A
Authority
CN
China
Prior art keywords
test question
test
target
feature information
questions
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
CN202311642154.6A
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.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau 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 Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202311642154.6A priority Critical patent/CN117540034A/en
Publication of CN117540034A publication Critical patent/CN117540034A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education
    • G06Q50/205Education administration or guidance
    • G06Q50/2057Career enhancement or continuing education service

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Educational Technology (AREA)
  • Tourism & Hospitality (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Strategic Management (AREA)
  • Educational Administration (AREA)
  • Human Resources & Organizations (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • General Business, Economics & Management (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Computational Linguistics (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a test question model generation method, a test question model generation device, a test question model generation computer device, a test question model generation program and a test question model generation program. The method comprises the following steps: acquiring a test question set and current test question feature information, wherein the current test question feature information is used for representing the relation between different test questions in the test question set; performing iterative optimization on the current test question feature information by adopting an alternative recommendation algorithm to obtain target test question feature information; constructing a target knowledge graph according to the characteristic information of the target test questions; responding to a test question generation request, and selecting test questions in the test question set according to the target knowledge graph so as to generate a test question model. By adopting the method, the examination questions can be flexibly generated so as to meet different examination scenes.

Description

试题模型生成方法、装置和计算机设备Test question model generation method, device and computer equipment

技术领域Technical field

本申请涉及人工智能技术领域,特别是涉及一种试题模型生成方法、装置、计算机设备、存储介质和计算机程序产品。The present application relates to the field of artificial intelligence technology, and in particular to a test question model generation method, device, computer equipment, storage medium and computer program product.

背景技术Background technique

随着电力系统的不断发展,现阶段,国内外开展过针对适用于大电网稳定分析的分布式光伏集群精细化建模方法和仿真模型,以及高渗透率分布式光伏接入场景下电网多尺度协调控制系统架构及运行控制关键策略的相关研究。但当前还未开展新型电力系统环境下的培训模拟系统的研究。With the continuous development of the power system, at this stage, refined modeling methods and simulation models of distributed photovoltaic clusters suitable for large power grid stability analysis have been carried out at home and abroad, as well as multi-scale power grids in high-penetration distributed photovoltaic access scenarios. Relevant research on coordinated control system architecture and key strategies for operational control. However, research on training simulation systems in new power system environments has not yet been carried out.

目前,调度员培养模式还是传统的“老带新”,调度员培养系统性不够,培训和考核评价缺乏专业信息系统的支撑,培训不具备高质量互动环境,相关系统操作水平只能依靠主观评价,缺乏客观量化的考核手段。At present, the dispatcher training model is still the traditional "old and new". Dispatcher training is not systematic enough. Training and assessment evaluation lack the support of professional information systems. Training does not have a high-quality interactive environment. The operation level of relevant systems can only rely on subjective evaluation. , lack of objective and quantitative assessment methods.

相关技术中,对于相关人员的考核中,通常采用的是预设试题,该预设试题无法满足不同的考核场景。In related technologies, preset test questions are usually used to assess relevant personnel, and the preset test questions cannot meet different assessment scenarios.

发明内容Contents of the invention

基于此,有必要针对上述技术问题,提供一种能够满足不同的考核场景的试题模型生成方法、装置、计算机设备、计算机可读存储介质和计算机程序产品。Based on this, it is necessary to address the above technical problems and provide a test question model generation method, device, computer equipment, computer readable storage medium and computer program product that can meet different assessment scenarios.

第一方面,本申请提供了一种试题模型生成方法,包括:In the first aspect, this application provides a test question model generation method, including:

获取试题集和当前试题特征信息,其中,所述当前试题特征信息用于表征所述试题集中不同试题之间的联系;Obtain the test question set and the current test question feature information, where the current test question feature information is used to characterize the relationship between different test questions in the test question set;

采用交替推荐算法对所述当前试题特征信息进行迭代优化,以获得目标试题特征信息;Using an alternating recommendation algorithm to iteratively optimize the feature information of the current test question to obtain the feature information of the target test question;

根据所述目标试题特征信息构建目标知识图谱;Construct a target knowledge graph based on the characteristic information of the target test questions;

响应于试题生成请求,根据所述目标知识图谱选取所述试题集中的试题,以生成试题模型。In response to the test question generation request, test questions in the test question set are selected according to the target knowledge graph to generate a test question model.

在其中一个实施例中,所述当前试题特征信息中包括试题关键词和当前试题关系数据;所述采用交替推荐算法对所述当前试题特征信息进行迭代优化,以获得目标试题特征信息包括:In one embodiment, the current test question feature information includes test question keywords and current test question relationship data; the use of an alternating recommendation algorithm to iteratively optimize the current test question feature information to obtain the target test question feature information includes:

采用交替推荐算法,根据所述当前试题关系数据对所述试题特征信息进行迭代优化,以获得目标试题关系数据;Using an alternating recommendation algorithm, iteratively optimize the test question feature information according to the current test question relationship data to obtain target test question relationship data;

根据所述试题关键词和所述目标试题关系数据生成目标试题特征信息。Target test question feature information is generated according to the test question keywords and the target test question relationship data.

在其中一个实施例中,所述根据所述目标试题特征信息构建目标知识图谱包括:In one embodiment, constructing the target knowledge graph based on the target test question feature information includes:

根据所述试题关键词生成基础知识图谱;Generate a basic knowledge map based on the test question keywords;

根据所述目标试题特征信息更新所述基础知识图谱,以得到目标知识图谱。The basic knowledge graph is updated according to the characteristic information of the target test question to obtain the target knowledge graph.

在其中一个实施例中,所述响应于试题生成请求,根据所述目标知识图谱选取所述试题集中的试题,以生成试题模型包括:In one embodiment, in response to a question generation request, selecting questions from the question set according to the target knowledge graph to generate a question model includes:

响应于试题生成请求,根据所述目标知识图谱选取所述试题集中的试题,得到模拟试题数据;In response to the test question generation request, select test questions from the test question set according to the target knowledge graph to obtain simulated test question data;

根据所述试题关键词对所述模拟试题数据进行检验;Check the simulated test question data according to the test question keywords;

在所述检验通过的情况下,根据所述模拟试题数据生成试题模型。If the test passes, a test question model is generated based on the simulated test question data.

在其中一个实施例中,所述试题集是按照分布式能源系统的操作步骤逐步获取的。In one embodiment, the test question set is obtained step by step according to the operating steps of the distributed energy system.

在其中一个实施例中,所述方法用于非线性系统的操作考核。In one embodiment, the method is used for operational assessment of nonlinear systems.

第二方面,本申请还提供了一种试题模型生成装置,包括:In the second aspect, this application also provides a test question model generation device, including:

信息获取模块,用于获取试题集和当前试题特征信息,其中,所述当前试题特征信息用于表征所述试题集中不同试题之间的联系;An information acquisition module, used to obtain the test question set and current test question feature information, wherein the current test question feature information is used to characterize the connection between different test questions in the test question set;

迭代优化模块,用于采用交替推荐算法对所述当前试题特征信息进行迭代优化,以获得目标试题特征信息;An iterative optimization module for iteratively optimizing the current test question feature information using an alternating recommendation algorithm to obtain the target test question feature information;

图谱生成模块,用于根据所述目标试题特征信息构建目标知识图谱;A graph generation module, configured to construct a target knowledge graph based on the characteristic information of the target test questions;

试题生成模块,用于响应于试题生成请求,根据所述目标知识图谱选取所述试题集中的试题,以生成试题模型。A test question generation module, configured to respond to a test question generation request and select test questions from the test question set according to the target knowledge graph to generate a test question model.

第三方面,本申请还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, this application also provides a computer device, including a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements the following steps:

获取试题集和当前试题特征信息,其中,所述当前试题特征信息用于表征所述试题集中不同试题之间的联系;Obtain the test question set and the current test question feature information, where the current test question feature information is used to characterize the relationship between different test questions in the test question set;

采用交替推荐算法对所述当前试题特征信息进行迭代优化,以获得目标试题特征信息;Using an alternating recommendation algorithm to iteratively optimize the feature information of the current test question to obtain the feature information of the target test question;

根据所述目标试题特征信息构建目标知识图谱;Construct a target knowledge graph based on the characteristic information of the target test questions;

响应于试题生成请求,根据所述目标知识图谱选取所述试题集中的试题,以生成试题模型。In response to the test question generation request, test questions in the test question set are selected according to the target knowledge graph to generate a test question model.

第四方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, the application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

获取试题集和当前试题特征信息,其中,所述当前试题特征信息用于表征所述试题集中不同试题之间的联系;Obtain the test question set and the current test question feature information, where the current test question feature information is used to characterize the relationship between different test questions in the test question set;

采用交替推荐算法对所述当前试题特征信息进行迭代优化,以获得目标试题特征信息;Using an alternating recommendation algorithm to iteratively optimize the feature information of the current test question to obtain the feature information of the target test question;

根据所述目标试题特征信息构建目标知识图谱;Construct a target knowledge graph based on the characteristic information of the target test questions;

响应于试题生成请求,根据所述目标知识图谱选取所述试题集中的试题,以生成试题模型。In response to the test question generation request, test questions in the test question set are selected according to the target knowledge graph to generate a test question model.

第五方面,本申请还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fifth aspect, this application also provides a computer program product, including a computer program that implements the following steps when executed by a processor:

获取试题集和当前试题特征信息,其中,所述当前试题特征信息用于表征所述试题集中不同试题之间的联系;Obtain the test question set and the current test question feature information, where the current test question feature information is used to characterize the relationship between different test questions in the test question set;

采用交替推荐算法对所述当前试题特征信息进行迭代优化,以获得目标试题特征信息;Using an alternating recommendation algorithm to iteratively optimize the feature information of the current test question to obtain the feature information of the target test question;

根据所述目标试题特征信息构建目标知识图谱;Construct a target knowledge graph based on the characteristic information of the target test questions;

响应于试题生成请求,根据所述目标知识图谱选取所述试题集中的试题,以生成试题模型。In response to the test question generation request, test questions in the test question set are selected according to the target knowledge graph to generate a test question model.

上述试题模型生成方法、装置、计算机设备、存储介质和计算机程序产品,通过获取试题集和当前试题特征信息,从而得到当前已有的试题主体和试题集中不同试题之间的联系,采用交替推荐算法对当前试题特征信息进行迭代优化,以获得目标试题特征信息,再根据目标试题特征信息构建目标知识图谱。响应于试题生成请求,根据目标知识图谱选取试题集中的试题,以生成试题模型。交替推荐算法是一个通用的、端对端的深度推荐框架,旨在利用知识图谱嵌入去协助推荐任务,从而能够能够灵活生成考核试题,以满足不同的考核场景。The above-mentioned test question model generation method, device, computer equipment, storage medium and computer program product obtain the test question set and the current test question characteristic information to obtain the current existing test question subjects and the connections between different questions in the test question set, using an alternating recommendation algorithm Iteratively optimize the characteristic information of the current test question to obtain the characteristic information of the target test question, and then build the target knowledge graph based on the characteristic information of the target test question. In response to the test question generation request, test questions in the test question set are selected according to the target knowledge graph to generate a test question model. The alternating recommendation algorithm is a universal, end-to-end in-depth recommendation framework that aims to use knowledge graph embedding to assist in recommendation tasks, so that assessment questions can be flexibly generated to meet different assessment scenarios.

附图说明Description of drawings

为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application or related technologies, the drawings needed to be used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings in the following description are only for the purpose of describing the embodiments or related technologies. For some embodiments of the application, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.

图1为一个实施例中一种试题模型生成方法的应用环境图;Figure 1 is an application environment diagram of a test question model generation method in one embodiment;

图2为一个实施例中一种试题模型生成方法的流程示意图;Figure 2 is a schematic flowchart of a test question model generation method in one embodiment;

图3为一个实施例中试题模型生成方法中步骤S204至步骤S206的流程示意图;Figure 3 is a schematic flowchart of steps S204 to S206 in the test question model generation method in one embodiment;

图4为一个实施例中一种试题模型生成装置的结构框图;Figure 4 is a structural block diagram of a test question model generating device in one embodiment;

图5为一个实施例中计算机设备的内部结构图;Figure 5 is an internal structure diagram of a computer device in one embodiment;

图6为另一个实施例中计算机设备的内部结构图。Figure 6 is an internal structure diagram of a computer device in another embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.

本申请实施例提供的试题模型生成方法,可以应用于如图1所示的应用环境中。其中,终端102通过网络与服务器104进行通信。数据存储系统可以存储服务器104需要处理的数据。数据存储系统可以集成在服务器104上,也可以放在云上或其他网络服务器上。数据存储系统用于存储试题集和当前试题特征信息,以及迭代优化过程中的缓存数据等。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调、智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The test question model generation method provided by the embodiment of the present application can be applied in the application environment as shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system may store data that server 104 needs to process. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers. The data storage system is used to store test question sets and current test question feature information, as well as cached data in the iterative optimization process. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. . Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented as an independent server or a server cluster composed of multiple servers.

在一个示例性的实施例中,如图2所示,提供了一种试题模型生成方法,以该方法应用于图1中的服务器104为例进行说明,包括以下步骤S202至步骤S208。其中:In an exemplary embodiment, as shown in Figure 2, a test question model generation method is provided. This method is explained by taking the method applied to the server 104 in Figure 1 as an example, including the following steps S202 to S208. in:

步骤S202,获取试题集和当前试题特征信息。Step S202: Obtain the test question set and current test question feature information.

其中,当前试题特征信息用于表征试题集中不同试题之间的联系,Among them, the current test question feature information is used to represent the connection between different test questions in the test question set.

示例性地,该方法可以用于非线性系统的操作考核。服务器104可以先基于Hammerstein模型建立电力系统模型,建立的电力系统模型由静态非线性环节和动态线性环节串联组成,能够高度逼近非线性系统动态特性,其动态环节和静态环节可分开建模,具有仿真计算量小、可简化非线性控制设计的优点。且服务器104执行该方法用于建立基于调度员操作要点形成的试题模型,其中调度员操作要点为调度员在电力系统场景下的操作要点。For example, this method can be used for operational assessment of nonlinear systems. The server 104 can first establish a power system model based on the Hammerstein model. The established power system model is composed of static nonlinear links and dynamic linear links connected in series, which can highly approximate the dynamic characteristics of the nonlinear system. Its dynamic links and static links can be modeled separately, which has The simulation calculation amount is small and can simplify the nonlinear control design. And the server 104 executes this method to establish a test question model based on the dispatcher's operation points, where the dispatcher's operation points are the dispatcher's operation points in the power system scenario.

其中,Hammerstein模型一种描述非线性系统的数学模型。它由串联连接的两个部分组成:一个静态非线性部分和一个动态线性部分。这两个部分合在一起形成了非线性系统的整体模型。静态非线性部分描述了输入和输出之间的非线性关系,通常通过一个静态非线性函数表示。这个函数的输出依赖于输入,但不受系统的动态影响。动态线性部分描述了系统的动态行为,即输入和输出之间的线性关系。它通常通过差分方程或微分方程表示,其中包含了系统的动态特性。这个部分通常用来描述系统的延迟、惯性和动态响应。Among them, the Hammerstein model is a mathematical model that describes nonlinear systems. It consists of two parts connected in series: a static nonlinear part and a dynamic linear part. Together these two parts form the overall model of the nonlinear system. The static nonlinear part describes the nonlinear relationship between input and output, usually represented by a static nonlinear function. The output of this function depends on the input but is not affected by the dynamics of the system. The dynamic linear part describes the dynamic behavior of the system, that is, the linear relationship between input and output. It is usually expressed through difference equations or differential equations, which contain the dynamic characteristics of the system. This section is typically used to describe the delay, inertia, and dynamic response of the system.

示例性地,服务器104获取试题集的步骤,可以是按照分布式能源系统的操作步骤逐步获取的,并且在对试题集进行获取时可以记录每个试题对应的操作位次。For example, the server 104 may obtain the test question set step by step according to the operating steps of the distributed energy system, and may record the operation rank corresponding to each test question when acquiring the test question set.

步骤S204,采用交替推荐算法对当前试题特征信息进行迭代优化,以获得目标试题特征信息。Step S204: Use an alternating recommendation algorithm to iteratively optimize the feature information of the current test question to obtain the feature information of the target test question.

其中,交替推荐算法是一种用于推荐系统的技术,主要用于优化用户和物品的表示以提高推荐的准确性。这类算法通过交替迭代优化用户和物品的表示,以更好地捕捉它们之间的潜在关系。这些算法通常属于协同过滤的范畴,其中用户和物品的表示通过挖掘用户行为数据来学习。示例性地,交替推荐算法可以是MKR算法(Multi-task Learning forKG enhanced Recommendation)。MKR算法是一种基于知识图谱的推荐算法,它利用知识图谱中的信息来增强推荐系统的性能。MKR主要关注两个任务:自动生成任务(AutomaticTask)和自动评分任务(Rating Prediction Task)。这两个任务是相互独立的,但通过知识图谱中的实体关系相互联系。Among them, the alternating recommendation algorithm is a technology used in recommendation systems, mainly used to optimize the representation of users and items to improve the accuracy of recommendations. This type of algorithm optimizes user and item representations through alternating iterations to better capture the underlying relationships between them. These algorithms often fall into the category of collaborative filtering, where user and item representations are learned by mining user behavior data. For example, the alternating recommendation algorithm may be the MKR algorithm (Multi-task Learning forKG enhanced Recommendation). The MKR algorithm is a recommendation algorithm based on the knowledge graph, which uses the information in the knowledge graph to enhance the performance of the recommendation system. MKR mainly focuses on two tasks: automatic generation task (AutomaticTask) and automatic rating task (Rating Prediction Task). These two tasks are independent of each other, but are related to each other through entity relationships in the knowledge graph.

示例性地,服务器104可以在未建立包含试题关键词索引的试题库的情况下,建立所述包含试题关键词索引的试题库,以统计当前试题特征信息;在已建立包含试题关键词索引的试题库的情况下,将所述已有试题信息记录至所述包含试题关键词索引的试题库中,以统计当前试题特征信息。再采用交替推荐算法对当前试题特征信息进行迭代优化,以获得目标试题特征信息。For example, the server 104 can establish a test question library including a test question keyword index without establishing a test question library containing a test question keyword index to collect statistics on current test question feature information; In the case of a test question bank, the existing test question information is recorded into the test question bank including a test question keyword index to collect statistics on the current test question feature information. Then the alternating recommendation algorithm is used to iteratively optimize the feature information of the current test question to obtain the feature information of the target test question.

步骤S206,根据目标试题特征信息构建目标知识图谱。Step S206: Construct a target knowledge graph based on the characteristic information of the target test questions.

其中,在上述MKR算法中,知识图谱(Knowledge Graph)是一个图形结构,用于表示实体之间的关系和属性。在推荐系统中,知识图谱通常包含了与推荐任务相关的实体(如用户、物品)、关系(如用户对物品的喜好关系)、属性(如物品的特征)等信息。具体来说,MKR算法中的知识图谱包括实体、关系、属性、三元组等元素:实体(Entities)是包括与推荐任务相关的实体,例如用户和物品。每个实体都有一个唯一的标识符。关系(Relations)是描述实体之间的关联关系,这些关系可以是用户对物品的喜好关系、物品的属性关系等。关系通常用有向边表示,连接两个实体。属性(Attributes)是描述实体或关系的特征或属性信息。在推荐系统中,物品的属性可能包括类别、标签、评分等,而用户的属性可能包括历史行为、偏好等。另外,知识图谱中的信息以三元组的形式存储,即(实体1,关系,实体2)。这种表示方式有助于组织和检索知识图谱中的信息。其中,三元组可以包括所述试题内容、试题属性类别和不同试题之间的联系。Among them, in the above-mentioned MKR algorithm, the knowledge graph (Knowledge Graph) is a graphical structure used to represent the relationships and attributes between entities. In recommendation systems, knowledge graphs usually contain information related to the recommendation task such as entities (such as users, items), relationships (such as users' preferences for items), attributes (such as characteristics of items), and other information. Specifically, the knowledge graph in the MKR algorithm includes entities, relationships, attributes, triples and other elements: Entities include entities related to the recommendation task, such as users and items. Each entity has a unique identifier. Relations describe the relationships between entities. These relationships can be user preferences for items, attribute relationships of items, etc. Relationships are usually represented by directed edges, connecting two entities. Attributes are characteristics or attribute information that describe entities or relationships. In a recommendation system, the attributes of items may include categories, tags, ratings, etc., while the attributes of users may include historical behaviors, preferences, etc. In addition, the information in the knowledge graph is stored in the form of triples, namely (entity 1, relationship, entity 2). This representation helps organize and retrieve information in the knowledge graph. The triplet may include the test question content, the test question attribute category, and the relationship between different test questions.

在MKR中,知识图谱的目的是通过学习实体之间的关系,提供对推荐任务的增强信息。知识图谱中的实体关系能够被用于生成任务特定的表示,从而提高推荐系统的性能。MKR算法通过交替优化推荐任务和知识图谱中的自动生成任务,使得任务特定的表示和知识图谱的信息相互促进,以提升推荐效果。In MKR, the purpose of the knowledge graph is to provide enhanced information for recommendation tasks by learning the relationships between entities. Entity relationships in knowledge graphs can be used to generate task-specific representations, thereby improving the performance of recommendation systems. The MKR algorithm alternately optimizes recommendation tasks and automatically generated tasks in the knowledge graph, so that task-specific representation and knowledge graph information promote each other to improve the recommendation effect.

步骤S208,响应于试题生成请求,根据目标知识图谱选取试题集中的试题,以生成试题模型。Step S208: In response to the test question generation request, test questions in the test question set are selected according to the target knowledge graph to generate a test question model.

其中,试题生成请求是由终端102发出的,用于指示服务器104生成模拟试题的请求指令信息。示例性地,试题生成请求可以由终端102根据接收考核人员的输入指令发出。The test question generation request is issued by the terminal 102 and is used to instruct the server 104 to generate request instruction information for simulated test questions. For example, the test question generation request may be issued by the terminal 102 according to the input instructions received from the examiner.

示例性地,服务器104可以根据终端102发出的试题生成请求,解析出试题生成请求中携带的试题信息,在根据试题信息分析目标知识图谱中对应的部分,从而选取试题集中的试题,并将选取的试题按照试题顺序进行组合封装,形成试题模型。For example, the server 104 can parse the test question information carried in the test question generation request according to the test question generation request issued by the terminal 102, and analyze the corresponding part of the target knowledge graph according to the test question information, thereby selecting the test questions in the test question set, and will select the test question. The test questions are combined and packaged according to the order of the test questions to form a test question model.

上述试题模型生成方法中,通过获取试题集和当前试题特征信息,从而得到当前已有的试题主体和试题集中不同试题之间的联系,采用交替推荐算法对当前试题特征信息进行迭代优化,以获得目标试题特征信息,再根据目标试题特征信息构建目标知识图谱。响应于试题生成请求,根据目标知识图谱选取试题集中的试题,以生成试题模型。交替推荐算法是一个通用的、端对端的深度推荐框架,旨在利用知识图谱嵌入去协助推荐任务。两个任务分别为自动生成任务和自动评分任务,两个任务是相互独立的,但是由于嵌入层RS中的item和嵌入层KG中的entity相互联系而高度相关。整个框架可以通过交替优化两个任务来被训练,赋予了MKR在真实推荐场景中高度的灵活性和适应性,从而能够能够灵活生成考核试题。In the above test question model generation method, by obtaining the test question set and the current test question feature information, the current existing test question body and the relationship between different questions in the test question set are obtained, and the alternating recommendation algorithm is used to iteratively optimize the current test question feature information to obtain Target test question feature information, and then build a target knowledge graph based on the target test question feature information. In response to the test question generation request, test questions in the test question set are selected according to the target knowledge graph to generate a test question model. The alternating recommendation algorithm is a general, end-to-end deep recommendation framework designed to utilize knowledge graph embeddings to assist recommendation tasks. The two tasks are the automatic generation task and the automatic scoring task. The two tasks are independent of each other, but they are highly related because the items in the embedding layer RS and the entities in the embedding layer KG are interconnected. The entire framework can be trained by alternately optimizing two tasks, giving MKR a high degree of flexibility and adaptability in real recommendation scenarios, so that it can flexibly generate assessment questions.

在一个示例性的实施例中,如图3所示,步骤S204包括步骤S302至步骤S306,相应地,步骤S206包括步骤S306至步骤S308。其中:In an exemplary embodiment, as shown in FIG. 3 , step S204 includes steps S302 to step S306, and correspondingly, step S206 includes steps S306 to step S308. in:

步骤S302,采用交替推荐算法,根据当前试题关系数据对试题特征信息进行迭代优化,以获得目标试题关系数据。Step S302: Use an alternating recommendation algorithm to iteratively optimize the test question feature information based on the current test question relationship data to obtain target test question relationship data.

其中,当前试题特征信息中包括试题关键词和当前试题关系数据。试题关键词用于表征当前的试题特征,当前试题关系数据用于表征不同试题之间的关联信息,例如关联性程度,试题难度,试题难度比重等。Among them, the current test question feature information includes test question keywords and current test question relationship data. The test question keywords are used to represent the characteristics of the current test question, and the current test question relationship data is used to represent the correlation information between different test questions, such as the degree of correlation, the difficulty of the test question, the proportion of the difficulty of the test question, etc.

示例性地,服务器104可以采用交替推荐算法,根据当前试题关系数据对试题特征信息进行迭代优化,从而填补当前试题关系数据的部分空缺,并且使得试题关系数据更加贴近实际要求,从而获得目标试题关系数据。For example, the server 104 can use an alternating recommendation algorithm to iteratively optimize the test question feature information according to the current test question relationship data, thereby filling some gaps in the current test question relationship data, and making the test question relationship data closer to actual requirements, thereby obtaining the target test question relationship. data.

步骤S304,根据试题关键词和目标试题关系数据生成目标试题特征信息。Step S304: Generate target test question feature information based on test question keywords and target test question relationship data.

示例性地,服务器104可以将新生成的目标试题关系数据与试题关键词进行一一对应,通过查找的方式将目标试题关系数据对应至试题关键词对应的集合内,形成新的目标试题特征信息。For example, the server 104 can make a one-to-one correspondence between the newly generated target test question relationship data and the test question keywords, and map the target test question relationship data to a set corresponding to the test question keywords by searching to form new target test question feature information. .

步骤S306,根据试题关键词生成基础知识图谱。Step S306: Generate a basic knowledge map according to the test question keywords.

其中,基础可以是根据试题关键词构建得出的一个静态的先验知识。Among them, the basis can be a static prior knowledge constructed based on the test question keywords.

步骤S308,根据目标试题特征信息更新基础知识图谱,以得到目标知识图谱。Step S308: Update the basic knowledge graph according to the characteristic information of the target test question to obtain the target knowledge graph.

示例性地,服务器104可以使用基础知识图谱和目标试题特征信息得到目标知识图谱,采用MKR算法作为优化目标函数学习用户和物品(或其他实体)的表示,其中包括预测目标和知识正则化项。进一步地,在优化目标函数中,引入了知识正则化项。这个项是通过将初始知识图谱中的关系转化为对模型表示的约束,以确保学到的表示尽量符合知识图谱中定义的关系。For example, the server 104 can use the basic knowledge graph and target test question feature information to obtain the target knowledge graph, and use the MKR algorithm as the optimization objective function to learn the representation of users and items (or other entities), which includes prediction targets and knowledge regularization terms. Furthermore, in the optimization objective function, the knowledge regularization term is introduced. This item converts the relationships in the initial knowledge graph into constraints on the model representation to ensure that the learned representation conforms to the relationships defined in the knowledge graph as much as possible.

在一个示例性的实施例中,步骤S208包括响应于试题生成请求,根据目标知识图谱选取试题集中的试题,得到模拟试题数据;根据试题关键词对模拟试题数据进行检验;在检验通过的情况下,根据模拟试题数据生成试题模型。In an exemplary embodiment, step S208 includes responding to the test question generation request, selecting test questions from the test question set according to the target knowledge graph, and obtaining simulated test question data; checking the simulated test question data according to the test question keywords; if the test passes , generate a test question model based on simulated test question data.

示例性地,服务器104可以根据电力系统的操作顺序逐步根据目标知识图谱选取试题集中的试题,再逐步对试题模型中的试题进行校验,从而生成最终的试题模型。For example, the server 104 can gradually select the test questions from the test question set according to the target knowledge graph according to the operation sequence of the power system, and then gradually verify the test questions in the test question model, thereby generating the final test question model.

在另一个实施例中,服务器104先基于Hammerstein模型建立由静态非线性环节和动态线性环节串联组成的电力系统模型,服务器104执行该方法用于建立基于调度员操作要点形成的试题模型,其中调度员操作要点为调度员在电力系统场景下的操作要点。服务器104在电力系统模型下获取试题集,按照分布式能源系统的操作步骤逐步获取试题以组成试题集,并且在对试题集进行获取时记录每个试题对应的操作位次和试题特征信息。In another embodiment, the server 104 first establishes a power system model composed of static nonlinear links and dynamic linear links in series based on the Hammerstein model. The server 104 executes this method to establish a test question model based on the dispatcher's operating points, where the dispatcher The operator operation points are the operation points of the dispatcher in the power system scenario. The server 104 obtains the test question set under the power system model, gradually obtains the test questions according to the operating steps of the distributed energy system to form a test question set, and records the operation position and test question characteristic information corresponding to each test question when acquiring the test question set.

接下来,服务器104在未建立包含试题关键词索引的试题库的情况下,建立所述包含试题关键词索引的试题库,以统计当前试题特征信息;在已建立包含试题关键词索引的试题库的情况下,将所述已有试题信息记录至所述包含试题关键词索引的试题库中,以统计当前试题特征信息。再采用交替推荐算法对当前试题特征信息进行迭代优化并建立目标知识图谱,以获得目标试题特征信息。Next, when the server 104 has not established a test question bank including a test question keyword index, it establishes the test question bank including a test question keyword index to collect statistics on the current test question feature information; when a test question bank including a test question keyword index has been established In the case of , the existing test question information is recorded into the test question database containing the test question keyword index to collect statistics on the current test question feature information. Then the alternating recommendation algorithm is used to iteratively optimize the current test question feature information and establish a target knowledge graph to obtain the target test question feature information.

在使用过程中,服务器104根据终端102发出的试题生成请求,解析出试题生成请求中携带的试题信息,在根据试题信息分析目标知识图谱中对应的部分,从而选取试题集中的试题,并将选取的试题按照试题顺序进行组合封装,形成试题模型。During use, the server 104 parses the test question information carried in the test question generation request according to the test question generation request sent by the terminal 102, and analyzes the corresponding part of the target knowledge graph according to the test question information, thereby selecting the test questions in the test question set, and will The test questions are combined and packaged according to the order of the test questions to form a test question model.

应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts involved in the above-mentioned embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the above embodiments may include multiple steps or stages. These steps or stages are not necessarily executed at the same time, but may be completed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的试题模型生成方法的试题模型生成装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个试题模型生成装置实施例中的具体限定可以参见上文中对于试题模型生成方法的限定,在此不再赘述。Based on the same inventive concept, embodiments of the present application also provide a test question model generation device for implementing the above-mentioned test question model generation method. The problem-solving solution provided by this device is similar to the solution recorded in the above method. Therefore, the specific limitations in one or more test question model generation device embodiments provided below can be found in the test question model generation method mentioned above. Limitations will not be repeated here.

在一个示例性的实施例中,如图4所示,提供了一种试题模型生成装置,包括:信息获取模块402、迭代优化模块404、图谱生成模块406和试题生成模块408,其中:In an exemplary embodiment, as shown in Figure 4, a test question model generation device is provided, including: an information acquisition module 402, an iterative optimization module 404, a graph generation module 406, and a test question generation module 408, wherein:

信息获取模块402,用于获取试题集和当前试题特征信息,其中,当前试题特征信息用于表征试题集中不同试题之间的联系;The information acquisition module 402 is used to obtain the test question set and the current test question feature information, where the current test question feature information is used to represent the connection between different questions in the test question set;

迭代优化模块404,用于采用交替推荐算法对当前试题特征信息进行迭代优化,以获得目标试题特征信息;The iterative optimization module 404 is used to iteratively optimize the current test question feature information using an alternating recommendation algorithm to obtain the target test question feature information;

图谱生成模块406,用于根据目标试题特征信息构建目标知识图谱;The graph generation module 406 is used to construct a target knowledge graph based on the characteristic information of the target test questions;

试题生成模块408,用于响应于试题生成请求,根据目标知识图谱选取试题集中的试题,以生成试题模型。The test question generation module 408 is configured to respond to the test question generation request and select test questions from the test question set according to the target knowledge graph to generate a test question model.

在其中一个实施例中,当前试题特征信息中包括试题关键词和当前试题关系数据;迭代优化模块404包括:In one embodiment, the current test question feature information includes test question keywords and current test question relationship data; the iterative optimization module 404 includes:

数据优化单元,用于采用交替推荐算法,根据当前试题关系数据对试题特征信息进行迭代优化,以获得目标试题关系数据;The data optimization unit is used to use the alternating recommendation algorithm to iteratively optimize the test question feature information based on the current test question relationship data to obtain the target test question relationship data;

信息生成单元,用于根据试题关键词和目标试题关系数据生成目标试题特征信息。An information generation unit is used to generate target test question characteristic information based on test question keywords and target test question relationship data.

在其中一个实施例中,图谱生成模块406包括:In one embodiment, the map generation module 406 includes:

图谱初始化单元,用于根据试题关键词生成基础知识图谱;The map initialization unit is used to generate a basic knowledge map based on test question keywords;

图谱更新单元,用于根据目标试题特征信息更新基础知识图谱,以得到目标知识图谱。The map update unit is used to update the basic knowledge map according to the characteristic information of the target test question to obtain the target knowledge map.

在其中一个实施例中,试题生成模块408包括:In one embodiment, the test question generation module 408 includes:

试题升成单元,用于响应于试题生成请求,根据目标知识图谱选取试题集中的试题,得到模拟试题数据;Test questions are upgraded into units, which are used to respond to the test question generation request, select test questions from the test question set according to the target knowledge graph, and obtain simulated test question data;

试题校验单元,用于根据试题关键词对模拟试题数据进行检验;The test question verification unit is used to check the simulated test question data based on the test question keywords;

模型生成单元,用于在检验通过的情况下,根据模拟试题数据生成试题模型。The model generation unit is used to generate a test question model based on the simulated test question data when the test is passed.

在其中一个实施例中,试题集是按照分布式能源系统的操作步骤逐步获取的。In one embodiment, the test question set is obtained step by step according to the operating steps of the distributed energy system.

在其中一个实施例中,方法用于非线性系统的操作考核。In one embodiment, the method is used for operational assessment of nonlinear systems.

上述试题模型生成装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned test question model generation device can be realized in whole or in part by software, hardware and combinations thereof. Each of the above modules may be embedded in or independent of the processor of the computer device in the form of hardware, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个示例性的实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图5所示。该计算机设备包括处理器、存储器、输入/输出接口(Input/Output,简称I/O)和通信接口。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储试题集和当前试题特征信息,以及迭代优化过程中的缓存数据。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种试题模型生成方法。In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be shown in Figure 5 . The computer device includes a processor, a memory, an input/output interface (Input/Output, referred to as I/O), and a communication interface. Among them, the processor, memory and input/output interface are connected through the system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems, computer programs and databases. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media. The database of the computer device is used to store test question sets and current test question feature information, as well as cached data in the iterative optimization process. The input/output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. The computer program implements a test question model generating method when executed by the processor.

在一个示例性的实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图6所示。该计算机设备包括处理器、存储器、输入/输出接口、通信接口、显示单元和输入装置。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口、显示单元和输入装置通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种试题模型生成方法。该计算机设备的显示单元用于形成视觉可见的画面,可以是显示屏、投影装置或虚拟现实成像装置。显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 6 . The computer device includes a processor, memory, input/output interface, communication interface, display unit and input device. Among them, the processor, memory and input/output interface are connected through the system bus, and the communication interface, display unit and input device are connected to the system bus through the input/output interface. Wherein, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used for wired or wireless communication with external terminals. The wireless mode can be implemented through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program implements a test question model generating method when executed by the processor. The display unit of the computer equipment is used to form a visually visible picture, and may be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display or an electronic ink display. The input device of the computer device can be a touch layer covered on the display screen, or it can be a button, trackball or touch pad provided on the computer device casing, or it can be External keyboard, trackpad or mouse, etc.

本领域技术人员可以理解,图6中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 6 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Specific computer equipment can May include more or fewer parts than shown, or combine certain parts, or have a different arrangement of parts.

在一个示例性的实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:获取试题集和当前试题特征信息,其中,当前试题特征信息用于表征试题集中不同试题之间的联系;采用交替推荐算法对当前试题特征信息进行迭代优化,以获得目标试题特征信息;根据目标试题特征信息构建目标知识图谱;响应于试题生成请求,根据目标知识图谱选取试题集中的试题,以生成试题模型。In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, it implements the following steps: obtaining a test question set and current test question characteristic information, wherein , the characteristic information of the current test question is used to characterize the connection between different questions in the test question set; the alternating recommendation algorithm is used to iteratively optimize the characteristic information of the current test question to obtain the characteristic information of the target test question; the target knowledge graph is constructed based on the characteristic information of the target test question; in response to the test question Generate a request and select test questions from the test question set based on the target knowledge graph to generate a test question model.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:采用交替推荐算法,根据当前试题关系数据对试题特征信息进行迭代优化,以获得目标试题关系数据;根据试题关键词和目标试题关系数据生成目标试题特征信息。In one embodiment, the processor also implements the following steps when executing the computer program: using an alternating recommendation algorithm, iteratively optimizing the test question feature information according to the current test question relationship data to obtain the target test question relationship data; according to the test question keywords and the target test question relationship The data generates target test question feature information.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:根据试题关键词生成基础知识图谱;根据目标试题特征信息更新基础知识图谱,以得到目标知识图谱。In one embodiment, when the processor executes the computer program, it also implements the following steps: generating a basic knowledge graph according to the test question keywords; updating the basic knowledge graph according to the target test question feature information to obtain the target knowledge graph.

在一个实施例中,处理器执行计算机程序时还实现以下步骤:响应于试题生成请求,根据目标知识图谱选取试题集中的试题,得到模拟试题数据;根据试题关键词对模拟试题数据进行检验;在检验通过的情况下,根据模拟试题数据生成试题模型。In one embodiment, the processor also implements the following steps when executing the computer program: in response to the test question generation request, selects test questions from the test question set according to the target knowledge graph to obtain simulated test question data; checks the simulated test question data according to the test question keywords; If the test passes, a test question model is generated based on the simulated test question data.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:获取试题集和当前试题特征信息,其中,当前试题特征信息用于表征试题集中不同试题之间的联系;采用交替推荐算法对当前试题特征信息进行迭代优化,以获得目标试题特征信息;根据目标试题特征信息构建目标知识图谱;响应于试题生成请求,根据目标知识图谱选取试题集中的试题,以生成试题模型。In one embodiment, a computer-readable storage medium is provided, with a computer program stored thereon. When the computer program is executed by a processor, the following steps are implemented: obtaining a test question set and current test question feature information, where the current test question feature information is To represent the connection between different questions in the test question set; use the alternating recommendation algorithm to iteratively optimize the feature information of the current test question to obtain the feature information of the target question; build the target knowledge graph based on the feature information of the target question; respond to the question generation request, according to the target knowledge The graph selects test questions from the test question set to generate a test question model.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:采用交替推荐算法,根据当前试题关系数据对试题特征信息进行迭代优化,以获得目标试题关系数据;根据试题关键词和目标试题关系数据生成目标试题特征信息。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: using an alternating recommendation algorithm, iteratively optimizing the test question feature information according to the current test question relationship data to obtain the target test question relationship data; according to the test question keywords and the target test question Relational data generates target test question feature information.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据试题关键词生成基础知识图谱;根据目标试题特征信息更新基础知识图谱,以得到目标知识图谱。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: generating a basic knowledge graph according to the test question keywords; updating the basic knowledge graph according to the target test question feature information to obtain the target knowledge graph.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:响应于试题生成请求,根据目标知识图谱选取试题集中的试题,得到模拟试题数据;根据试题关键词对模拟试题数据进行检验;在检验通过的情况下,根据模拟试题数据生成试题模型。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to the test question generation request, select the test questions in the test question set according to the target knowledge graph, and obtain the simulated test question data; check the simulated test question data according to the test question keywords; If the test passes, a test question model is generated based on the simulated test question data.

在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:获取试题集和当前试题特征信息,其中,当前试题特征信息用于表征试题集中不同试题之间的联系;采用交替推荐算法对当前试题特征信息进行迭代优化,以获得目标试题特征信息;根据目标试题特征信息构建目标知识图谱;响应于试题生成请求,根据目标知识图谱选取试题集中的试题,以生成试题模型。In one embodiment, a computer program product is provided, including a computer program. When executed by a processor, the computer program implements the following steps: obtaining a test question set and current test question feature information, wherein the current test question feature information is used to characterize the test question set. The connection between different test questions; use the alternating recommendation algorithm to iteratively optimize the feature information of the current test question to obtain the feature information of the target test question; build the target knowledge graph based on the feature information of the target test question; respond to the question generation request, select the test question set based on the target knowledge graph test questions to generate test question models.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:采用交替推荐算法,根据当前试题关系数据对试题特征信息进行迭代优化,以获得目标试题关系数据;根据试题关键词和目标试题关系数据生成目标试题特征信息。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: using an alternating recommendation algorithm, iteratively optimizing the test question feature information according to the current test question relationship data to obtain the target test question relationship data; according to the test question keywords and the target test question Relational data generates target test question feature information.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:根据试题关键词生成基础知识图谱;根据目标试题特征信息更新基础知识图谱,以得到目标知识图谱。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: generating a basic knowledge graph according to the test question keywords; updating the basic knowledge graph according to the target test question feature information to obtain the target knowledge graph.

在一个实施例中,计算机程序被处理器执行时还实现以下步骤:响应于试题生成请求,根据目标知识图谱选取试题集中的试题,得到模拟试题数据;根据试题关键词对模拟试题数据进行检验;在检验通过的情况下,根据模拟试题数据生成试题模型。In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to the test question generation request, select the test questions in the test question set according to the target knowledge graph, and obtain the simulated test question data; check the simulated test question data according to the test question keywords; If the test passes, a test question model is generated based on the simulated test question data.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage. In the media, when executed, the computer program may include the processes of the above method embodiments. Any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random) Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include blockchain-based distributed databases, etc., but are not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to this.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined in any way. To simplify the description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, all possible combinations should be used. It is considered to be within the scope of this manual.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation modes of the present application, and their descriptions are relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all fall within the protection scope of the present application. Therefore, the scope of protection of this application should be determined by the appended claims.

Claims (10)

1. The test question model generation method is characterized by comprising the following steps:
acquiring a test question set and current test question feature information, wherein the current test question feature information is used for representing the relation between different test questions in the test question set;
performing iterative optimization on the current test question feature information by adopting an alternative recommendation algorithm to obtain target test question feature information;
constructing a target knowledge graph according to the characteristic information of the target test questions;
responding to a test question generation request, and selecting test questions in the test question set according to the target knowledge graph so as to generate a test question model.
2. The method according to claim 1, wherein the current test question feature information comprises test question keywords and current test question relation data; the step of performing iterative optimization on the current test question feature information by adopting an alternative recommendation algorithm to obtain target test question feature information comprises the following steps:
adopting an alternate recommendation algorithm, and carrying out iterative optimization on the test question feature information according to the current test question relation data so as to obtain target test question relation data;
and generating target test question feature information according to the test question keywords and the target test question relation data.
3. The method of claim 2, wherein constructing a target knowledge-graph from the target test question feature information comprises:
generating a basic knowledge graph according to the test question keywords;
and updating the basic knowledge graph according to the characteristic information of the target test questions to obtain a target knowledge graph.
4. The method of claim 2, wherein the selecting the questions in the set of questions according to the target knowledge-graph in response to the question generation request to generate the question model comprises:
responding to a test question generation request, and selecting test questions in the test question set according to the target knowledge graph to obtain simulated test question data;
checking the simulated test question data according to the test question keywords;
and generating a test question model according to the simulated test question data under the condition that the test passes.
5. The method of claim 1, wherein the test question sets are obtained step by step according to the operating steps of the distributed energy system.
6. The method according to any one of claims 1 to 5, wherein the method is used for operational assessment of a nonlinear system.
7. A test question model generation device, characterized in that the device comprises:
the information acquisition module is used for acquiring a test question set and current test question feature information, wherein the current test question feature information is used for representing the relation between different test questions in the test question set;
the iterative optimization module is used for carrying out iterative optimization on the current test question feature information by adopting an alternative recommendation algorithm so as to obtain target test question feature information;
the map generation module is used for constructing a target knowledge map according to the target test question characteristic information;
and the test question generation module is used for responding to a test question generation request, selecting test questions in the test question set according to the target knowledge graph so as to generate a test question model.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311642154.6A 2023-12-04 2023-12-04 Test question model generation method and device and computer equipment Pending CN117540034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311642154.6A CN117540034A (en) 2023-12-04 2023-12-04 Test question model generation method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311642154.6A CN117540034A (en) 2023-12-04 2023-12-04 Test question model generation method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN117540034A true CN117540034A (en) 2024-02-09

Family

ID=89784091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311642154.6A Pending CN117540034A (en) 2023-12-04 2023-12-04 Test question model generation method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN117540034A (en)

Similar Documents

Publication Publication Date Title
Silva et al. Using vistrails and provenance for teaching scientific visualization
CN114579584B (en) Data table processing method and device, computer equipment and storage medium
CN117078480A (en) Carbon emission monitoring method, device, equipment, storage medium and computer product
CN115221413B (en) A sequential recommendation method and system based on interactive graph attention network
CN109800147A (en) A kind of test cases generation method and terminal device
CN114741853A (en) Simulation operation platform and method based on universal blackboard system
CN118035423A (en) Information query method, device, computer equipment and storage medium
CN117540034A (en) Test question model generation method and device and computer equipment
CN117472431A (en) Code annotation generation method, device, computer equipment, storage medium and product
CN116127195A (en) Package recommendation method, device, computer equipment, storage medium and program product
CN114971255A (en) Automatic parameter performance detection system and method
CN115705384A (en) Decoupling recommendation method, system, terminal and medium based on knowledge graph fusion
Li [Retracted] Design of Online Ideological and Political Teaching of Building Architecture from the Perspective of Machine Learning
CN116932488B (en) Courseware generation method, device and system based on knowledge graph and storage medium
CN117540915B (en) Selection scheme generation method, device, equipment and medium based on big data technology
CN114470790B (en) Virtual resource processing method, device, equipment, computer program and storage medium
CN117151247B (en) Method, apparatus, computer device and storage medium for modeling machine learning task
US20070035558A1 (en) Visual model importation
CN118396115A (en) Dynamic body scene generation method and device, electronic equipment and storage medium
CN116880886A (en) Updating method and device of product recommendation model
CN117495128A (en) Electricity consumption data prediction method, device, computer equipment and storage medium
CN117726484A (en) Power system simulation model generation method, device and computer equipment
CN117539982A (en) Operation and maintenance method and device for natural language processing model
CN118672555A (en) Task flow creation method, device, computer equipment and readable storage medium
CN119045820A (en) Metadata-based multi-type form generation method and device and computer equipment

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