WO2023035526A1 - Object sorting method, related device, and medium - Google Patents

Object sorting method, related device, and medium Download PDF

Info

Publication number
WO2023035526A1
WO2023035526A1 PCT/CN2022/071276 CN2022071276W WO2023035526A1 WO 2023035526 A1 WO2023035526 A1 WO 2023035526A1 CN 2022071276 W CN2022071276 W CN 2022071276W WO 2023035526 A1 WO2023035526 A1 WO 2023035526A1
Authority
WO
WIPO (PCT)
Prior art keywords
subtask
vector
task
execution
execution time
Prior art date
Application number
PCT/CN2022/071276
Other languages
French (fr)
Chinese (zh)
Inventor
舒畅
陈又新
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2023035526A1 publication Critical patent/WO2023035526A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2465Query processing support for facilitating data mining operations in structured databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models
    • 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

Definitions

  • the present application relates to the technical field of artificial intelligence, in particular to an object sorting method, related equipment and media.
  • the traditional sorting method usually sorts the multiple objects to be sorted by their own reference data. For example, sort the employees of the enterprise based on their daily work assessments to obtain a performance ranking, and then classify the employees according to the ranking results; another example, through the running tasks (tasks in the running state) in the cluster
  • the scheduling situation sorts the running tasks to obtain the importance ranking, and then the priority of the running tasks can be determined according to the sorting results.
  • only sorting is performed based on the object's own reference data, and the data is single, which easily leads to low accuracy of sorting results and low sorting efficiency.
  • Embodiments of the present application provide an object sorting method, related equipment, and media, which can improve the sorting efficiency and the accuracy of sorting results for objects.
  • the embodiment of the present application provides an object sorting method, the method comprising:
  • the task knowledge graph includes the entity of each object and the entity of each subtask
  • an object sorting device comprising:
  • An acquisition module configured to acquire the execution time deviation of each subtask included in the task
  • a determining module configured to determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes entities of each object and entities of each subtask;
  • the acquiring module is configured to acquire the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
  • the determination module is configured to determine, according to the execution data and the task execution analysis data, the compatibility feature of each object in the subtask executed by the object;
  • the determining module is further configured to determine the characterization vector of each object and the characterization vector of each subtask according to the task knowledge map;
  • the determination module is further configured to determine each The target feature vector of an object
  • a sorting module configured to sort the plurality of objects according to the target feature vector of each object to obtain a sorting result.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions, to execute the following method:
  • the task knowledge graph includes the entity of each object and the entity of each subtask
  • an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, they are used to perform the following methods:
  • the task knowledge graph includes the entity of each object and the entity of each subtask
  • the data used for sorting is more comprehensive, and the efficiency of sorting objects and the accuracy of the sorting results obtained are improved.
  • FIG. 1 is a schematic flow diagram of an object sorting method provided in an embodiment of the present application
  • FIG. 2 is a schematic flow chart of an object sorting method provided in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a task knowledge map provided by the embodiment of the present application.
  • FIG. 4a is a schematic diagram of a scene for determining importance data provided by an embodiment of the present application.
  • FIG. 4b is a schematic diagram of a scenario for determining importance data provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an object sorting device provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the object sorting method proposed in the embodiment of the present application is implemented in an electronic device, and the electronic device may be a terminal device or a server.
  • the terminal device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like.
  • the server can be an independent server, or a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware Services, domain name services, security services, content delivery network (Content Delivery Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, but are not limited to this.
  • This application involves blockchain technology. Electronic devices can write related data into the blockchain, such as task knowledge graphs, execution time deviations of subtasks, or sorting results of multiple objects, so that electronic devices can Get the information you need, such as sorting results for multiple objects.
  • the electronic device may execute the method for sorting objects according to actual business requirements, so as to improve the efficiency of sorting objects and the accuracy of sorting results.
  • the technical solution of the present application can be applied to any object sorting scenario.
  • the technical solution of this application can be applied to the scenario of sorting the performance of employees, and the electronic device can generate a knowledge map (ie, a task knowledge map) based on the employee (such as an employee of an enterprise) and the sub-projects that the employee participates in, and combine the project knowledge map , employees, and the relevant execution information of the sub-projects that employees participate in (execution time deviation, execution data, etc.) to obtain the employee's target feature vector, and sort multiple employees based on the target feature vector to obtain the sorting result.
  • a knowledge map ie, a task knowledge map
  • the electronic device can generate a knowledge map (ie, a task knowledge map) based on the employee (such as an employee of an enterprise) and the sub-projects that the employee participates in, and combine
  • the technical solution of the present application can be applied to the scenario of sorting the importance of running tasks in the cluster, and the electronic device can generate a task knowledge map according to the running tasks and the task events (such as obtaining business data) executed by the running tasks, and Combining the task knowledge graph, running tasks, and related execution information (execution time deviation, execution data, etc.) of the task events executed by the running tasks to obtain the target feature vector of the running task, and sort multiple running tasks based on the target feature vector, Get sorted results.
  • the object sorting scenario of the application that is, no limitation on the specific types of the involved objects and tasks (subtasks).
  • the object sorting methods mentioned later have all taken the performance sorting scenario of employees as an example.
  • an embodiment of the present application proposes a method for sorting objects, which can be executed by the above-mentioned electronic device.
  • the process of the object sorting method in the embodiment of the present application may include the following:
  • the task and each subtask may be any event associated with the object, and the object may be any object that needs to be sorted.
  • the task can be a project of the enterprise, and the subtask can be a subproject in the project;
  • the object is a running task in a cluster
  • the task can be the cluster node requested by the running task at runtime (such as a business database), a subtask can be a task event executed when a running task requests a cluster node.
  • the electronic device can obtain the execution record corresponding to the task from the database, the execution record stores the actual execution time and expected execution time of each subtask included in the task, and based on the actual execution time of each subtask Execution time and expected execution time determine the execution time deviation of each subtask; or it can also obtain the actual execution time and expected execution time of each subtask from the task knowledge map, for example, find the entity of each subtask in the task knowledge map corresponding node, and obtain the stored information from the node properties.
  • the acquisition of the execution time deviation of each subtask included in the task by the electronic device may be specifically, acquiring the actual execution time of each subtask included in the task and the expected execution time of each subtask, and calculating the actual execution time of each subtask and the expected execution time of each subtask.
  • the difference between the expected execution times of the tasks is to determine the execution time deviation of each subtask according to the difference between the actual execution time of each subtask and the expected execution time of each subtask.
  • the difference between the actual execution time of each subtask and the expected execution time of each subtask may be directly determined as the execution time deviation of each subtask.
  • the execution time deviation is used to measure the execution status of the subtask executed by the object, and the execution status of the subtask affects the sorting result of the object, that is, when sorting the objects, the execution time deviation of the subtask will be combined.
  • An object can perform one or more subtasks, and a subtask can be performed by one or more objects.
  • S102 Determine the importance degree data of each of the multiple objects associated with the task according to the task knowledge graph.
  • the above-mentioned task knowledge map includes the entity of each object and the entity of each subtask.
  • it may also include the entity of the task to which each subtask belongs, that is, there may be multiple object entities, multiple The entity of the task and the entity of multiple subtasks, as well as the connection relationship between objects, the connection relationship between multiple tasks, the connection relationship between multiple subtasks, the connection relationship between objects and tasks, the object
  • There can be a connection relationship with a subtask and there can be a connection relationship between a task and a subtask.
  • connection relationship between each subtask and the task it belongs to there may also be a connection relationship between tasks and The connection relationship between the associated objects (the objects that execute the subtasks included in the task can be used as multiple objects associated with the task).
  • the electronic device determines the importance data of each of the multiple objects associated with the task according to the task knowledge graph, specifically, by using the PageRank algorithm (a method used to classify nodes in a directed connection graph) Importance ranking algorithm) to obtain the importance of each entity in the task knowledge graph, and use the importance of each object's entity as the importance data of each object; or, use the PageRank algorithm to obtain The importance of the entity of each object in the task knowledge graph, and the importance of the entity of each subtask in the task knowledge graph, according to the importance of the entity of each object and the entity of the subtask performed by each object
  • the importance determines the importance data of each object, for example, the ratio of the importance of the entity of each object to the importance of the entity of the subtask executed by each object may be used as the importance data of each object.
  • the importance degree data can be used to evaluate the importance of the object, specifically, it can be used to evaluate the importance in the executed subtask, that is, the importance degree data of each object can be used to represent the importance of each object in the executed subtask Importance data in the task.
  • the importance data of each object in the different subtasks executed can be the same or different.
  • the importance of the object in the executed subtasks affects the sorting results of the objects. When sorting, the importance of the object in the subtask being performed is combined.
  • object 1 executes subtask 1
  • the execution data of object 1 on the executed subtask 1 is obtained, and the objects that execute subtask 1 also include object 2 and object 3, that is, for object 1, the executed subtask
  • the other objects associated with task 1 are object 2 and object 3, so the task execution analysis information on object 1 fed back by other objects (part or all of objects in object 2 and object 3) associated with the executed subtask 1 is obtained.
  • the electronic device can obtain the execution record corresponding to the task from the database, and the execution record stores the execution data of each object associated with each subtask included in the task when executing the subtask and other associated objects.
  • Feedback task execution analysis information for this object that is, for multiple objects executing subtasks, the execution record corresponding to the task contains the execution data generated by each object during the execution of the subtask, and multiple The task execution analysis information fed back by other objects in the object during the execution of the subtask.
  • the execution data may represent the execution status of the object at different periods during the execution of subtasks
  • the task execution analysis information may represent feedback feedback from other objects on the execution status.
  • the execution data can specifically be the work status records filled in by employee A during the execution of the subtask (i.e. the execution status in different periods), such as daily content, weekly report content, etc.
  • the task execution analysis information can be other information associated with the subtask.
  • Employee B's work evaluation record of employee A's feedback that is, the feedback feedback
  • the reply record of employee A's execution data or the score of employee A's work participation, etc.
  • the execution data may be the running log generated by the running task during the execution of the task event
  • the task execution analysis information may be the data generated during the execution of other running tasks that execute the task event.
  • the execution data may specifically be the operation exception record generated by the execution task A during the execution of the task event (that is, the operation log generated during the execution period), such as the operation error and operation suspension records of the execution task A, and the task execution analysis information may specifically be the execution of the task.
  • the associated running exception record for the running task A generated by other running task B of the task event (that is, the associated running log for the running task A generated), such as the existence of other running tasks B caused by the abnormal running of the running task A Records of abnormal operation, etc.
  • execution data and task execution analysis information There is no limitation on specific types of execution data and task execution analysis information.
  • S104 Determine the compatibility feature of each object in the subtask executed by the object according to the execution data and the task execution analysis data.
  • the electronic device may determine the compatibility feature of each object in the subtask executed by the object according to the execution data and the task execution analysis data, which may include acquiring a first feature vector used to represent the execution data, and It is used to represent the second feature vector of the task execution analysis data, and the compatibility feature of the object in the executed sub-task is determined according to the first feature vector and the second feature vector.
  • the compatibility feature of the object in the executed subtask may be represented by a numerical value of 0-1.
  • the compatibility feature can be used to indicate whether the execution data of the object in the executed subtask matches the task execution analysis data fed back by other objects to the object. The higher the matching degree, the higher the value of the compatibility feature, and vice versa , the lower the matching degree, the lower the value of the compatibility feature.
  • the execution data is the record of the employee’s work situation
  • the task execution analysis data is the work evaluation record of the employee by other employees associated with the sub-project.
  • the corresponding first eigenvector and The second eigenvector corresponding to the employee’s work evaluation record of other employees obtains the compatibility feature of the employee in this sub-item, and the compatibility feature indicates the consistency between the employee’s work record and the job evaluation record. If the compatibility The higher the sexual characteristics, the more consistent the work performance represented by the employee’s work situation and the work performance represented by other feedback job evaluations are in the participation of this sub-item, and vice versa. , employees with higher compatibility characteristics are more likely to be ranked high in performance.
  • S105 Determine the representation vector of each object and the representation vectors of each subtask according to the task knowledge map.
  • the electronic device determines the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph. Specifically, the entity of each object, the entity of each subtask, and the object and the relationship between the subtasks; the translation distance model is invoked to obtain the characterization vector of each object and the characterization vectors of each subtask according to the entity of each object, the entity of each subtask, and the relationship between the object and the subtask.
  • the translation distance model can be a TransE (Translation embeddings for modeling multi-relation data, multi-relational data embedding) model, so the electronic device can And use the translation distance model to obtain the representation vector of each object and the representation vector of each subtask. Specifically, it can be constructed according to the entity of each object, the entity of each subtask, and the relationship between the object and the subtask.
  • TransE Translation embeddings for modeling multi-relation data, multi-relational data embedding
  • the multiple triples are determined by the first entity, the second entity and the relationship between the first entity and the second entity, the first entity can be any object in each object, and the second entity can be is the subtask executed by the object, so the triplet can be (object, relationship, subtask), and the first entity, the second entity and the relationship in multiple triplets are mapped to the target vector space, and get The mapping vector of the first entity, the mapping vector of the second entity, and the mapping vector of the relationship, by constantly adjusting the mapping vector of the first entity, the mapping vector of the second entity, and the mapping vector of the relationship in the target vector space, so that The mapping vector of the first entity, the mapping vector of the second entity, and the mapping vector of the relationship in each triple group satisfy the preset relationship, and the mapping vector of the first entity when the preset relationship is satisfied is used as the representation vector of the object, The mapping vector of the second entity when the preset relationship is satisfied is used as the representation vector of the subtask of the object.
  • the preset relationship may be that the sum vector of the mapping vector of the first entity and the mapping vector of the relationship is similar to the mapping vector of the second entity, so each triplet (object, relationship, subtask) can be The relationship of is seen as the translation from the object entity to the subtask entity.
  • S106 Determine the target feature vector of each object according to the execution time deviation, the importance level data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
  • the electronic device determines the target feature vector of each object according to the execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vector of each subtask. Specifically, it may be: Determine all subtasks performed by each object, and obtain the initial feature vector of each subtask based on the execution time deviation, importance data, compatibility features and the characterization vector of each subtask in all subtasks, and obtain the initial feature vector of each subtask according to the The representation vector and the initial feature vector of each subtask performed by the object are obtained to obtain the target feature vector of each object.
  • the electronic device obtains the initial feature vector of each subtask based on the execution time deviation, the importance data, the compatibility feature and the characterization vector of each subtask in all the subtasks. Specifically, according to the execution time deviation of each subtask, The product of the importance data of the object in each subtask, the compatibility feature of the object in each subtask and the characterization vector of each subtask is obtained to obtain the initial feature vector of each subtask.
  • the target feature vector of each object can be obtained specifically, the initial feature vector of each subtask performed by the object The summation is obtained to obtain the target initial feature vector of each object, and the target feature vector of each object is obtained according to the representation vector of each object and the target initial feature vector of each object.
  • the target eigenvector of each object can be obtained by using the sum vector of the characterization vector and the target initial eigenvector as the target eigenvector, or by using the characterization vector The vector product with the target initial feature vector is used as the target feature vector.
  • the electronic device sorts the multiple objects according to the target feature vector of each object, and obtaining the sorting result may specifically include constructing the multiple objects into multiple object combinations, and according to the target feature vector of each object The vector determines a difference vector between each object combination in the multiple object combinations, sorts the multiple objects according to the difference vector between each object combination, and obtains a sorting result.
  • the object combination is any two objects in the plurality of objects, that is, every two objects in the plurality of objects form an object combination.
  • the electronic device sorts the multiple objects according to the difference vector between each object combination, and obtaining the sorting result may be, according to the difference vector between each object combination, determining the sorting result of the objects in each object combination , and sort the multiple objects according to the sorting results of the objects in each object combination to obtain the sorting results of the multiple objects.
  • multiple objects include object 1, object 2, and object 3, and the constructed object combinations are combination 1 (object 1, object 2), combination 2 (object 2, object 3), combination 3 (object 1, object 3) , according to the target feature vector of each object in combination 1, determine the difference vector 1 between combination 1, and according to the difference vector 1, determine the sorting result of the objects in combination 1 as object 2, object 1, and according to each of combination 2
  • the target feature vector of the object determines the difference vector 2 between the combination 2, and according to the difference vector 2, it is determined that the object sorting result in the combination 2 is object 2 and object 3, and the combination is determined according to the target feature vector of each object in the combination 3
  • the difference vector 3 between 3, and according to the difference vector 3 it is determined that the object sorting result in the combination 3 is object 3 and object 1, so multiple objects are sorted according to the object sorting result in each object combination, and more
  • the sorting result of objects is object 2, object 3, object 1.
  • the electronic device can obtain the execution time deviation of each subtask included in the task, determine the importance data of each of the multiple objects associated with the task according to the task knowledge map, and obtain the subtask performed by each object on the object.
  • the execution data of the task and the task execution analysis information of the object fed back by other objects associated with the executed sub-task determine the compatibility characteristics of each object in the sub-task executed by the object according to the execution data and task execution analysis data, according to the task
  • the knowledge map determines the characterization vector of each object and the characterization vector of each subtask, and determines the The target feature vector is used to sort multiple objects according to the target feature vector of each object to obtain the sorting result.
  • a task knowledge graph including objects and tasks associated with objects can be generated, and multiple objects can be sorted in combination with the task knowledge graph, objects, and tasks, so that the data used in sorting can be compared.
  • FIG. 2 is a schematic flowchart of a method for sorting objects provided by an embodiment of the present application, and the method may be executed by the electronic device mentioned above.
  • the process of the object sorting method in the embodiment of the present application may include the following:
  • S202 Determine the importance degree data of each of the multiple objects associated with the task according to the task knowledge graph.
  • the electronic device may construct a task knowledge map by extracting multiple enterprise employees from enterprise information, and extracting items (tasks) associated with the multiple enterprise employees , and extract the sub-projects (sub-tasks) to which the project belongs, according to the relationship between employees, the relationship between employees and projects, the relationship between employees and sub-projects, the relationship between projects and sub-projects, and the relationship between sub-projects
  • the relationship between constructing task knowledge graph for example, the constructed task knowledge graph can be shown in Figure 3; among them, the relationship between employees can be used to indicate the superior-subordinate relationship between employees, and the relationship between sub-projects can be used for Indicates dependencies of multiple subprojects under the same project.
  • a project includes subproject A, subproject B, and subproject C. If subproject A needs to be completed before subproject B can be completed, subproject A is the predecessor subproject of subproject B, that is, subproject A is subproject B. Dependent subprojects, and if subproject B can be completed before subproject C is completed, then subproject B is the predecessor subproject of subproject C, and all the predecessor subprojects of subproject C are subproject A and subproject B, namely Subproject A and Subproject B are subprojects that Subproject C depends on.
  • the task knowledge map can also be integrated into the organizational structure, such as the department to which the employee belongs.
  • the electronic device can obtain real-time project information or real-time employee information from enterprise information, and update the task knowledge map in real time, so that the timeliness of the employee performance ranking obtained according to the task knowledge map can be improved.
  • the electronic device can dynamically adjust the performance ranking of employees by combining the task knowledge map that integrates the relevant information of enterprise employees and project-related information and the relevant work status of the sub-projects that employees participate in, which can improve the efficiency and accuracy of employee ranking.
  • the electronic device determines the importance data of each of the multiple objects associated with the task according to the task knowledge map.
  • the PageRank algorithm is used to calculate the value of each entity in the task knowledge map. , and use the importance of the entity of each object as the importance data.
  • using the PageRank algorithm to calculate the importance of each entity in the task knowledge graph can be specifically constructed by constructing an adjacency matrix containing the connection relationship of each entity according to the task knowledge graph, and the adjacency matrix represents the relationship between each entity.
  • connection relationship between them, and the direction of the connection relationship, set the initial importance of each entity as 1, then generate a transition matrix containing each entity according to the adjacency matrix, that is, the value of each row in the adjacency matrix can be made
  • the normalization process obtains a transfer matrix, the sum of the values of each row in the transfer matrix is 1, and a system of equations for each entity is constructed according to the transfer matrix, which is a plurality of functions about entities, which can be solved through the system of equations Get the importance of each entity.
  • Figure 4a- Figure 4b is a schematic diagram of a scene for determining the importance level data provided by the embodiment of the present application
  • Figure 4a be a task knowledge map
  • the entities contained are 1-6
  • the task knowledge map constructs an adjacency matrix that contains the connection relationship of each entity, as shown in Figure 4b(1).
  • the connection relationship between entities is expressed in the form of an adjacency matrix.
  • the electronic device determines the compatibility characteristics of each object in the subtasks executed by the object according to the execution data and the task execution analysis data.
  • the execution data may be vectorized to obtain the corresponding
  • the first eigenvector of the task execution analysis data is vectorized to obtain the second eigenvector corresponding to the task execution analysis data, and the first eigenvector and the second eigenvector are input into the classification model to obtain the performance of each object in the object execution Compatibility traits in subtasks.
  • vectorizing the execution data can be inputting the execution data into the BERT (Bidirectional Encoder Representation from Transformers, bidirectional encoder of the modeler) model to obtain the first feature vector
  • vectorizing the task execution analysis data can be The task execution analysis data is input into the BERT model to obtain the second feature vector.
  • the classification model can be a sigmoid neural network model, so the compatibility feature of object i in subtask j can be:
  • is a sigmoid neural network model
  • M is a model parameter in the model, specifically M can be a bilinear parameter matrix
  • rV i j is the first eigenvector corresponding to the execution data of object i in subtask j
  • dV i j is the second feature vector corresponding to the task execution analysis data fed back by other objects to object i in subtask j.
  • S205 Determine the representation vector of each object and the representation vectors of each subtask according to the task knowledge graph.
  • the electronic device determines the characterization vector of each object and the characterization vector of each subtask according to the task knowledge graph. Specifically, the entity of each object and the entity of each subtask are obtained from the task knowledge graph, Perform vector representation on the entity of each object and the entity of each subtask, obtain the word vector of each object and the word vector of each subtask, and perform weighted processing on the word vector of each object and the word vector of each subtask, Obtain the relationship mapping vector of each object and the relationship mapping vector of each subtask, determine the relationship mapping vector of each object as the representation vector of each object, and determine the relationship mapping vector of each subtask as the representation of each subtask vector.
  • the electronic device performs vector representation on the entity of each object and the entity of each subtask respectively, and a vector dictionary is established in advance, and the corresponding relationship between word vectors and entities is stored in the dictionary, and the meanings of the entities in the vector dictionary are similar.
  • the distance between the word vectors of the entities is also similar, so the entities of each object and the entities of each subtask can be represented by vectors based on the vector dictionary, or the word2vec tool can be used to build a word vector model, and the word vector
  • the model is trained so that the trained word vector model can output the word vector corresponding to each entity, and the closer the word meaning is to the entity corresponding to the closer the word vector distance, so the entity of each object and the entity of each subtask can be separated
  • the word vector model performs vector representation and outputs the word vector of each object and the word vector of each subtask; the word vector distance can point to the Hamming distance, Euclidean distance, etc. between quantities.
  • the electronic device performs weighting processing on the word vector of each object and the word vector of each subtask, specifically, determining the relationship between the object and the subtask from the task knowledge map, and obtaining the object and subtask
  • the relational mapping matrix corresponding to the relationship among them is used to weight the word vector of each object and the word vector of each subtask respectively.
  • the relationship between each object and the executed subtask is the same, so the relationship mapping matrix used for weighting the word vector of each object and the word vector of each subtask is also the same.
  • Weighting the word vectors of each object and the word vectors of each subtask through the relationship mapping matrix corresponding to the relationship can be understood as mapping each object to the relationship space where the relationship is located, and mapping each subtask to the relationship where the relationship is located. relational space.
  • the electronic device may obtain a relationship mapping matrix corresponding to the relationship through the translation distance model.
  • the translation distance model can be a TransR (Learning Entity and Relation Embeddings for Knowledge Graph Completion, entities and relations are embedded separately) model, so the specific way for the electronic device to obtain the relationship mapping matrix can be, for the sample object and the sample subtask
  • the sample relationship between samples is expressed as a vector, and the sample word vector of the sample relationship is obtained, and the sample relationship mapping matrix is constructed, and the sample word vector of the sample object, the sample subtask and the sample word vector are weighted by the sample relationship mapping matrix, and the sample
  • the sample representation vector of the object and the sample representation vector of the sample subtask construct the objective function, and use the sample representation vector of the sample object, the sample representation vector of the sample subtask and the sample word vector of the sample relationship to map the sample relationship mapping matrix according to the objective function Training to obtain the relationship mapping matrix corresponding to the relationship between the above objects and subtasks; the sample object and the object in the task knowledge map can be
  • h represents the sample word vector of the sample object
  • r represents the sample word vector of the sample relationship between the sample object and the sample subtask
  • t represents the sample word vector of the sample subtask
  • M r represents the sample relationship mapping matrix, and the process of using this M r to weight h to obtain h r is to map the sample word vector of the sample object to the sample relation space corresponding to the sample relation
  • the process of using this M r to weight t to obtain t r is to map the sample word vector of the sample subtask to the sample relational space corresponding to the sample relation; therefore, the purpose of training is to make the representation vector of the object
  • the sum vector of the word vector of the relationship is approximately equal to the representation vector of the subtask.
  • S206 Determine the target feature vector of each object according to the execution time deviation, the importance level data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
  • subtasks may have predecessor subtasks, that is, subtasks with dependencies.
  • the execution time deviation of dependent subtasks When the execution time deviation of dependent subtasks is large, the execution time deviation of the current subtask may be relatively small. Large, so the impact of dependent subtasks on the execution time deviation of the current subtask can be offset by accumulating execution time deviations. That is, the electronic device determines the target feature vector of each object according to the execution time deviation, importance data, compatibility features, characterization vectors of each object, and characterization vectors of each subtask.
  • the sum of the execution time deviation of each subtask and the execution time deviation of the subtasks that each subtask depends on is determined as the cumulative execution time deviation of each subtask, according to the cumulative execution time deviation, importance data, and compatibility characteristics , the characterization vector of each object and the characterization vectors of each subtask, and determine the target feature vector of each object.
  • the electronic device determines the subtasks on which each subtask depends may obtain the execution record corresponding to the task from the database, and the execution record stores the execution links of the subtasks, which means the relationship between the subtasks under one task;
  • the subtasks that each subtask depends on can be obtained from the task knowledge graph according to the connection relationship between each subtask. Therefore, the cumulative execution time deviation of each subtask can be:
  • TB j is the cumulative execution time deviation of subtask j
  • diff k represents the execution time deviation between the subtask and the subtasks that the subtask depends on.
  • a task includes subtask 1, subtask 2, subtask 3, subtask 3 is a subtask that subtask 2 depends on, subtask 3 and subtask 2 are subtasks that subtask 1 depends on, if the execution of subtask 1
  • the time deviation is diff 1
  • the execution time deviation of subtask 2 is diff 2
  • the execution time deviation of subtask 3 is diff 3
  • the process and principle of determining the target feature vector of each object are the same, and here only the determination of the target feature vector of an object is taken as an example for illustration;
  • Compatibility features, characterization vectors of each object and characterization vectors of each subtask, determining the target feature vector of each object can specifically be to determine all target subtasks performed by the target object, according to the target object in all target subtasks
  • the cumulative execution time deviation, important program data and compatibility features of each subtask in , the characterization vector of each target subtask determine the initial feature vector of each target subtask, and convert the initial feature vector of each target subtask
  • the representation vector of the target object is input into the preset neural network model to obtain the target feature vector of the target object; the target object is any object in each object.
  • the preset neural network model can be a transformer model, so the target feature vector eC i of the target object i can be:
  • eV i represents the representation vector of target object i
  • j ⁇ J represents all target subtasks
  • TB j represents the cumulative execution time deviation of target subtask j
  • pV i represents the representation vector of target subtask j
  • step S207 Construct multiple objects into multiple object combinations. Wherein, for the specific implementation manner of step S207, reference may be made to the related description of step S107.
  • the electronic device sorts the multiple objects according to the target feature vector of each object and each object combination in the multiple object combinations. Specifically, it may be to determine the multiple objects according to the target feature vector of each object The difference vector between each combination of objects in the combination, sorting multiple objects by the difference vector between each combination of objects. Wherein, sorting the multiple objects according to the difference vector between each object combination may be specifically, according to the difference vector between each object combination, determining the object sorting result in each object combination, and according to each object combination Sort multiple objects within the object sort result.
  • determining the object sorting result in each object combination may specifically include inputting the difference vector between each object combination into the classification model, and determining each object according to the output result of the classification model.
  • the electronic device can obtain a sorting result including multiple objects according to the sorting result of objects in each object combination.
  • the classification model may be a sigmoid neural network model. It can be understood that the classification model used to determine the object sorting result in each object combination here may not be the same model as the above-mentioned classification model used to determine the compatibility feature of the object in the executed subtask.
  • the electronic device can obtain the execution time deviation of each subtask included in the task, determine the importance data of each of the multiple objects associated with the task according to the task knowledge map, and obtain the subtask performed by each object on the object.
  • the execution data of the task and the task execution analysis information of the object fed back by other objects associated with the executed sub-task determine the compatibility characteristics of each object in the sub-task executed by the object according to the execution data and task execution analysis data, according to the task
  • the knowledge map determines the characterization vector of each object and the characterization vector of each subtask, and determines the
  • the target feature vector constructs multiple objects into multiple object combinations, sorts the multiple objects according to the target feature vector of each object and each object combination in the multiple object combinations, and obtains a sorting result.
  • a task knowledge graph including objects and tasks associated with objects can be generated, and multiple objects can be sorted in combination with the task knowledge graph, objects, and tasks, so that the data used in sorting can be compared.
  • FIG. 5 is a schematic structural diagram of an object sorting device provided in the present application. It should be noted that the object sorting device shown in FIG. 5 is used to execute the method of the embodiment shown in FIG. 1 and FIG. 2 of the present application. For the convenience of description, only the parts related to the embodiment of the present application are shown. The specific technology The details are not disclosed, and reference is made to the embodiment shown in Fig. 1 and Fig. 2 of the present application.
  • the object sorting apparatus 500 may include: an acquisition module 501 , a determination module 502 , and a sorting module 503 . in:
  • An acquisition module 501 configured to acquire the execution time deviation of each subtask included in the task
  • a determining module 502 configured to determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes the entity of each object and the entities of each subtask;
  • the obtaining module 501 is configured to obtain the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
  • the determination module 502 is configured to determine, according to the execution data and the task execution analysis data, the compatibility feature of each object in the subtask executed by the object;
  • the determination module 502 is further configured to determine the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph;
  • the determining module 502 is further configured to determine the target feature vector for each object
  • a sorting module 503 configured to sort the plurality of objects according to the target feature vector of each object to obtain a sorting result.
  • the determining module 502 is configured to perform the following tasks according to the execution time deviation, the importance data, the compatibility feature, the characterization vector of each object, and the subtasks.
  • the characterization vector when determining the target feature vector of each object, is specifically used for:
  • the target feature vector of each object is determined according to the cumulative execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
  • the obtaining module 501 when used to obtain the execution time deviation of each subtask included in the task, it is specifically used to:
  • the difference between the actual execution time of each subtask and the expected execution time of each subtask is determined as the execution time deviation of each subtask.
  • the determination module 502 when used to determine the compatibility feature of each object in the subtask executed by the object according to the execution data and the task execution analysis data, Specifically for:
  • the determining module 502 when used to determine the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph, it is specifically used to:
  • the relationship mapping vector of each object is determined as the characterization vector of each object, and the relationship mapping vector of each subtask is determined as a characterization vector of each subtask.
  • the determining module 502 is specifically configured to:
  • the word vector of each object and the word vector of each subtask are weighted by using the relationship mapping matrix.
  • the sorting module 503 when used to sort the multiple objects according to the target feature vector of each object to obtain a sorting result, it is specifically configured to:
  • the plurality of objects are sorted according to the difference vector between each combination of objects to obtain a sorting result.
  • the acquisition module acquires the execution time deviation of each subtask included in the task; the determination module determines the importance data of each of the multiple objects associated with the task according to the task knowledge graph, and the task knowledge graph includes each object The entity of the entity and the entity of each subtask; the acquisition module acquires the execution data of the subtask executed by each object on the object and the task execution analysis information of the object fed back by other objects associated with the executed subtask; the determination module according to the execution data and task execution analysis data to determine the compatibility characteristics of each object in the subtasks executed by the object; the determination module determines the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph; the determination module determines the characterization vector according to the execution time deviation, Importance data, compatibility features, characterization vectors of each object and characterization vectors of each subtask, determine the target feature vector of each object; the sorting module sorts multiple objects according to the target feature vector of each object, and obtains Sort results.
  • a task knowledge graph including objects and tasks associated with the objects can be generated, and multiple objects can be sorted in combination with the task knowledge graph, objects, and tasks, so that the data used in sorting can be compared.
  • Each functional module in each embodiment of the present application may be integrated into one module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules may be implemented in the form of hardware or in the form of software function modules, which is not limited in this application.
  • the electronic device 600 includes: at least one processor 601 and a memory 602 .
  • the electronic device may also include a network interface.
  • the processor 601, the memory 602 and the network interface can exchange data, the network interface is controlled by the processor 601 for sending and receiving messages, and the memory 602 is used for storing computer programs, and the computer programs include program instructions,
  • the processor 601 is used to execute program instructions stored in the memory 602 .
  • the processor 601 is configured to call the program instruction to execute the above method.
  • the memory 602 may include a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory 602 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), solid-state drive (solid-state drive, SSD) etc.; Described memory 602 can also comprise the combination of above-mentioned types of memory.
  • volatile memory such as a random-access memory (random-access memory, RAM)
  • non-volatile memory such as a flash memory (flash memory), solid-state drive (solid-state drive, SSD) etc.
  • flash memory flash memory
  • solid-state drive solid-state drive
  • the processor 601 may be a central processing unit (central processing unit, CPU). In one embodiment, the processor 601 may also be a Graphics Processing Unit (GPU). The processor 601 may also be a combination of a CPU and a GPU.
  • CPU central processing unit
  • GPU Graphics Processing Unit
  • the memory 602 is used to store program instructions, and the processor 601 can invoke the program instructions to perform the following steps:
  • the task knowledge graph includes the entity of each object and the entity of each subtask
  • the processor 601 is configured to:
  • the characterization vector, when determining the target feature vector of each object, is specifically used for:
  • the target feature vector of each object is determined according to the cumulative execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
  • processor 601 when the processor 601 is used to obtain the execution time deviation of each subtask included in the task, it is specifically used to:
  • the difference between the actual execution time of each subtask and the expected execution time of each subtask is determined as the execution time deviation of each subtask.
  • processor 601 when the processor 601 is used to determine the compatibility feature of each object in the subtask executed by the object according to the execution data and the task execution analysis data, Specifically for:
  • the processor 601 when used to determine the characterization vector of each object and the characterization vector of each subtask according to the task knowledge graph, it is specifically configured to:
  • the relationship mapping vector of each object is determined as the characterization vector of each object, and the relationship mapping vector of each subtask is determined as a characterization vector of each subtask.
  • processor 601 when the processor 601 performs weight processing on the word vector of each object and the word vector of each subtask, it is specifically configured to:
  • the word vector of each object and the word vector of each subtask are weighted by using the relationship mapping matrix.
  • the processor 601 when the processor 601 is configured to sort the multiple objects according to the target feature vector of each object to obtain a sorting result, it is specifically configured to:
  • the plurality of objects are sorted according to the difference vector between each combination of objects to obtain a sorting result.
  • the device, processor 601, memory 602, etc. described in the embodiments of this application can execute the implementation methods described in the above method embodiments, and can also execute the implementation methods described in the embodiments of this application, which will not be repeated here repeat.
  • An embodiment of the present application also provides a computer (readable) storage medium, the computer storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor Part or all of the steps performed in the foregoing method embodiments may be performed.
  • the computer storage medium may be volatile or non-volatile.
  • the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function, etc.; Use the created data etc.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with each other using cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
  • the "plurality” mentioned herein means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character “/” generally indicates that the contextual objects are an "or” relationship.
  • the program can be stored in a computer storage medium, and the computer storage medium can be As for the computer-readable storage medium, when the program is executed, it may include the processes of the embodiments of the above-mentioned methods.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

An object sorting method, a related device, and a medium, which are applied to the technical field of artificial intelligence. The method comprises: acquiring an execution time deviation of each subtask; determining importance degree data of each object according to a task knowledge graph; acquiring execution data of each object, and task execution analysis information fed back by other objects associated with an executed subtask; determining a compatibility feature of each object according to the execution data and the task execution analysis data; determining a representation vector of each object and a representation vector of each subtask according to the task knowledge graph; determining a target feature vector of each object according to the execution time deviation, the importance degree data, the compatibility feature, the representation vector of each object and the representation vector of each subtask; and obtaining a sorting result of a plurality of objects according to the target feature vectors. A sorting result, etc., can be written into a blockchain.

Description

对象排序方法、相关设备及介质Object sorting method, related equipment and medium
本申请要求于2021年9月10日提交中国专利局、申请号为202111067106.X,发明名称为“对象排序方法、相关设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the China Patent Office on September 10, 2021 with application number 202111067106.X and titled "Object Sorting Method, Related Devices and Media", the entire contents of which are incorporated by reference in In this application.
技术领域technical field
本申请涉及人工智能技术领域,具体涉及一种对象排序方法、相关设备及介质。The present application relates to the technical field of artificial intelligence, in particular to an object sorting method, related equipment and media.
背景技术Background technique
发明人意识到,目前,传统的排序方法通常是通过待排序的多个对象的自身参考数据对该多个对象进行排序。例如,通过企业中员工的日常工作考核情况对企业的员工进行排序,得到绩效排名,后续可以根据该排序结果对员工进行等级划分;又如,通过集群中运行任务(处于运行状态的任务)的调度情况对运行任务进行排序,得到重要性排名,后续可以根据该排序结果确定运行任务的优先级。然而,仅根据对象的自身参考数据进行排序,数据单一,容易导致排序结果准确性低,且排序效率低。The inventor realizes that at present, the traditional sorting method usually sorts the multiple objects to be sorted by their own reference data. For example, sort the employees of the enterprise based on their daily work assessments to obtain a performance ranking, and then classify the employees according to the ranking results; another example, through the running tasks (tasks in the running state) in the cluster The scheduling situation sorts the running tasks to obtain the importance ranking, and then the priority of the running tasks can be determined according to the sorting results. However, only sorting is performed based on the object's own reference data, and the data is single, which easily leads to low accuracy of sorting results and low sorting efficiency.
发明内容Contents of the invention
本申请实施例提供了一种对象排序方法、相关设备及介质,可以提高针对对象的排序效率和排序结果的准确性。Embodiments of the present application provide an object sorting method, related equipment, and media, which can improve the sorting efficiency and the accuracy of sorting results for objects.
一方面,本申请实施例提供了一种对象排序方法,该方法包括:On the one hand, the embodiment of the present application provides an object sorting method, the method comprising:
获取任务包括的各个子任务的执行时间偏差;Obtain the execution time deviation of each subtask included in the task;
根据任务知识图谱确定所述任务关联的多个对象中每个对象的重要程度数据;所述任务知识图谱包括所述每个对象的实体和所述各个子任务的实体;Determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes the entity of each object and the entity of each subtask;
获取所述每个对象对所述对象执行的子任务的执行数据以及所述执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;Obtaining the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征;determining compatibility features of each object in subtasks executed by the object according to the execution data and the task execution analysis data;
根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量;determining the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph;
根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量;determining the target feature vector of each object according to the execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask;
根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果。sorting the plurality of objects according to the target feature vector of each object to obtain a sorting result.
一方面,本申请实施例提供了一种对象排序装置,该装置包括:On the one hand, an embodiment of the present application provides an object sorting device, the device comprising:
获取模块,用于获取任务包括的各个子任务的执行时间偏差;An acquisition module, configured to acquire the execution time deviation of each subtask included in the task;
确定模块,用于根据任务知识图谱确定所述任务关联的多个对象中每个对象的重要程度数据;所述任务知识图谱包括所述每个对象的实体和所述各个子任务的实体;A determining module, configured to determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes entities of each object and entities of each subtask;
所述获取模块,用于获取所述每个对象对所述对象执行的子任务的执行数据以及所述执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;The acquiring module is configured to acquire the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
所述确定模块,用于根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征;The determination module is configured to determine, according to the execution data and the task execution analysis data, the compatibility feature of each object in the subtask executed by the object;
所述确定模块,还用于根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量;The determining module is further configured to determine the characterization vector of each object and the characterization vector of each subtask according to the task knowledge map;
所述确定模块,还用于根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量;The determination module is further configured to determine each The target feature vector of an object;
排序模块,用于根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果。A sorting module, configured to sort the plurality of objects according to the target feature vector of each object to obtain a sorting result.
一方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,其中, 存储器用于存储计算机程序,该计算机程序包括程序指令,处理器被配置用于调用该程序指令,以执行以下方法:In one aspect, an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions, to execute the following method:
获取任务包括的各个子任务的执行时间偏差;Obtain the execution time deviation of each subtask included in the task;
根据任务知识图谱确定所述任务关联的多个对象中每个对象的重要程度数据;所述任务知识图谱包括所述每个对象的实体和所述各个子任务的实体;Determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes the entity of each object and the entity of each subtask;
获取所述每个对象对所述对象执行的子任务的执行数据以及所述执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;Obtaining the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征;determining compatibility features of each object in subtasks executed by the object according to the execution data and the task execution analysis data;
根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量;determining the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph;
根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量;determining the target feature vector of each object according to the execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask;
根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果。sorting the plurality of objects according to the target feature vector of each object to obtain a sorting result.
一方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序包括程序指令,该程序指令被处理器执行时,用于执行以下方法:On the one hand, an embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, they are used to perform the following methods:
获取任务包括的各个子任务的执行时间偏差;Obtain the execution time deviation of each subtask included in the task;
根据任务知识图谱确定所述任务关联的多个对象中每个对象的重要程度数据;所述任务知识图谱包括所述每个对象的实体和所述各个子任务的实体;Determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes the entity of each object and the entity of each subtask;
获取所述每个对象对所述对象执行的子任务的执行数据以及所述执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;Obtaining the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征;determining compatibility features of each object in subtasks executed by the object according to the execution data and the task execution analysis data;
根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量;determining the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph;
根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量;determining the target feature vector of each object according to the execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask;
根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果。sorting the plurality of objects according to the target feature vector of each object to obtain a sorting result.
通过实施本申请实施例所提出的方法,使得排序时使用的数据较为全面,以及提高了针对对象的排序效率和所得到的排序结果的准确性。By implementing the method proposed in the embodiment of the present application, the data used for sorting is more comprehensive, and the efficiency of sorting objects and the accuracy of the sorting results obtained are improved.
附图说明Description of drawings
图1为本申请实施例提供的一种对象排序方法的流程示意图;FIG. 1 is a schematic flow diagram of an object sorting method provided in an embodiment of the present application;
图2为本申请实施例提供的一种对象排序方法的流程示意图;FIG. 2 is a schematic flow chart of an object sorting method provided in an embodiment of the present application;
图3为本申请实施例提供的一种任务知识图谱的示意图;FIG. 3 is a schematic diagram of a task knowledge map provided by the embodiment of the present application;
图4a为本申请实施例提供的一种确定重要程度数据的场景示意图;FIG. 4a is a schematic diagram of a scene for determining importance data provided by an embodiment of the present application;
图4b为本申请实施例提供的一种确定重要程度数据的场景示意图;FIG. 4b is a schematic diagram of a scenario for determining importance data provided by an embodiment of the present application;
图5为本申请实施例提供的一种对象排序装置的结构示意图;FIG. 5 is a schematic structural diagram of an object sorting device provided in an embodiment of the present application;
图6为本申请实施例提供的一种电子设备的结构示意图。FIG. 6 is a schematic structural diagram 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 and completely described below in conjunction with the drawings in the embodiments of the present application.
本申请实施例提出的对象排序方法实现于电子设备,该电子设备可以为终端设备或服务器。其中,终端设备可以为智能手机、平板电脑、笔记本电脑、台式计算机等。服务器可以是独立的服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、 域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器,但并不局限于此。本申请涉及区块链技术,电子设备可将涉及的数据如任务知识图谱、子任务的执行时间偏差或多个对象的排序结果等写入区块链中,以便于电子设备可以在区块链上获取所需信息,如多个对象的排序结果。The object sorting method proposed in the embodiment of the present application is implemented in an electronic device, and the electronic device may be a terminal device or a server. Wherein, the terminal device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like. The server can be an independent server, or a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware Services, domain name services, security services, content delivery network (Content Delivery Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, but are not limited to this. This application involves blockchain technology. Electronic devices can write related data into the blockchain, such as task knowledge graphs, execution time deviations of subtasks, or sorting results of multiple objects, so that electronic devices can Get the information you need, such as sorting results for multiple objects.
在一些实施例中,电子设备可以根据实际的业务需求,执行该对象排序方法,以提高针对对象的排序效率和排序结果的准确性。本申请技术方案可以应用于任意对象排序场景中。例如,本申请技术方案可以应用于对员工的绩效排序场景中,电子设备可以根据员工(如企业的员工)以及员工参与的子项目等生成知识图谱(即任务知识图谱),并结合项目知识图谱、员工以及员工所参与的子项目的相关执行信息(执行时间偏差、执行数据等)得到员工的目标特征向量,并基于该目标特征向量对多个员工进行排序,得到排序结果。又如,本申请技术方案可以应用于对集群中运行任务的重要性排序场景中,电子设备可以根据运行任务以及该运行任务所执行的任务事件(如获取业务数据)等生成任务知识图谱,并结合任务知识图谱、运行任务以及运行任务所执行的任务事件的相关执行信息(执行时间偏差、执行数据等)得到运行任务的目标特征向量,并基于该目标特征向量对多个运行任务进行排序,得到排序结果。此处对应用的对象排序场景不做限定,即对涉及的对象和任务(子任务)的具体类型不做限定。为了便于阐述,除非特别指明,后续所提及的对象排序方法均已对员工的绩效排序场景为例进行说明。In some embodiments, the electronic device may execute the method for sorting objects according to actual business requirements, so as to improve the efficiency of sorting objects and the accuracy of sorting results. The technical solution of the present application can be applied to any object sorting scenario. For example, the technical solution of this application can be applied to the scenario of sorting the performance of employees, and the electronic device can generate a knowledge map (ie, a task knowledge map) based on the employee (such as an employee of an enterprise) and the sub-projects that the employee participates in, and combine the project knowledge map , employees, and the relevant execution information of the sub-projects that employees participate in (execution time deviation, execution data, etc.) to obtain the employee's target feature vector, and sort multiple employees based on the target feature vector to obtain the sorting result. As another example, the technical solution of the present application can be applied to the scenario of sorting the importance of running tasks in the cluster, and the electronic device can generate a task knowledge map according to the running tasks and the task events (such as obtaining business data) executed by the running tasks, and Combining the task knowledge graph, running tasks, and related execution information (execution time deviation, execution data, etc.) of the task events executed by the running tasks to obtain the target feature vector of the running task, and sort multiple running tasks based on the target feature vector, Get sorted results. Here, there is no limitation on the object sorting scenario of the application, that is, no limitation on the specific types of the involved objects and tasks (subtasks). For the sake of illustration, unless otherwise specified, the object sorting methods mentioned later have all taken the performance sorting scenario of employees as an example.
可以理解的是,上述场景仅是作为示例,并不构成对于本申请实施例提供的技术方案的应用场景的限定,本申请的技术方案还可应用于其他场景。例如,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。It can be understood that the above scenarios are only examples, and do not constitute limitations on the application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, those skilled in the art know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
基于上述的描述,本申请实施例提出了一种对象排序方法,该方法可以由上述提及的电子设备来执行。如图1所示,本申请实施例的对象排序方法的流程可以包括如下:Based on the above description, an embodiment of the present application proposes a method for sorting objects, which can be executed by the above-mentioned electronic device. As shown in Figure 1, the process of the object sorting method in the embodiment of the present application may include the following:
S101、获取任务包括的各个子任务的执行时间偏差。S101. Obtain the execution time deviation of each subtask included in the task.
其中,任务以及各个子任务可以是任意与对象相关联的事件,对象可以是任意需要进行排序的对象。任务可以有一个或多个,一个任务包括的各个子任务可以有一个或多个。例如,若对象为企业的员工时,任务可以是企业的项目,子任务可以是项目中的子项目;若对象为集群中的运行任务时,任务可以是运行任务在运行时所请求的集群节点(如业务数据库),子任务可以是运行任务在请求集群节点时所执行的任务事件。Wherein, the task and each subtask may be any event associated with the object, and the object may be any object that needs to be sorted. There can be one or more tasks, and one or more subtasks included in a task. For example, if the object is an employee of an enterprise, the task can be a project of the enterprise, and the subtask can be a subproject in the project; if the object is a running task in a cluster, the task can be the cluster node requested by the running task at runtime (such as a business database), a subtask can be a task event executed when a running task requests a cluster node.
在一个可能的实施方式中,电子设备可以从数据库中获取任务对应的执行记录,该执行记录中存储有任务包括的各个子任务的实际执行时间和预期执行时间,并基于该各个子任务的实际执行时间和预期执行时间确定各个子任务的执行时间偏差;或者也可以是从任务知识图谱中获取各个子任务的实际执行时间和预期执行时间,例如,在任务知识图谱中查找各个子任务的实体对应的节点,并从节点属性中获取所存储的信息。因此,电子设备获取任务包括的各个子任务的执行时间偏差具体可以是,获取任务包括的各个子任务的实际执行时间和各个子任务的预期执行时间,计算各个子任务的实际执行时间和各个子任务的预期执行时间之间的差值,根据各个子任务的实际执行时间和各个子任务的预期执行时间之间的差值,确定各个子任务的执行时间偏差。具体可以是,直接将各个子任务的实际执行时间和各个子任务的预期执行时间之间的差值确定为各个子任务的执行时间偏差。其中,该执行时间偏差用于衡量对象所执行的子任务的执行情况,该子任务的执行情况影响对象的排序结果,即在对对象进行排序时,会结合子任务的执行时间偏差。一个对象可以执行一个或一个以上的子任务,一个子任务可以由一个或一个以上的对象执行。可选的,可以是先确定待排序的对象集合(可以只是多个),并确定该待排序的对象集合中每个对象所执行的子任务,并获取该每个对象所执行的子任务的执行时间偏差。In a possible implementation, the electronic device can obtain the execution record corresponding to the task from the database, the execution record stores the actual execution time and expected execution time of each subtask included in the task, and based on the actual execution time of each subtask Execution time and expected execution time determine the execution time deviation of each subtask; or it can also obtain the actual execution time and expected execution time of each subtask from the task knowledge map, for example, find the entity of each subtask in the task knowledge map corresponding node, and obtain the stored information from the node properties. Therefore, the acquisition of the execution time deviation of each subtask included in the task by the electronic device may be specifically, acquiring the actual execution time of each subtask included in the task and the expected execution time of each subtask, and calculating the actual execution time of each subtask and the expected execution time of each subtask. The difference between the expected execution times of the tasks is to determine the execution time deviation of each subtask according to the difference between the actual execution time of each subtask and the expected execution time of each subtask. Specifically, the difference between the actual execution time of each subtask and the expected execution time of each subtask may be directly determined as the execution time deviation of each subtask. Wherein, the execution time deviation is used to measure the execution status of the subtask executed by the object, and the execution status of the subtask affects the sorting result of the object, that is, when sorting the objects, the execution time deviation of the subtask will be combined. An object can perform one or more subtasks, and a subtask can be performed by one or more objects. Optionally, it is possible to first determine the set of objects to be sorted (may be multiple), and determine the subtasks performed by each object in the set of objects to be sorted, and obtain the subtasks performed by each object Execution time skew.
S102、根据任务知识图谱确定任务关联的多个对象中每个对象的重要程度数据。S102. Determine the importance degree data of each of the multiple objects associated with the task according to the task knowledge graph.
其中,上述任务知识图谱包括每个对象的实体和各个子任务的实体,可选的,还可以包括各个子任务所属的任务的实体,即任务知识图谱中可以存在多个对象的实体、多个任务的实体和多个子任务的实体,以及对象之间可以存在连接关系,多个任务之间可以存在连接关系,多个子任务之间可以存在连接关系,对象与任务之间可以存在连接关系,对象与子任务之间可以存在连接关系,任务与子任务之间可以存在连接关系。例如,每个对象与各个子任务中该每个对象所执行的子任务之间存在连接关系,可选的,还可以存在各个子任务与所属任务之间的连接关系,以及还可以存在任务与关联的对象之间的连接关系(执行任务包括的各个子任务的对象则可作为该任务关联的多个对象)。Wherein, the above-mentioned task knowledge map includes the entity of each object and the entity of each subtask. Optionally, it may also include the entity of the task to which each subtask belongs, that is, there may be multiple object entities, multiple The entity of the task and the entity of multiple subtasks, as well as the connection relationship between objects, the connection relationship between multiple tasks, the connection relationship between multiple subtasks, the connection relationship between objects and tasks, the object There can be a connection relationship with a subtask, and there can be a connection relationship between a task and a subtask. For example, there is a connection relationship between each object and the subtasks executed by each object in each subtask. Optionally, there may also be a connection relationship between each subtask and the task it belongs to, and there may also be a connection relationship between tasks and The connection relationship between the associated objects (the objects that execute the subtasks included in the task can be used as multiple objects associated with the task).
在一个可能的实施方式中,电子设备根据任务知识图谱确定任务关联的多个对象中每个对象的重要程度数据具体可以是,利用PageRank算法(一种用于对有向连接图中的节点的重要程度排序的算法)得到任务知识图谱中每个实体在任务知识图谱中的重要程度,将每个对象的实体的重要程度作为每个对象的重要程度数据;或者也可以是,利用PageRank算法获取每个对象的实体在任务知识图谱中的重要程度,以及每个子任务的实体在任务知识图谱中的重要程度,根据每个对象的实体的重要程度以及每个对象所执行的子任务的实体的重要程度确定每个对象的重要程度数据,例如可以是将每个对象的实体的重要程度与每个对象所执行的子任务的实体的重要程度的比值作为每个对象的重要程度数据。该重要程度数据可以用于评估对象的重要性,具体可以是用于评估在所执行的子任务中的重要性,即每个对象的重要程度数据可以用于表示每个对象在所执行的子任务中的重要程度数据,每个对象在所执行的不同子任务中的重要程度数据可以相同也可以不同,该对象在所执行的子任务中的重要性影响对象的排序结果,即在进行对象排序时,会结合对象在所执行的子任务中的重要性。In a possible implementation, the electronic device determines the importance data of each of the multiple objects associated with the task according to the task knowledge graph, specifically, by using the PageRank algorithm (a method used to classify nodes in a directed connection graph) Importance ranking algorithm) to obtain the importance of each entity in the task knowledge graph, and use the importance of each object's entity as the importance data of each object; or, use the PageRank algorithm to obtain The importance of the entity of each object in the task knowledge graph, and the importance of the entity of each subtask in the task knowledge graph, according to the importance of the entity of each object and the entity of the subtask performed by each object The importance determines the importance data of each object, for example, the ratio of the importance of the entity of each object to the importance of the entity of the subtask executed by each object may be used as the importance data of each object. The importance degree data can be used to evaluate the importance of the object, specifically, it can be used to evaluate the importance in the executed subtask, that is, the importance degree data of each object can be used to represent the importance of each object in the executed subtask Importance data in the task. The importance data of each object in the different subtasks executed can be the same or different. The importance of the object in the executed subtasks affects the sorting results of the objects. When sorting, the importance of the object in the subtask being performed is combined.
S103、获取每个对象对对象执行的子任务的执行数据以及执行的子任务关联的其他对象反馈的对对象的任务执行分析信息。S103. Obtain the execution data of the subtasks executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtasks.
例如,对象1执行了子任务1,则获取对象1对执行的子任务1的执行数据,以及执行子任务1的对象还有对象2和对象3,即对于对象1而言,该执行的子任务1关联的其他对象为对象2和对象3,因此获取执行的子任务1关联的其他对象(对象2和对象3中的部分或全部对象)反馈的对对象1的任务执行分析信息。For example, if object 1 executes subtask 1, the execution data of object 1 on the executed subtask 1 is obtained, and the objects that execute subtask 1 also include object 2 and object 3, that is, for object 1, the executed subtask The other objects associated with task 1 are object 2 and object 3, so the task execution analysis information on object 1 fed back by other objects (part or all of objects in object 2 and object 3) associated with the executed subtask 1 is obtained.
在一些实施例中,电子设备可以从数据库中获取任务对应的执行记录,该执行记录中存储有任务包括的各个子任务所关联的每个对象在执行子任务时的执行数据以及关联的其他对象反馈的对该对象的任务执行分析信息,即对于执行子任务的多个对象来说,任务对应的执行记录包含多个对象中每个对象在执行该子任务期间产生的执行数据,以及多个对象中的其他对象对该对象在执行子任务期间所反馈的任务执行分析信息。In some embodiments, the electronic device can obtain the execution record corresponding to the task from the database, and the execution record stores the execution data of each object associated with each subtask included in the task when executing the subtask and other associated objects. Feedback task execution analysis information for this object, that is, for multiple objects executing subtasks, the execution record corresponding to the task contains the execution data generated by each object during the execution of the subtask, and multiple The task execution analysis information fed back by other objects in the object during the execution of the subtask.
在一个实施例中,以对象为员工为例,执行数据可以表示对象在执行子任务期间不同时期的执行情况,任务执行分析信息可以表示其他对象针对执行情况所反馈的评价情况。例如,执行数据具体可以是员工A在执行子任务期间填写的工作情况记录(即不同时期的执行情况),如日报内容、周报内容等,任务执行分析信息具体可以是与该子任务关联的其他员工B对该员工A反馈的工作评价记录(即所反馈的评价情况),如对该员工A的执行数据的回复记录,或者对该员工A的工作参与度的评分等。在一个实施例中,以对象为运行任务为例,执行数据可以是运行任务在执行任务事件期间产生的运行日志,任务执行分析信息可以是执行该任务事件的其他运行任务在执行期间产生的针对该运行任务的关联运行日志等。例如,执行数据具体可以是运行任务A在执行任务事件期间生成的运行异常记录(即期间产生的运行日志),如运行任务A运行错误、运行暂停等记录,任务执行分析信息具体可以是执行该任务事件的其他运行任务B产生的针对该运行任务A的关联运行异 常记录(即产生的针对该运行任务A的关联运行日志),如因该运行任务A在运行异常时造成其他运行任务B存在运行异常等记录。此处对执行数据和任务执行分析信息的具体类型不做限制。In one embodiment, taking the object as an employee as an example, the execution data may represent the execution status of the object at different periods during the execution of subtasks, and the task execution analysis information may represent feedback feedback from other objects on the execution status. For example, the execution data can specifically be the work status records filled in by employee A during the execution of the subtask (i.e. the execution status in different periods), such as daily content, weekly report content, etc., and the task execution analysis information can be other information associated with the subtask. Employee B's work evaluation record of employee A's feedback (that is, the feedback feedback), such as the reply record of employee A's execution data, or the score of employee A's work participation, etc. In one embodiment, taking the running task as an example, the execution data may be the running log generated by the running task during the execution of the task event, and the task execution analysis information may be the data generated during the execution of other running tasks that execute the task event. The associated running log of the running task, etc. For example, the execution data may specifically be the operation exception record generated by the execution task A during the execution of the task event (that is, the operation log generated during the execution period), such as the operation error and operation suspension records of the execution task A, and the task execution analysis information may specifically be the execution of the task. The associated running exception record for the running task A generated by other running task B of the task event (that is, the associated running log for the running task A generated), such as the existence of other running tasks B caused by the abnormal running of the running task A Records of abnormal operation, etc. There is no limitation on specific types of execution data and task execution analysis information.
S104、根据执行数据和任务执行分析数据确定每个对象在对象执行的子任务中的相容性特征。S104. Determine the compatibility feature of each object in the subtask executed by the object according to the execution data and the task execution analysis data.
在一个可能的实施方式中,电子设备根据执行数据和任务执行分析数据确定每个对象在对象执行的子任务中的相容性特征可以是,获取用于表示执行数据的第一特征向量,以及用于表示任务执行分析数据的第二特征向量,根据第一特征向量和第二特征向量确定对象在执行的子任务中的相容性特征。在一个实施例中,对象在执行的子任务中的相容性特征可以用0-1的数值表示。其中,相容性特征能够用于指示对象在执行的子任务中的执行数据与其他对象对该对象反馈的任务执行分析数据是否匹配,匹配度越高,相容性特征的数值越高,反之,匹配度越低,相容性特征的数值越低。In a possible implementation manner, the electronic device may determine the compatibility feature of each object in the subtask executed by the object according to the execution data and the task execution analysis data, which may include acquiring a first feature vector used to represent the execution data, and It is used to represent the second feature vector of the task execution analysis data, and the compatibility feature of the object in the executed sub-task is determined according to the first feature vector and the second feature vector. In one embodiment, the compatibility feature of the object in the executed subtask may be represented by a numerical value of 0-1. Among them, the compatibility feature can be used to indicate whether the execution data of the object in the executed subtask matches the task execution analysis data fed back by other objects to the object. The higher the matching degree, the higher the value of the compatibility feature, and vice versa , the lower the matching degree, the lower the value of the compatibility feature.
例如,以对象为员工为例,执行数据为员工的工作情况记录,任务执行分析数据为子项目关联的其他员工对该员工的工作评价记录,通过员工的工作情况记录对应的第一特征向量和其他员工对该员工的工作评价记录对应的第二特征向量得到员工在该子项目的相容性特征,该相容性特征表示该员工的工作情况记录与工作评价记录的一致性,若相容性特征越高,表明在该子项目的参与中,员工的工作情况所表征的工作表现与其他反馈的工作评价所表征的工作表现越一致,反之则越不一致,后续在对员工进行绩效排序时,相容性特征越高的员工绩效排名靠前的可能性就越高。For example, taking the object as an employee, the execution data is the record of the employee’s work situation, and the task execution analysis data is the work evaluation record of the employee by other employees associated with the sub-project. The corresponding first eigenvector and The second eigenvector corresponding to the employee’s work evaluation record of other employees obtains the compatibility feature of the employee in this sub-item, and the compatibility feature indicates the consistency between the employee’s work record and the job evaluation record. If the compatibility The higher the sexual characteristics, the more consistent the work performance represented by the employee’s work situation and the work performance represented by other feedback job evaluations are in the participation of this sub-item, and vice versa. , employees with higher compatibility characteristics are more likely to be ranked high in performance.
S105、根据任务知识图谱确定每个对象的表征向量和各个子任务的表征向量。S105. Determine the representation vector of each object and the representation vectors of each subtask according to the task knowledge map.
在一个可能的实施方式中,电子设备根据任务知识图谱确定每个对象的表征向量和各个子任务的表征向量具体可以是,根据任务知识图谱获取每个对象的实体、各个子任务的实体以及对象与子任务之间的关系;调用翻译距离模型以根据每个对象的实体、各个子任务的实体,以及对象与子任务之间的关系得到每个对象的表征向量以及各个子任务的表征向量。In a possible implementation, the electronic device determines the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph. Specifically, the entity of each object, the entity of each subtask, and the object and the relationship between the subtasks; the translation distance model is invoked to obtain the characterization vector of each object and the characterization vectors of each subtask according to the entity of each object, the entity of each subtask, and the relationship between the object and the subtask.
其中,翻译距离模型可以是TransE(Translation embeddings for modeling multi-relation data,多元关系数据嵌入)模型,因此电子设备根据每个对象的实体、各个子任务的实体,以及对象与子任务之间的关系并利用翻译距离模型得到每个对象的表征向量以及各个子任务的表征向量具体可以是,根据每个对象的实体、各个子任务的实体,以及以及对象与子任务之间的关系构建多个三元组,该多个三元组均由第一实体、第二实体以及第一实体与第二实体之间的关系确定,该第一实体可以是每个对象中任一对象,第二实体可以是该对象执行过的子任务,因此三元组可以为(对象,关系,子任务),将多个三元组中的第一实体、第二实体和关系均映射到目标向量空间中,得到第一实体的映射向量、第二实体的映射向量,以及关系的映射向量,通过不断在目标向量空间中调整第一实体的映射向量、第二实体的映射向量,以及关系的映射向量,以使得每个三元组中的第一实体的映射向量、第二实体的映射向量,以及关系的映射向量满足预设关系,将满足预设关系时的第一实体的映射向量作为对象的表征向量,满足预设关系时的第二实体的映射向量作为对象的子任务的表征向量。可选的,该预设关系可以是第一实体的映射向量与关系的映射向量的和向量近似于第二实体的映射向量,因此可以将每个三元组(对象,关系,子任务)中的关系看做从对象实体到子任务实体的翻译。Among them, the translation distance model can be a TransE (Translation embeddings for modeling multi-relation data, multi-relational data embedding) model, so the electronic device can And use the translation distance model to obtain the representation vector of each object and the representation vector of each subtask. Specifically, it can be constructed according to the entity of each object, the entity of each subtask, and the relationship between the object and the subtask. tuples, the multiple triples are determined by the first entity, the second entity and the relationship between the first entity and the second entity, the first entity can be any object in each object, and the second entity can be is the subtask executed by the object, so the triplet can be (object, relationship, subtask), and the first entity, the second entity and the relationship in multiple triplets are mapped to the target vector space, and get The mapping vector of the first entity, the mapping vector of the second entity, and the mapping vector of the relationship, by constantly adjusting the mapping vector of the first entity, the mapping vector of the second entity, and the mapping vector of the relationship in the target vector space, so that The mapping vector of the first entity, the mapping vector of the second entity, and the mapping vector of the relationship in each triple group satisfy the preset relationship, and the mapping vector of the first entity when the preset relationship is satisfied is used as the representation vector of the object, The mapping vector of the second entity when the preset relationship is satisfied is used as the representation vector of the subtask of the object. Optionally, the preset relationship may be that the sum vector of the mapping vector of the first entity and the mapping vector of the relationship is similar to the mapping vector of the second entity, so each triplet (object, relationship, subtask) can be The relationship of is seen as the translation from the object entity to the subtask entity.
S106、根据执行时间偏差、重要程度数据、相容性特征、每个对象的表征向量和各个子任务的表征向量,确定每个对象的目标特征向量。S106. Determine the target feature vector of each object according to the execution time deviation, the importance level data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
在一个可能的实施方式中,电子设备根据执行时间偏差、重要程度数据、相容性特征、每个对象的表征向量和各个子任务的表征向量,确定每个对象的目标特征向量具体可以是, 确定每个对象所执行的所有子任务,基于执行时间偏差、重要程度数据、相容性特征和该所有子任务中每个子任务的表征向量得到每个子任务的初始特征向量,根据每个对象的表征向量以及该对象所执行的每个子任务的初始特征向量,得到每个对象的目标特征向量。In a possible implementation manner, the electronic device determines the target feature vector of each object according to the execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vector of each subtask. Specifically, it may be: Determine all subtasks performed by each object, and obtain the initial feature vector of each subtask based on the execution time deviation, importance data, compatibility features and the characterization vector of each subtask in all subtasks, and obtain the initial feature vector of each subtask according to the The representation vector and the initial feature vector of each subtask performed by the object are obtained to obtain the target feature vector of each object.
其中,电子设备基于执行时间偏差、重要程度数据、相容性特征和该所有子任务中每个子任务的表征向量得到每个子任务的初始特征向量具体可以是,根据每个子任务的执行时间偏差,对象在每个子任务中的重要程度数据,对象在每个子任务中的相容性特征以及每个子任务的表征向量的乘积,得到每个子任务的初始特征向量。Wherein, the electronic device obtains the initial feature vector of each subtask based on the execution time deviation, the importance data, the compatibility feature and the characterization vector of each subtask in all the subtasks. Specifically, according to the execution time deviation of each subtask, The product of the importance data of the object in each subtask, the compatibility feature of the object in each subtask and the characterization vector of each subtask is obtained to obtain the initial feature vector of each subtask.
在一些实施例中,根据每个对象的表征向量以及该对象所执行的每个子任务的初始特征向量,得到每个对象的目标特征向量具体可以是,对象所执行的每个子任务的初始特征向量求和,得到每个对象的目标初始特征向量,并根据每个对象的表征向量和每个对象的目标初始特征向量得到每个对象的目标特征向量。其中,根据每个对象的表征向量和每个对象的目标初始特征向量得到每个对象的目标特征向量可以是将表征向量和目标初始特征向量的和向量作为目标特征向量,也可以是将表征向量与目标初始特征向量的向量积作为目标特征向量。In some embodiments, according to the characterization vector of each object and the initial feature vector of each subtask performed by the object, the target feature vector of each object can be obtained specifically, the initial feature vector of each subtask performed by the object The summation is obtained to obtain the target initial feature vector of each object, and the target feature vector of each object is obtained according to the representation vector of each object and the target initial feature vector of each object. Wherein, according to the characterization vector of each object and the target initial eigenvector of each object, the target eigenvector of each object can be obtained by using the sum vector of the characterization vector and the target initial eigenvector as the target eigenvector, or by using the characterization vector The vector product with the target initial feature vector is used as the target feature vector.
S107、根据每个对象的目标特征向量对多个对象进行排序,得到排序结果。S107, sort the multiple objects according to the target feature vector of each object, and obtain a sorting result.
在一个可能实施方式中,电子设备根据每个对象的目标特征向量对多个对象进行排序,得到排序结果具体可以是,将多个对象构建为多个对象组合,并根据每个对象的目标特征向量确定多个对象组合中每个对象组合之间的差向量,按照每个对象组合之间的差向量对多个对象进行排序,得到排序结果。其中,对象组合为多个对象中的任意两个对象,即在多个对象中每两个对象组成一个对象组合。In a possible implementation, the electronic device sorts the multiple objects according to the target feature vector of each object, and obtaining the sorting result may specifically include constructing the multiple objects into multiple object combinations, and according to the target feature vector of each object The vector determines a difference vector between each object combination in the multiple object combinations, sorts the multiple objects according to the difference vector between each object combination, and obtains a sorting result. Wherein, the object combination is any two objects in the plurality of objects, that is, every two objects in the plurality of objects form an object combination.
可选的,电子设备根据每个对象组合之间的差向量对多个对象进行排序,得到排序结果可以是,根据每个对象组合之间的差向量,确定每个对象组合内的对象排序结果,并根据每个对象组合内的对象排序结果对多个对象进行排序,得到多个对象的排序结果。例如,多个对象包括对象1、对象2和对象3,构建得到的对象组合为组合1(对象1,对象2)、组合2(对象2,对象3)、组合3(对象1,对象3),根据组合1中每个对象的目标特征向量确定组合1之间的差向量1,并根据该差向量1确定该组合1内的对象排序结果为对象2、对象1,根据组合2中每个对象的目标特征向量确定组合2之间的差向量2,并根据该差向量2确定该组合2内的对象排序结果为对象2、对象3,根据组合3中每个对象的目标特征向量确定组合3之间的差向量3,并根据差向量3确定该组合3内的对象排序结果为对象3、对象1,因此根据每个对象组合内的对象排序结果对多个对象进行排序,得到的多个对象的排序结果为对象2、对象3、对象1。Optionally, the electronic device sorts the multiple objects according to the difference vector between each object combination, and obtaining the sorting result may be, according to the difference vector between each object combination, determining the sorting result of the objects in each object combination , and sort the multiple objects according to the sorting results of the objects in each object combination to obtain the sorting results of the multiple objects. For example, multiple objects include object 1, object 2, and object 3, and the constructed object combinations are combination 1 (object 1, object 2), combination 2 (object 2, object 3), combination 3 (object 1, object 3) , according to the target feature vector of each object in combination 1, determine the difference vector 1 between combination 1, and according to the difference vector 1, determine the sorting result of the objects in combination 1 as object 2, object 1, and according to each of combination 2 The target feature vector of the object determines the difference vector 2 between the combination 2, and according to the difference vector 2, it is determined that the object sorting result in the combination 2 is object 2 and object 3, and the combination is determined according to the target feature vector of each object in the combination 3 The difference vector 3 between 3, and according to the difference vector 3, it is determined that the object sorting result in the combination 3 is object 3 and object 1, so multiple objects are sorted according to the object sorting result in each object combination, and more The sorting result of objects is object 2, object 3, object 1.
本申请实施例中,电子设备可以获取任务包括的各个子任务的执行时间偏差,根据任务知识图谱确定任务关联的多个对象中每个对象的重要程度数据,获取每个对象对对象执行的子任务的执行数据以及执行的子任务关联的其他对象反馈的对对象的任务执行分析信息,根据执行数据和任务执行分析数据确定每个对象在对象执行的子任务中的相容性特征,根据任务知识图谱确定每个对象的表征向量和各个子任务的表征向量,根据执行时间偏差、重要程度数据、相容性特征、每个对象的表征向量和各个子任务的表征向量,确定每个对象的目标特征向量,根据每个对象的目标特征向量对多个对象进行排序,得到排序结果。通过实施本申请实施例所提出的方法,可以生成包含对象以及对象相关联的任务的任务知识图谱,并结合任务知识图谱、对象以及任务对多个对象进行排序,可以使得排序时使用的数据较为全面,以及提高了针对对象的排序效率和所得到的排序结果的准确性。In the embodiment of the present application, the electronic device can obtain the execution time deviation of each subtask included in the task, determine the importance data of each of the multiple objects associated with the task according to the task knowledge map, and obtain the subtask performed by each object on the object. The execution data of the task and the task execution analysis information of the object fed back by other objects associated with the executed sub-task, determine the compatibility characteristics of each object in the sub-task executed by the object according to the execution data and task execution analysis data, according to the task The knowledge map determines the characterization vector of each object and the characterization vector of each subtask, and determines the The target feature vector is used to sort multiple objects according to the target feature vector of each object to obtain the sorting result. By implementing the method proposed in the embodiment of the present application, a task knowledge graph including objects and tasks associated with objects can be generated, and multiple objects can be sorted in combination with the task knowledge graph, objects, and tasks, so that the data used in sorting can be compared. Comprehensive, and improve the efficiency of object-based sorting and the accuracy of the resulting sorting results.
请参见图2,图2为本申请实施例提供的一种对象排序方法的流程示意图,该方法可以由上述提及的电子设备执行。如图2所示,本申请实施例中对象排序方法的流程可以包括如下:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of a method for sorting objects provided by an embodiment of the present application, and the method may be executed by the electronic device mentioned above. As shown in Figure 2, the process of the object sorting method in the embodiment of the present application may include the following:
S201、获取任务包括的各个子任务的执行时间偏差。S201. Obtain the execution time deviation of each subtask included in the task.
在一些实施例中,电子设备可以根据子任务的实际执行时间和预期执行时间确定执行时间偏差,具体可以是,获取任务包括的各个子任务的实际执行时间和各个子任务的预期执行时间,计算各个子任务的实际执行时间和各个子任务的预期执行时间之间的差值,根据各个子任务的实际执行时间和各个子任务的预期执行时间之间的差值,确定各个子任务的执行时间偏差。其中,可以是各个子任务的实际执行时间和各个子任务的预期执行时间之间的差值作为将确定各个子任务的执行时间偏差。例如,子任务j的实际执行时间为DT j,预期执行时间为T j,因此子任务j的执行时间偏差可以为diff j=DT j-T jIn some embodiments, the electronic device may determine the execution time deviation according to the actual execution time and expected execution time of the subtasks. Specifically, the actual execution time of each subtask included in the task and the expected execution time of each subtask may be obtained, and the calculation The difference between the actual execution time of each subtask and the expected execution time of each subtask, according to the difference between the actual execution time of each subtask and the expected execution time of each subtask, determine the execution time of each subtask deviation. Wherein, the difference between the actual execution time of each subtask and the expected execution time of each subtask may be used as the execution time deviation of each subtask to be determined. For example, the actual execution time of subtask j is DT j , and the expected execution time is T j , so the execution time deviation of subtask j may be diff j =DT j −T j .
S202、根据任务知识图谱确定任务关联的多个对象中每个对象的重要程度数据。S202. Determine the importance degree data of each of the multiple objects associated with the task according to the task knowledge graph.
在一个可能的实施方式中,以对象为员工为例,电子设备构建任务知识图谱的方式可以是,从企业信息中抽取多个企业员工,以及抽取与该多个企业员工关联的项目(任务),以及抽取项目隶属的子项目(子任务),根据员工之间的关系、员工与项目之间的关系,员工与子项目之间的关系,项目与子项目之间的关系,以及子项目之间的关系构建任务知识图谱,例如所构建的任务知识图谱可以如图3所示;其中,员工之间的关系可以用于指示员工之间的上下级关系,子项目之间的关系可以用于指示同一项目下的多个子项目的依赖关系。例如,项目包括子项目A、子项目B和子项目C,若需先完成子项目A才能完成子项目B,则子项目A是子项目B的前置子项目,即子项目A为子项目B依赖的子项目,以及若先完成子项目B才能完成子项目C,则子项目B是子项目C的前置子项目,子项目C的所有前置子项目为子项目A和子项目B,即子项目A和子项目B为子项目C依赖的子项目。In a possible implementation, taking the object as an employee as an example, the electronic device may construct a task knowledge map by extracting multiple enterprise employees from enterprise information, and extracting items (tasks) associated with the multiple enterprise employees , and extract the sub-projects (sub-tasks) to which the project belongs, according to the relationship between employees, the relationship between employees and projects, the relationship between employees and sub-projects, the relationship between projects and sub-projects, and the relationship between sub-projects The relationship between constructing task knowledge graph, for example, the constructed task knowledge graph can be shown in Figure 3; among them, the relationship between employees can be used to indicate the superior-subordinate relationship between employees, and the relationship between sub-projects can be used for Indicates dependencies of multiple subprojects under the same project. For example, a project includes subproject A, subproject B, and subproject C. If subproject A needs to be completed before subproject B can be completed, subproject A is the predecessor subproject of subproject B, that is, subproject A is subproject B. Dependent subprojects, and if subproject B can be completed before subproject C is completed, then subproject B is the predecessor subproject of subproject C, and all the predecessor subprojects of subproject C are subproject A and subproject B, namely Subproject A and Subproject B are subprojects that Subproject C depends on.
可选的,任务知识图谱中还可以融入组织架构,如员工所属部门等。可选的,电子设备可以从企业信息中获取实时项目信息或实时员工信息等,并对任务知识图谱进行实时更新,以使得可以提高根据该任务知识图谱得到的员工绩效排名的时效性。后续,电子设备可以结合融入了企业员工相关信息和项目相关信息的任务知识图谱以及员工参与的子项目的相关工作情况动态调整员工的绩效排名,可以提高对员工排序的效率和准确性。Optionally, the task knowledge map can also be integrated into the organizational structure, such as the department to which the employee belongs. Optionally, the electronic device can obtain real-time project information or real-time employee information from enterprise information, and update the task knowledge map in real time, so that the timeliness of the employee performance ranking obtained according to the task knowledge map can be improved. In the future, the electronic device can dynamically adjust the performance ranking of employees by combining the task knowledge map that integrates the relevant information of enterprise employees and project-related information and the relevant work status of the sub-projects that employees participate in, which can improve the efficiency and accuracy of employee ranking.
在一个可能的实施方式中,电子设备根据任务知识图谱确定任务关联的多个对象中每个对象的重要程度数据具体可以是,利用PageRank算法计算得到任务知识图谱中每个实体在任务知识图谱中的重要程度,并将每个对象的实体的重要程度作为重要程度数据。其中,利用PageRank算法计算得到任务知识图谱中每个实体在任务知识图谱中的重要程度具体可以是,根据任务知识图谱构建包含每个实体的连接关系的邻接矩阵,该邻接矩阵表示每个实体之间是否存在连接关系,以及连接关系指向的方向,设每个实体的初始重要程度为1,则根据该邻接矩阵生成包含每个实体的转移矩阵,即可以是将邻接矩阵中的每一行数值做归一化处理得到转移矩阵,该转移矩阵中每一行的值之和为1,根据转移矩阵构建针对每个实体的方程组,该方程组为多个关于实体的函数,可以通过该方程组求解得到每个实体的重要程度。In a possible implementation manner, the electronic device determines the importance data of each of the multiple objects associated with the task according to the task knowledge map. Specifically, the PageRank algorithm is used to calculate the value of each entity in the task knowledge map. , and use the importance of the entity of each object as the importance data. Wherein, using the PageRank algorithm to calculate the importance of each entity in the task knowledge graph can be specifically constructed by constructing an adjacency matrix containing the connection relationship of each entity according to the task knowledge graph, and the adjacency matrix represents the relationship between each entity. Whether there is a connection relationship between them, and the direction of the connection relationship, set the initial importance of each entity as 1, then generate a transition matrix containing each entity according to the adjacency matrix, that is, the value of each row in the adjacency matrix can be made The normalization process obtains a transfer matrix, the sum of the values of each row in the transfer matrix is 1, and a system of equations for each entity is constructed according to the transfer matrix, which is a plurality of functions about entities, which can be solved through the system of equations Get the importance of each entity.
例如,如图4a-图4b所示,图4a-图4b为本申请实施例提供的一种确定重要程度数据的场景示意图,设图4a为任务知识图谱,包含的实体为①-⑥,根据任务知识图谱构建包含每个实体的连接关系的邻接矩阵可以参见图4b(1),使用邻接矩阵的形式表述实体之间的连接关系,如矩阵[①][⑥]=1表示从实体①到实体⑥有连接关系且由实体①指向实体⑥,设每个实体的初始重要程度为1,因此根据该邻接矩阵生成的转移矩阵可以参见图4b(2),其中转移矩阵中每一行的值的总和=1,根据转移矩阵构建的方程组可以参见图4b(3),通过求解该方程组得到每个实体的重要程度,进而可以得到每个对象的重要程度数据。For example, as shown in Figure 4a-Figure 4b, Figure 4a-Figure 4b is a schematic diagram of a scene for determining the importance level data provided by the embodiment of the present application, let Figure 4a be a task knowledge map, and the entities contained are ①-⑥, according to The task knowledge map constructs an adjacency matrix that contains the connection relationship of each entity, as shown in Figure 4b(1). The connection relationship between entities is expressed in the form of an adjacency matrix. For example, matrix [①][⑥]=1 means from entity ① to Entity ⑥ has a connection relationship and is directed from entity ① to entity ⑥. The initial importance of each entity is set to 1, so the transition matrix generated according to the adjacency matrix can be seen in Figure 4b(2), where the value of each row in the transition matrix is The sum=1, the equation system constructed according to the transfer matrix can be seen in Fig. 4b(3), the importance degree of each entity can be obtained by solving the equation system, and then the importance degree data of each object can be obtained.
S203、获取每个对象对对象执行的子任务的执行数据以及执行的子任务关联的其他对象反馈的对对象的任务执行分析信息。其中,步骤S202-S203的具体实施方式可以参见步骤S102-S103的相关描述,此处不再赘述。S203. Obtain the execution data of the subtasks executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtasks. Wherein, for specific implementation manners of steps S202-S203, reference may be made to relevant descriptions of steps S102-S103, which will not be repeated here.
S204、根据执行数据和任务执行分析数据。S204. Analyze data according to execution data and task execution.
在一个可能的实施方式中,电子设备根据执行数据和任务执行分析数据确定每个对象在对象执行的子任务中的相容性特征具体可以是,对执行数据进行向量化处理,得到执行数据对应的第一特征向量,对任务执行分析数据进行向量化处理,得到任务执行分析数据对应的第二特征向量,将第一特征向量和第二特征向量输入分类模型,得到每个对象在对象执行的子任务中的相容性特征。其中,对执行数据进行向量化处理可以是将执行数据输入BERT(Bidirectional Encoder Representation from Transformers,模型器的双向编码器)模型,得到第一特征向量,对任务执行分析数据进行向量化处理可以是将任务执行分析数据输入BERT模型,得到第二特征向量。In a possible implementation, the electronic device determines the compatibility characteristics of each object in the subtasks executed by the object according to the execution data and the task execution analysis data. Specifically, the execution data may be vectorized to obtain the corresponding The first eigenvector of the task execution analysis data is vectorized to obtain the second eigenvector corresponding to the task execution analysis data, and the first eigenvector and the second eigenvector are input into the classification model to obtain the performance of each object in the object execution Compatibility traits in subtasks. Among them, vectorizing the execution data can be inputting the execution data into the BERT (Bidirectional Encoder Representation from Transformers, bidirectional encoder of the modeler) model to obtain the first feature vector, and vectorizing the task execution analysis data can be The task execution analysis data is input into the BERT model to obtain the second feature vector.
可选的,该分类模型可以是sigmoid神经网络模型,因此对象i在子任务j中的相容性特征可以为:
Figure PCTCN2022071276-appb-000001
其中,σ为sigmoid神经网络模型,M为该模型中的模型参数,具体可以是M为双线性参数矩阵,rV i j为对象i在子任务j中的执行数据对应的第一特征向量,dV i j为在子任务j中其他对象对对象i反馈的任务执行分析数据对应的第二特征向量。
Optionally, the classification model can be a sigmoid neural network model, so the compatibility feature of object i in subtask j can be:
Figure PCTCN2022071276-appb-000001
Among them, σ is a sigmoid neural network model, M is a model parameter in the model, specifically M can be a bilinear parameter matrix, rV i j is the first eigenvector corresponding to the execution data of object i in subtask j, dV i j is the second feature vector corresponding to the task execution analysis data fed back by other objects to object i in subtask j.
S205、根据任务知识图谱确定每个对象的表征向量和各个子任务的表征向量。S205. Determine the representation vector of each object and the representation vectors of each subtask according to the task knowledge graph.
在一个可能的实施方式中,电子设备根据任务知识图谱确定每个对象的表征向量和各个子任务的表征向量具体可以是,从任务知识图谱中获取每个对象的实体和各个子任务的实体,对每个对象的实体和各个子任务的实体分别进行向量表示,得到每个对象的词向量和各个子任务的词向量,对每个对象的词向量和各个子任务的词向量进行加权处理,得到每个对象的关系映射向量和各个子任务的关系映射向量,将每个对象的关系映射向量确定为每个对象的表征向量,并将各个子任务的关系映射向量确定为各个子任务的表征向量。其中,电子设备对每个对象的实体和各个子任务的实体分别进行向量表示可以是,预先建立向量字典,字典中存储了词向量与实体之间的对应关系,向量字典中实体的词义相近,则实体的词向量之间的距离也是相近的,因此可以基于向量字典对每个对象的实体和各个子任务的实体分别进行向量表示,或者,可以使用word2vec工具构建词向量模型,并对词向量模型进行训练,使得训练后的词向量模型可以输出每个实体对应的词向量,且词义越相近的实体对应的词向量距离越近,因此可以将每个对象的实体和各个子任务的实体分别输入至训练完成的词向量模型中,由词向量模型进行向量表示并输出每个对象的词向量和各个子任务的词向量;该词向量距离可以指向量间的汉明距离、欧式距离等。In a possible implementation manner, the electronic device determines the characterization vector of each object and the characterization vector of each subtask according to the task knowledge graph. Specifically, the entity of each object and the entity of each subtask are obtained from the task knowledge graph, Perform vector representation on the entity of each object and the entity of each subtask, obtain the word vector of each object and the word vector of each subtask, and perform weighted processing on the word vector of each object and the word vector of each subtask, Obtain the relationship mapping vector of each object and the relationship mapping vector of each subtask, determine the relationship mapping vector of each object as the representation vector of each object, and determine the relationship mapping vector of each subtask as the representation of each subtask vector. Wherein, the electronic device performs vector representation on the entity of each object and the entity of each subtask respectively, and a vector dictionary is established in advance, and the corresponding relationship between word vectors and entities is stored in the dictionary, and the meanings of the entities in the vector dictionary are similar. The distance between the word vectors of the entities is also similar, so the entities of each object and the entities of each subtask can be represented by vectors based on the vector dictionary, or the word2vec tool can be used to build a word vector model, and the word vector The model is trained so that the trained word vector model can output the word vector corresponding to each entity, and the closer the word meaning is to the entity corresponding to the closer the word vector distance, so the entity of each object and the entity of each subtask can be separated Input to the trained word vector model, the word vector model performs vector representation and outputs the word vector of each object and the word vector of each subtask; the word vector distance can point to the Hamming distance, Euclidean distance, etc. between quantities.
在一些实施例中,电子设备对每个对象的词向量和各个子任务的词向量进行加权处理具体可以是,从任务知识图谱中确定对象与子任务之间的关系,获取该对象与子任务之间的关系对应的关系映射矩阵,利用关系映射矩阵分别对每个对象的词向量和各个子任务的词向量进行加权处理。其中,每个对象与所执行的子任务之间的关系相同,因此每个对象的词向量和各个子任务的词向量进行加权处理所使用的关系映射矩阵也相同。通过该关系对应的关系映射矩阵对每个对象的词向量和各个子任务的词向量进行加权处理可以理解为是将每个对象映射到关系所在的关系空间,以及将每个子任务映射到关系所在的关系空间。In some embodiments, the electronic device performs weighting processing on the word vector of each object and the word vector of each subtask, specifically, determining the relationship between the object and the subtask from the task knowledge map, and obtaining the object and subtask The relational mapping matrix corresponding to the relationship among them is used to weight the word vector of each object and the word vector of each subtask respectively. Wherein, the relationship between each object and the executed subtask is the same, so the relationship mapping matrix used for weighting the word vector of each object and the word vector of each subtask is also the same. Weighting the word vectors of each object and the word vectors of each subtask through the relationship mapping matrix corresponding to the relationship can be understood as mapping each object to the relationship space where the relationship is located, and mapping each subtask to the relationship where the relationship is located. relational space.
可选的,电子设备可以通过翻译距离模型得到关系对应的关系映射矩阵。可选的,该翻译距离模型可以是TransR(Learning Entity and Relation Embeddings for Knowledge Graph  Completion,实体和关系分开嵌入)模型,因此电子设备得到关系映射矩阵的具体方式可以是,对样本对象与样本子任务之间的样本关系进行向量表示,得到样本关系的样本词向量,并构建样本关系映射矩阵,利用样本关系映射矩阵对样本对象的样本词向量以及样本子任务和样本词向量进行加权处理,得到样本对象的样本表征向量以及样本子任务的样本表征向量,构建目标函数,根据目标函数并利用样本对象的样本表征向量、样本子任务的样本表征向量和样本关系的样本词向量对样本关系映射矩阵进行训练,得到上述对象与子任务之间的关系对应的关系映射矩阵;该样本对象与任务知识图谱中的对象可以相同也可以不同,样本子任务与任务知识图谱中的子任务可以相同也可以不同。即,目标函数可以为:Optionally, the electronic device may obtain a relationship mapping matrix corresponding to the relationship through the translation distance model. Optionally, the translation distance model can be a TransR (Learning Entity and Relation Embeddings for Knowledge Graph Completion, entities and relations are embedded separately) model, so the specific way for the electronic device to obtain the relationship mapping matrix can be, for the sample object and the sample subtask The sample relationship between samples is expressed as a vector, and the sample word vector of the sample relationship is obtained, and the sample relationship mapping matrix is constructed, and the sample word vector of the sample object, the sample subtask and the sample word vector are weighted by the sample relationship mapping matrix, and the sample The sample representation vector of the object and the sample representation vector of the sample subtask construct the objective function, and use the sample representation vector of the sample object, the sample representation vector of the sample subtask and the sample word vector of the sample relationship to map the sample relationship mapping matrix according to the objective function Training to obtain the relationship mapping matrix corresponding to the relationship between the above objects and subtasks; the sample object and the object in the task knowledge map can be the same or different, and the sample subtasks and the subtasks in the task knowledge map can be the same or different . That is, the objective function can be:
Figure PCTCN2022071276-appb-000002
Figure PCTCN2022071276-appb-000002
其中,h表示样本对象的样本词向量;r表示样本对象与样本子任务之间的样本关系的样本词向量;t表示样本子任务的样本词向量;h r=hM r表示样本对象的样本表征向量;M r表示样本关系映射矩阵,利用该M r对h进行加权得到h r的过程即为将样本对象的样本词向量映射到样本关系对应的样本关系空间中;t r=tM r表示样本子任务的样本表征向量;利用该M r对t进行加权得到t r的过程即为将样本子任务的样本词向量映射到样本关系对应的样本关系空间中;因此训练目的为使得对象的表征向量与关系的词向量的和向量近似等于子任务的表征向量。 Among them, h represents the sample word vector of the sample object; r represents the sample word vector of the sample relationship between the sample object and the sample subtask; t represents the sample word vector of the sample subtask; h r = hM r represents the sample representation of the sample object vector; M r represents the sample relationship mapping matrix, and the process of using this M r to weight h to obtain h r is to map the sample word vector of the sample object to the sample relation space corresponding to the sample relation; t r =tM r represents the sample The sample representation vector of the subtask; the process of using this M r to weight t to obtain t r is to map the sample word vector of the sample subtask to the sample relational space corresponding to the sample relation; therefore, the purpose of training is to make the representation vector of the object The sum vector of the word vector of the relationship is approximately equal to the representation vector of the subtask.
S206、根据执行时间偏差、重要程度数据、相容性特征、每个对象的表征向量和各个子任务的表征向量,确定每个对象的目标特征向量。S206. Determine the target feature vector of each object according to the execution time deviation, the importance level data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
在一个可能的实施方式中,子任务可能会存在前置子任务,即具有依赖关系的子任务,当依赖的子任务的执行时间偏差较大时,可能会导致当前子任务的执行时间偏差较大,因此可以通过累加执行时间偏差来抵消依赖的子任务对当前子任务的执行时间偏差造成的影响。即电子设备根据执行时间偏差、重要程度数据、相容性特征、每个对象的表征向量和各个子任务的表征向量,确定每个对象的目标特征向量具体可以是,确定各个子任务依赖的子任务,将各个子任务的执行时间偏差以及各个子任务依赖的子任务的执行时间偏差之和,确定为各个子任务的累计执行时间偏差,根据累计执行时间偏差、重要程度数据、相容性特征、每个对象的表征向量和各个子任务的表征向量,确定每个对象的目标特征向量。其中,电子设备确定各个子任务依赖的子任务可以是从数据库中获取任务对应的执行记录,该执行记录中存储有子任务的执行环节,即表示一个任务下的各个子任务之间的关系;或者也可以是从任务知识图谱中根据各个子任务之间的连接关系获取各个子任务依赖的子任务。因此,各个子任务的累计执行时间偏差可以是为:In a possible implementation, subtasks may have predecessor subtasks, that is, subtasks with dependencies. When the execution time deviation of dependent subtasks is large, the execution time deviation of the current subtask may be relatively small. Large, so the impact of dependent subtasks on the execution time deviation of the current subtask can be offset by accumulating execution time deviations. That is, the electronic device determines the target feature vector of each object according to the execution time deviation, importance data, compatibility features, characterization vectors of each object, and characterization vectors of each subtask. Task, the sum of the execution time deviation of each subtask and the execution time deviation of the subtasks that each subtask depends on is determined as the cumulative execution time deviation of each subtask, according to the cumulative execution time deviation, importance data, and compatibility characteristics , the characterization vector of each object and the characterization vectors of each subtask, and determine the target feature vector of each object. Wherein, the electronic device determines the subtasks on which each subtask depends may obtain the execution record corresponding to the task from the database, and the execution record stores the execution links of the subtasks, which means the relationship between the subtasks under one task; Alternatively, the subtasks that each subtask depends on can be obtained from the task knowledge graph according to the connection relationship between each subtask. Therefore, the cumulative execution time deviation of each subtask can be:
Figure PCTCN2022071276-appb-000003
Figure PCTCN2022071276-appb-000003
其中,TB j为子任务j的累计执行时间偏差,diff k表示子任务和该子任务依赖的子任务的执行时间偏差。 Among them, TB j is the cumulative execution time deviation of subtask j, and diff k represents the execution time deviation between the subtask and the subtasks that the subtask depends on.
例如,设一个任务包含子任务1、子任务2、子任务3,子任务3为子任务2依赖的子任务,子任务3和子任务2为子任务1依赖的子任务,若子任务1的执行时间偏差为diff 1,子任务2的执行时间偏差为diff 2,子任务3的执行时间偏差为diff 3,因此子任务1的累计执行时间偏差为TB 1=diff 1+diff 2+diff 3,子任务2的累计执行时间偏差 TB 2=diff 2+diff 3,子任务3的累计执行时间偏差为TB 3=diff 3For example, suppose a task includes subtask 1, subtask 2, subtask 3, subtask 3 is a subtask that subtask 2 depends on, subtask 3 and subtask 2 are subtasks that subtask 1 depends on, if the execution of subtask 1 The time deviation is diff 1 , the execution time deviation of subtask 2 is diff 2 , and the execution time deviation of subtask 3 is diff 3 , so the cumulative execution time deviation of subtask 1 is TB 1 =diff 1 +diff 2 +diff 3 , The cumulative execution time deviation of subtask 2 is TB 2 =diff 2 +diff 3 , and the cumulative execution time deviation of subtask 3 is TB 3 =diff 3 .
在一个可能的实施方式中,确定每个对象的目标特征向量的过程和原理相同,此处仅以确定一个对象的目标特征向量为例,进行说明;电子设备根据执行时间偏差、重要程度数据、相容性特征、每个对象的表征向量和各个子任务的表征向量,确定每个对象的目标特征向量具体可以是,确定目标对象所执行的所有目标子任务,根据目标对象在所有目标子任务中的每个子任务的累计执行时间偏差、重要程序数据和相容性特征,每个目标子任务的表征向量,确定每个目标子任务的初始特征向量,将每个目标子任务的初始特征向量以及目标对象的表征向量输入预设的神经网络模型,得到目标对象的目标特征向量;该目标对象为每个对象中的任一对象。In a possible implementation, the process and principle of determining the target feature vector of each object are the same, and here only the determination of the target feature vector of an object is taken as an example for illustration; Compatibility features, characterization vectors of each object and characterization vectors of each subtask, determining the target feature vector of each object can specifically be to determine all target subtasks performed by the target object, according to the target object in all target subtasks The cumulative execution time deviation, important program data and compatibility features of each subtask in , the characterization vector of each target subtask, determine the initial feature vector of each target subtask, and convert the initial feature vector of each target subtask And the representation vector of the target object is input into the preset neural network model to obtain the target feature vector of the target object; the target object is any object in each object.
可选的,该预设的神经网络模型可以是transformer模型,因此目标对象i的目标特征向量eC i可以是: Optionally, the preset neural network model can be a transformer model, so the target feature vector eC i of the target object i can be:
Figure PCTCN2022071276-appb-000004
Figure PCTCN2022071276-appb-000004
其中,eV i表示目标对象i的表征向量;j∈J表示所有的目标子任务;TB j表示目标子任务j的累计执行时间偏差;pV i表示目标子任务j的表征向量;
Figure PCTCN2022071276-appb-000005
表示目标对象i在目标子任务j中的重要程度数据,目标对象i在不同的目标子任务中的重要程度数据可以相同也可以不相同;
Figure PCTCN2022071276-appb-000006
表示目标对象i在目标子任务j中的相容性特征。
Among them, eV i represents the representation vector of target object i; j ∈ J represents all target subtasks; TB j represents the cumulative execution time deviation of target subtask j; pV i represents the representation vector of target subtask j;
Figure PCTCN2022071276-appb-000005
Indicates the importance data of the target object i in the target subtask j, and the importance data of the target object i in different target subtasks may be the same or different;
Figure PCTCN2022071276-appb-000006
Indicates the compatibility feature of target object i in target subtask j.
S207、将多个对象构建为多个对象组合。其中,步骤S207的具体实施方式可以参见步骤S107的相关描述。S207. Construct multiple objects into multiple object combinations. Wherein, for the specific implementation manner of step S207, reference may be made to the related description of step S107.
S208、根据每个对象的目标特征向量和多个对象组合中每个对象组合对多个对象进行排序,得到排序结果。S208. Sorting the multiple objects according to the target feature vector of each object and each of the multiple object combinations, to obtain a sorting result.
在一个可能的实施方式中,电子设备根据每个对象的目标特征向量和多个对象组合中每个对象组合对多个对象进行排序具体可以是,根据每个对象的目标特征向量确定多个对象组合中每个对象组合之间的差向量,按照每个对象组合之间的差向量对多个对象进行排序。其中,按照每个对象组合之间的差向量对多个对象进行排序具体可以是,按照每个对象组合之间的差向量,确定每个对象组合内的对象排序结果,并根据每个对象组合内的对象排序结果对多个对象进行排序。其中,按照每个对象组合之间的差向量,确定每个对象组合内的对象排序结果具体可以是,将每个对象组合之间的差向量输入分类模型,根据分类模型的输出结果确定每个对象组合内的对象排序结果。电子设备可以根据每个对象组合内的对象排序结果得到包含多个对象的排序结果。In a possible implementation manner, the electronic device sorts the multiple objects according to the target feature vector of each object and each object combination in the multiple object combinations. Specifically, it may be to determine the multiple objects according to the target feature vector of each object The difference vector between each combination of objects in the combination, sorting multiple objects by the difference vector between each combination of objects. Wherein, sorting the multiple objects according to the difference vector between each object combination may be specifically, according to the difference vector between each object combination, determining the object sorting result in each object combination, and according to each object combination Sort multiple objects within the object sort result. Wherein, according to the difference vector between each object combination, determining the object sorting result in each object combination may specifically include inputting the difference vector between each object combination into the classification model, and determining each object according to the output result of the classification model. The result of sorting the objects within the object group. The electronic device can obtain a sorting result including multiple objects according to the sorting result of objects in each object combination.
可选的,分类模型可以为sigmoid神经网络模型。可以理解的是,此处的用于确定每个对象组合内的对象排序结果的分类模型与上述用于确定对象在执行的子任务中的相容性特征的分类模型可以不是同一个模型。Optionally, the classification model may be a sigmoid neural network model. It can be understood that the classification model used to determine the object sorting result in each object combination here may not be the same model as the above-mentioned classification model used to determine the compatibility feature of the object in the executed subtask.
因此,设对象组合中对象u的目标特征向量eC u和对象v的目标特征向量eC v,则差向量为W u,v=σ(eC u-eC v),若将W u,v输入分类模型,得到的输出值大于0.5,则该对象组合内的对象排序结果表示对象u的排名r u大于对象v的排名r v,即r u>r vTherefore, assuming the target feature vector eC u of object u and the target feature vector eC v of object v in the object combination, the difference vector is W u,v = σ(eC u -eC v ), if W u,v is input into the classification model, if the obtained output value is greater than 0.5, then the object sorting result in the object combination indicates that the ranking r u of object u is greater than the ranking r v of object v , that is, r u >r v .
本申请实施例中,电子设备可以获取任务包括的各个子任务的执行时间偏差,根据任务知识图谱确定任务关联的多个对象中每个对象的重要程度数据,获取每个对象对对象执行的子任务的执行数据以及执行的子任务关联的其他对象反馈的对对象的任务执行分析信 息,根据执行数据和任务执行分析数据确定每个对象在对象执行的子任务中的相容性特征,根据任务知识图谱确定每个对象的表征向量和各个子任务的表征向量,根据执行时间偏差、重要程度数据、相容性特征、每个对象的表征向量和各个子任务的表征向量,确定每个对象的目标特征向量,将多个对象构建为多个对象组合,根据每个对象的目标特征向量和多个对象组合中每个对象组合对多个对象进行排序,得到排序结果。通过实施本申请实施例所提出的方法,可以生成包含对象以及对象相关联的任务的任务知识图谱,并结合任务知识图谱、对象以及任务对多个对象进行排序,可以使得排序时使用的数据较为全面,以及提高了针对对象的排序效率和所得到的排序结果的准确性。In the embodiment of the present application, the electronic device can obtain the execution time deviation of each subtask included in the task, determine the importance data of each of the multiple objects associated with the task according to the task knowledge map, and obtain the subtask performed by each object on the object. The execution data of the task and the task execution analysis information of the object fed back by other objects associated with the executed sub-task, determine the compatibility characteristics of each object in the sub-task executed by the object according to the execution data and task execution analysis data, according to the task The knowledge map determines the characterization vector of each object and the characterization vector of each subtask, and determines the The target feature vector constructs multiple objects into multiple object combinations, sorts the multiple objects according to the target feature vector of each object and each object combination in the multiple object combinations, and obtains a sorting result. By implementing the method proposed in the embodiment of the present application, a task knowledge graph including objects and tasks associated with objects can be generated, and multiple objects can be sorted in combination with the task knowledge graph, objects, and tasks, so that the data used in sorting can be compared. Comprehensive, and improve the efficiency of sorting objects and the accuracy of the resulting sorting results.
请参见图5,图5为本申请提供的一种对象排序装置的结构示意图。需要说明的是,图5所示的对象排序装置,用于执行本申请图1和图2所示实施例的方法,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示,经参照本申请图1和图2所示的实施例。该对象排序装置500可包括:获取模块501、确定模块502、排序模块503。其中:Please refer to FIG. 5 , which is a schematic structural diagram of an object sorting device provided in the present application. It should be noted that the object sorting device shown in FIG. 5 is used to execute the method of the embodiment shown in FIG. 1 and FIG. 2 of the present application. For the convenience of description, only the parts related to the embodiment of the present application are shown. The specific technology The details are not disclosed, and reference is made to the embodiment shown in Fig. 1 and Fig. 2 of the present application. The object sorting apparatus 500 may include: an acquisition module 501 , a determination module 502 , and a sorting module 503 . in:
获取模块501,用于获取任务包括的各个子任务的执行时间偏差;An acquisition module 501, configured to acquire the execution time deviation of each subtask included in the task;
确定模块502,用于根据任务知识图谱确定所述任务关联的多个对象中每个对象的重要程度数据;所述任务知识图谱包括所述每个对象的实体和所述各个子任务的实体;A determining module 502, configured to determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes the entity of each object and the entities of each subtask;
所述获取模块501,用于获取所述每个对象对所述对象执行的子任务的执行数据以及所述执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;The obtaining module 501 is configured to obtain the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
所述确定模块502,用于根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征;The determination module 502 is configured to determine, according to the execution data and the task execution analysis data, the compatibility feature of each object in the subtask executed by the object;
所述确定模块502,还用于根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量;The determination module 502 is further configured to determine the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph;
所述确定模块502,还用于根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量;The determining module 502 is further configured to determine the target feature vector for each object;
排序模块503,用于根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果。A sorting module 503, configured to sort the plurality of objects according to the target feature vector of each object to obtain a sorting result.
在一个可能的实施方式中,所述确定模块502在用于根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量时,具体用于:In a possible implementation manner, the determining module 502 is configured to perform the following tasks according to the execution time deviation, the importance data, the compatibility feature, the characterization vector of each object, and the subtasks. The characterization vector, when determining the target feature vector of each object, is specifically used for:
确定所述各个子任务依赖的子任务;determining the subtasks on which each subtask depends;
将所述各个子任务的执行时间偏差以及所述各个子任务依赖的子任务的执行时间偏差之和,确定为所述各个子任务的累计执行时间偏差;determining the sum of the execution time deviations of the subtasks and the execution time deviations of the subtasks on which the subtasks depend as the cumulative execution time deviation of the subtasks;
根据所述累计执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量。The target feature vector of each object is determined according to the cumulative execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
在一个可能的实施方式中,所述获取模块501在用于获取任务包括的各个子任务的执行时间偏差时,具体用于:In a possible implementation manner, when the obtaining module 501 is used to obtain the execution time deviation of each subtask included in the task, it is specifically used to:
获取所述任务包括的各个子任务的实际执行时间和所述各个子任务的预期执行时间;Obtaining the actual execution time of each subtask included in the task and the expected execution time of each subtask;
计算所述各个子任务的实际执行时间和所述各个子任务的预期执行时间之间的差值;calculating the difference between the actual execution time of each subtask and the expected execution time of each subtask;
将所述各个子任务的实际执行时间和所述各个子任务的预期执行时间之间的差值确定为所述各个子任务的执行时间偏差。The difference between the actual execution time of each subtask and the expected execution time of each subtask is determined as the execution time deviation of each subtask.
在一个可能的实施方式中,所述确定模块502在用于根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征时,具体用于:In a possible implementation manner, when the determination module 502 is used to determine the compatibility feature of each object in the subtask executed by the object according to the execution data and the task execution analysis data, Specifically for:
对所述执行数据进行向量化处理,得到所述执行数据对应的第一特征向量;performing vectorization processing on the execution data to obtain a first feature vector corresponding to the execution data;
对所述任务执行分析数据进行向量化处理,得到所述任务执行分析数据对应的第二特征向量;performing vectorization processing on the task execution analysis data to obtain a second feature vector corresponding to the task execution analysis data;
将所述第一特征向量和所述第二特征向量输入分类模型,得到所述每个对象在所述对象执行的子任务中的相容性特征。Inputting the first feature vector and the second feature vector into a classification model to obtain the compatibility feature of each object in the subtask performed by the object.
在一个可能的实施方式中,所述确定模块502在用于根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量时,具体用于:In a possible implementation manner, when the determining module 502 is used to determine the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph, it is specifically used to:
从所述任务知识图谱中获取所述每个对象的实体和所述各个子任务的实体;Obtain the entity of each object and the entity of each subtask from the task knowledge graph;
对所述每个对象的实体和所述各个子任务的实体分别进行向量表示,得到所述每个对象的词向量和所述各个子任务的词向量;performing vector representation on the entity of each object and the entity of each subtask respectively, to obtain the word vector of each object and the word vector of each subtask;
对所述每个对象的词向量和所述各个子任务的词向量进行加权处理,得到所述每个对象的关系映射向量和所述各个子任务的关系映射向量;performing weighting processing on the word vector of each object and the word vector of each subtask to obtain the relationship mapping vector of each object and the relationship mapping vector of each subtask;
将所述每个对象的关系映射向量确定为所述每个对象的表征向量,并将所述各个子任务的关系映射向量确定为所述各个子任务的表征向量。The relationship mapping vector of each object is determined as the characterization vector of each object, and the relationship mapping vector of each subtask is determined as a characterization vector of each subtask.
在一个可能的实施方式中,所述确定模块502在用于对所述每个对象的词向量和所述各个子任务的词向量进行加权处理时,具体用于:In a possible implementation manner, the determining module 502 is specifically configured to:
从所述任务知识图谱中确定所述对象与所述子任务之间的关系;determining a relationship between the object and the subtask from the task knowledge graph;
获取所述对象与所述子任务之间的关系对应的关系映射矩阵;Obtaining a relationship mapping matrix corresponding to the relationship between the object and the subtask;
利用所述关系映射矩阵对所述每个对象的词向量和所述各个子任务的词向量进行加权处理。The word vector of each object and the word vector of each subtask are weighted by using the relationship mapping matrix.
在一个可能的实施方式中,所述排序模块503在用于根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果时,具体用于:In a possible implementation manner, when the sorting module 503 is used to sort the multiple objects according to the target feature vector of each object to obtain a sorting result, it is specifically configured to:
将所述多个对象构建为多个对象组合;constructing the plurality of objects as a plurality of object combinations;
根据所述每个对象的目标特征向量确定所述多个对象组合中每个对象组合之间的差向量;determining a difference vector between each of the plurality of object combinations according to the target feature vector of each of the objects;
按照所述每个对象组合之间的差向量对所述多个对象进行排序,得到排序结果。The plurality of objects are sorted according to the difference vector between each combination of objects to obtain a sorting result.
本申请实施例中,获取模块获取任务包括的各个子任务的执行时间偏差;确定模块根据任务知识图谱确定任务关联的多个对象中每个对象的重要程度数据,该任务知识图谱包括每个对象的实体和各个子任务的实体;获取模块获取每个对象对对象执行的子任务的执行数据以及执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;确定模块根据执行数据和任务执行分析数据确定每个对象在对象执行的子任务中的相容性特征;确定模块根据任务知识图谱确定每个对象的表征向量和各个子任务的表征向量;确定模块根据执行时间偏差、重要程度数据、相容性特征、每个对象的表征向量和各个子任务的表征向量,确定每个对象的目标特征向量;排序模块根据每个对象的目标特征向量对多个对象进行排序,得到排序结果。通过实施本申请实施例所提出的装置,可以生成包含对象以及对象相关联的任务的任务知识图谱,并结合任务知识图谱、对象以及任务对多个对象进行排序,可以使得排序时使用的数据较为全面,以及提高了针对对象的排序效率和所得到的排序结果的准确性。In the embodiment of the present application, the acquisition module acquires the execution time deviation of each subtask included in the task; the determination module determines the importance data of each of the multiple objects associated with the task according to the task knowledge graph, and the task knowledge graph includes each object The entity of the entity and the entity of each subtask; the acquisition module acquires the execution data of the subtask executed by each object on the object and the task execution analysis information of the object fed back by other objects associated with the executed subtask; the determination module according to the execution data and task execution analysis data to determine the compatibility characteristics of each object in the subtasks executed by the object; the determination module determines the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph; the determination module determines the characterization vector according to the execution time deviation, Importance data, compatibility features, characterization vectors of each object and characterization vectors of each subtask, determine the target feature vector of each object; the sorting module sorts multiple objects according to the target feature vector of each object, and obtains Sort results. By implementing the device proposed in the embodiment of the present application, a task knowledge graph including objects and tasks associated with the objects can be generated, and multiple objects can be sorted in combination with the task knowledge graph, objects, and tasks, so that the data used in sorting can be compared. Comprehensive, and improve the efficiency of object-based sorting and the accuracy of the resulting sorting results.
在本申请各个实施例中的各功能模块可以集成在一个模块中,也可以是各个模块单独物理存在,也可以是两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现,本申请不做限定。Each functional module in each embodiment of the present application may be integrated into one module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software function modules, which is not limited in this application.
请参见图6,图6为本申请实施例提供的一种电子设备的结构示意图。如图6所示,该电子设备600包括:至少一个处理器601、存储器602。可选的,该电子设备还可包括网络接口。其中,所述处理器601、存储器602以及网络接口之间可以交互数据,网络接口受所述处理器601的控制用于收发消息,存储器602用于存储计算机程序,所述计算机程 序包括程序指令,处理器601用于执行存储器602存储的程序指令。其中,处理器601被配置用于调用所述程序指令执行上述方法。Please refer to FIG. 6 , which is a schematic structural diagram of an electronic device provided in an embodiment of the present application. As shown in FIG. 6 , the electronic device 600 includes: at least one processor 601 and a memory 602 . Optionally, the electronic device may also include a network interface. Wherein, the processor 601, the memory 602 and the network interface can exchange data, the network interface is controlled by the processor 601 for sending and receiving messages, and the memory 602 is used for storing computer programs, and the computer programs include program instructions, The processor 601 is used to execute program instructions stored in the memory 602 . Wherein, the processor 601 is configured to call the program instruction to execute the above method.
所述存储器602可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器602也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),固态硬盘(solid-state drive,SSD)等;所述存储器602还可以包括上述种类的存储器的组合。The memory 602 may include a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory 602 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), solid-state drive (solid-state drive, SSD) etc.; Described memory 602 can also comprise the combination of above-mentioned types of memory.
所述处理器601可以是中央处理器(central processing unit,CPU)。在一个实施例中,所述处理器601还可以是图形处理器(Graphics Processing Unit,GPU)。所述处理器601也可以是由CPU和GPU的组合。The processor 601 may be a central processing unit (central processing unit, CPU). In one embodiment, the processor 601 may also be a Graphics Processing Unit (GPU). The processor 601 may also be a combination of a CPU and a GPU.
在一个可能的实施方式中,所述存储器602用于存储程序指令,所述处理器601可以调用所述程序指令,执行以下步骤:In a possible implementation manner, the memory 602 is used to store program instructions, and the processor 601 can invoke the program instructions to perform the following steps:
获取任务包括的各个子任务的执行时间偏差;Obtain the execution time deviation of each subtask included in the task;
根据任务知识图谱确定所述任务关联的多个对象中每个对象的重要程度数据;所述任务知识图谱包括所述每个对象的实体和所述各个子任务的实体;Determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes the entity of each object and the entity of each subtask;
获取所述每个对象对所述对象执行的子任务的执行数据以及所述执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;Obtaining the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征;determining compatibility features of each object in subtasks executed by the object according to the execution data and the task execution analysis data;
根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量;determining the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph;
根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量;determining the target feature vector of each object according to the execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask;
根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果。sorting the plurality of objects according to the target feature vector of each object to obtain a sorting result.
在一个可能的实施方式中,所述处理器601在用于根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量时,具体用于:In a possible implementation manner, the processor 601 is configured to: The characterization vector, when determining the target feature vector of each object, is specifically used for:
确定所述各个子任务依赖的子任务;determining the subtasks on which each subtask depends;
将所述各个子任务的执行时间偏差以及所述各个子任务依赖的子任务的执行时间偏差之和,确定为所述各个子任务的累计执行时间偏差;determining the sum of the execution time deviations of the subtasks and the execution time deviations of the subtasks on which the subtasks depend as the cumulative execution time deviation of the subtasks;
根据所述累计执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量。The target feature vector of each object is determined according to the cumulative execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
在一个可能的实施方式中,所述处理器601在用于获取任务包括的各个子任务的执行时间偏差时,具体用于:In a possible implementation manner, when the processor 601 is used to obtain the execution time deviation of each subtask included in the task, it is specifically used to:
获取所述任务包括的各个子任务的实际执行时间和所述各个子任务的预期执行时间;Obtaining the actual execution time of each subtask included in the task and the expected execution time of each subtask;
计算所述各个子任务的实际执行时间和所述各个子任务的预期执行时间之间的差值;calculating the difference between the actual execution time of each subtask and the expected execution time of each subtask;
将所述各个子任务的实际执行时间和所述各个子任务的预期执行时间之间的差值确定为所述各个子任务的执行时间偏差。The difference between the actual execution time of each subtask and the expected execution time of each subtask is determined as the execution time deviation of each subtask.
在一个可能的实施方式中,所述处理器601在用于根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征时,具体用于:In a possible implementation manner, when the processor 601 is used to determine the compatibility feature of each object in the subtask executed by the object according to the execution data and the task execution analysis data, Specifically for:
对所述执行数据进行向量化处理,得到所述执行数据对应的第一特征向量;performing vectorization processing on the execution data to obtain a first feature vector corresponding to the execution data;
对所述任务执行分析数据进行向量化处理,得到所述任务执行分析数据对应的第二特征向量;performing vectorization processing on the task execution analysis data to obtain a second feature vector corresponding to the task execution analysis data;
将所述第一特征向量和所述第二特征向量输入分类模型,得到所述每个对象在所述对象执行的子任务中的相容性特征。Inputting the first feature vector and the second feature vector into a classification model to obtain the compatibility feature of each object in the subtask performed by the object.
在一个可能的实施方式中,所述处理器601在用于根据所述任务知识图谱确定所述每 个对象的表征向量和所述各个子任务的表征向量时,具体用于:In a possible implementation manner, when the processor 601 is used to determine the characterization vector of each object and the characterization vector of each subtask according to the task knowledge graph, it is specifically configured to:
从所述任务知识图谱中获取所述每个对象的实体和所述各个子任务的实体;Obtain the entity of each object and the entity of each subtask from the task knowledge graph;
对所述每个对象的实体和所述各个子任务的实体分别进行向量表示,得到所述每个对象的词向量和所述各个子任务的词向量;performing vector representation on the entity of each object and the entity of each subtask respectively, to obtain the word vector of each object and the word vector of each subtask;
对所述每个对象的词向量和所述各个子任务的词向量进行加权处理,得到所述每个对象的关系映射向量和所述各个子任务的关系映射向量;performing weighting processing on the word vector of each object and the word vector of each subtask to obtain the relationship mapping vector of each object and the relationship mapping vector of each subtask;
将所述每个对象的关系映射向量确定为所述每个对象的表征向量,并将所述各个子任务的关系映射向量确定为所述各个子任务的表征向量。The relationship mapping vector of each object is determined as the characterization vector of each object, and the relationship mapping vector of each subtask is determined as a characterization vector of each subtask.
在一个可能的实施方式中,所述处理器601在用于对所述每个对象的词向量和所述各个子任务的词向量进行加权处理时,具体用于:In a possible implementation manner, when the processor 601 performs weight processing on the word vector of each object and the word vector of each subtask, it is specifically configured to:
从所述任务知识图谱中确定所述对象与所述子任务之间的关系;determining a relationship between the object and the subtask from the task knowledge graph;
获取所述对象与所述子任务之间的关系对应的关系映射矩阵;Obtaining a relationship mapping matrix corresponding to the relationship between the object and the subtask;
利用所述关系映射矩阵对所述每个对象的词向量和所述各个子任务的词向量进行加权处理。The word vector of each object and the word vector of each subtask are weighted by using the relationship mapping matrix.
在一个可能的实施方式中,所述处理器601在用于根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果时,具体用于:In a possible implementation manner, when the processor 601 is configured to sort the multiple objects according to the target feature vector of each object to obtain a sorting result, it is specifically configured to:
将所述多个对象构建为多个对象组合;constructing the plurality of objects as a plurality of object combinations;
根据所述每个对象的目标特征向量确定所述多个对象组合中每个对象组合之间的差向量;determining a difference vector between each of the plurality of object combinations according to the target feature vector of each of the objects;
按照所述每个对象组合之间的差向量对所述多个对象进行排序,得到排序结果。The plurality of objects are sorted according to the difference vector between each combination of objects to obtain a sorting result.
具体实现中,本申请实施例中所描述的装置、处理器601、存储器602等可执行上述方法实施例所描述的实现方式,也可执行本申请实施例所描述的实现方式,在此不再赘述。In a specific implementation, the device, processor 601, memory 602, etc. described in the embodiments of this application can execute the implementation methods described in the above method embodiments, and can also execute the implementation methods described in the embodiments of this application, which will not be repeated here repeat.
本申请实施例中还提供一种计算机(可读)存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时,使所述处理器可执行上述方法实施例中所执行的部分或全部步骤。可选的,该计算机存储介质可以是易失性的,也可以是非易失性的。所述的计算机可读存储介质可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据区块链节点的使用所创建的数据等。An embodiment of the present application also provides a computer (readable) storage medium, the computer storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor Part or all of the steps performed in the foregoing method embodiments may be performed. Optionally, the computer storage medium may be volatile or non-volatile. The computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function, etc.; Use the created data etc.
其中,本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。Among them, the blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain (Blockchain), essentially a decentralized database, is a series of data blocks associated with each other using cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。The "plurality" mentioned herein means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机存储介质中,该计算机存储介质可以为计算机可读存储介质,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that realizing all or part of the processes in the methods of the above embodiments can be completed by instructing related hardware through a computer program. The program can be stored in a computer storage medium, and the computer storage medium can be As for the computer-readable storage medium, when the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
以上所揭露的仅为本申请的部分实施例而已,当然不能以此来限定本申请之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本申请权利要求所作的等同变化,仍属于本申请所涵盖的范围。What is disclosed above is only part of the embodiments of the application, and of course it cannot limit the scope of rights of the application. Those of ordinary skill in the art can understand the whole or part of the process of realizing the above embodiments, and make according to the claims of the application The equivalent changes still belong to the scope covered by this application.

Claims (20)

  1. 一种对象排序方法,其中,所述方法包括:A method for sorting objects, wherein the method includes:
    获取任务包括的各个子任务的执行时间偏差;Obtain the execution time deviation of each subtask included in the task;
    根据任务知识图谱确定所述任务关联的多个对象中每个对象的重要程度数据;所述任务知识图谱包括所述每个对象的实体和所述各个子任务的实体;Determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes the entity of each object and the entity of each subtask;
    获取所述每个对象对所述对象执行的子任务的执行数据以及所述执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;Obtaining the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
    根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征;determining compatibility features of each object in subtasks executed by the object according to the execution data and the task execution analysis data;
    根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量;determining the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph;
    根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量;determining the target feature vector of each object according to the execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask;
    根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果。sorting the plurality of objects according to the target feature vector of each object to obtain a sorting result.
  2. 根据权利要求1所述的方法,其中,所述根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量,包括:The method according to claim 1, wherein the said execution time deviation, said importance level data, said compatibility feature, said each object's characterization vector and said each subtask's characterization vector , to determine the target feature vector of each object, including:
    确定所述各个子任务依赖的子任务;determining the subtasks on which each subtask depends;
    将所述各个子任务的执行时间偏差以及所述各个子任务依赖的子任务的执行时间偏差之和,确定为所述各个子任务的累计执行时间偏差;determining the sum of the execution time deviations of the subtasks and the execution time deviations of the subtasks on which the subtasks depend as the cumulative execution time deviation of the subtasks;
    根据所述累计执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量。The target feature vector of each object is determined according to the cumulative execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
  3. 根据权利要求1所述的方法,其中,所述获取任务包括的各个子任务的执行时间偏差,包括:The method according to claim 1, wherein the execution time deviation of each subtask included in the acquisition task comprises:
    获取所述任务包括的各个子任务的实际执行时间和所述各个子任务的预期执行时间;Obtaining the actual execution time of each subtask included in the task and the expected execution time of each subtask;
    计算所述各个子任务的实际执行时间和所述各个子任务的预期执行时间之间的差值;calculating the difference between the actual execution time of each subtask and the expected execution time of each subtask;
    将所述各个子任务的实际执行时间和所述各个子任务的预期执行时间之间的差值确定为所述各个子任务的执行时间偏差。The difference between the actual execution time of each subtask and the expected execution time of each subtask is determined as the execution time deviation of each subtask.
  4. 根据权利要求1所述的方法,其中,所述根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征,包括:The method according to claim 1, wherein said determining the compatibility characteristics of each object in the subtask executed by the object according to the execution data and the task execution analysis data comprises:
    对所述执行数据进行向量化处理,得到所述执行数据对应的第一特征向量;performing vectorization processing on the execution data to obtain a first feature vector corresponding to the execution data;
    对所述任务执行分析数据进行向量化处理,得到所述任务执行分析数据对应的第二特征向量;performing vectorization processing on the task execution analysis data to obtain a second feature vector corresponding to the task execution analysis data;
    将所述第一特征向量和所述第二特征向量输入分类模型,得到所述每个对象在所述对象执行的子任务中的相容性特征。Inputting the first feature vector and the second feature vector into a classification model to obtain the compatibility feature of each object in the subtask performed by the object.
  5. 根据权利要求1所述的方法,其中,所述根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量,包括:The method according to claim 1, wherein said determining the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph comprises:
    从所述任务知识图谱中获取所述每个对象的实体和所述各个子任务的实体;Obtain the entity of each object and the entity of each subtask from the task knowledge graph;
    对所述每个对象的实体和所述各个子任务的实体分别进行向量表示,得到所述每个对象的词向量和所述各个子任务的词向量;performing vector representation on the entity of each object and the entity of each subtask respectively, to obtain the word vector of each object and the word vector of each subtask;
    对所述每个对象的词向量和所述各个子任务的词向量进行加权处理,得到所述每个对象的关系映射向量和所述各个子任务的关系映射向量;performing weighting processing on the word vector of each object and the word vector of each subtask to obtain the relationship mapping vector of each object and the relationship mapping vector of each subtask;
    将所述每个对象的关系映射向量确定为所述每个对象的表征向量,并将所述各个子任务的关系映射向量确定为所述各个子任务的表征向量。The relationship mapping vector of each object is determined as the characterization vector of each object, and the relationship mapping vector of each subtask is determined as a characterization vector of each subtask.
  6. 根据权利要求5所述的方法,其中,所述对所述每个对象的词向量和所述各个子任 务的词向量进行加权处理,包括:The method according to claim 5, wherein, the word vector of each object and the word vector of each subtask are weighted, comprising:
    从所述任务知识图谱中确定所述对象与所述子任务之间的关系;determining a relationship between the object and the subtask from the task knowledge graph;
    获取所述对象与所述子任务之间的关系对应的关系映射矩阵;Obtaining a relationship mapping matrix corresponding to the relationship between the object and the subtask;
    利用所述关系映射矩阵分别对所述每个对象的词向量和所述各个子任务的词向量进行加权处理。The word vectors of each object and the word vectors of the subtasks are respectively weighted by using the relationship mapping matrix.
  7. 根据权利要求1所述的方法,其中,所述根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果,包括:The method according to claim 1, wherein said sorting the plurality of objects according to the target feature vector of each object to obtain a sorting result comprises:
    将所述多个对象构建为多个对象组合;constructing the plurality of objects as a plurality of object combinations;
    根据所述每个对象的目标特征向量确定所述多个对象组合中每个对象组合之间的差向量;determining a difference vector between each of the plurality of object combinations according to the target feature vector of each of the objects;
    按照所述每个对象组合之间的差向量对所述多个对象进行排序,得到排序结果。The plurality of objects are sorted according to the difference vector between each combination of objects to obtain a sorting result.
  8. 一种对象排序装置,其中,所述装置包括:An object sorting device, wherein the device comprises:
    获取模块,用于获取任务包括的各个子任务的执行时间偏差;An acquisition module, configured to acquire the execution time deviation of each subtask included in the task;
    确定模块,用于根据任务知识图谱确定所述任务关联的多个对象中每个对象的重要程度数据;所述任务知识图谱包括所述每个对象的实体和所述各个子任务的实体;A determining module, configured to determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes entities of each object and entities of each subtask;
    所述获取模块,用于获取所述每个对象对所述对象执行的子任务的执行数据以及所述执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;The acquiring module is configured to acquire the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
    所述确定模块,用于根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征;The determining module is configured to determine, according to the execution data and the task execution analysis data, the compatibility feature of each object in the subtask executed by the object;
    所述确定模块,还用于根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量;The determining module is further configured to determine the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph;
    所述确定模块,还用于根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量;The determination module is further configured to determine each The target feature vector of an object;
    排序模块,用于根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果。A sorting module, configured to sort the plurality of objects according to the target feature vector of each object to obtain a sorting result.
  9. 一种电子设备,其中,包括处理器和存储器,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行以下方法:An electronic device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to invoke the program instructions to perform the following method:
    获取任务包括的各个子任务的执行时间偏差;Obtain the execution time deviation of each subtask included in the task;
    根据任务知识图谱确定所述任务关联的多个对象中每个对象的重要程度数据;所述任务知识图谱包括所述每个对象的实体和所述各个子任务的实体;Determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes the entity of each object and the entity of each subtask;
    获取所述每个对象对所述对象执行的子任务的执行数据以及所述执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;Obtaining the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
    根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征;determining compatibility features of each object in subtasks executed by the object according to the execution data and the task execution analysis data;
    根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量;determining the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph;
    根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量;determining the target feature vector of each object according to the execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask;
    根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果。sorting the plurality of objects according to the target feature vector of each object to obtain a sorting result.
  10. 根据权利要求9所述的电子设备,其中,执行所述根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量,包括:The electronic device according to claim 9 , wherein performing the execution according to the execution time deviation, the importance degree data, the compatibility feature, the characterization vector of each object and the respective subtasks Characterizing vectors, determining the target feature vectors of each object, comprising:
    确定所述各个子任务依赖的子任务;determining the subtasks on which each subtask depends;
    将所述各个子任务的执行时间偏差以及所述各个子任务依赖的子任务的执行时间偏差之和,确定为所述各个子任务的累计执行时间偏差;determining the sum of the execution time deviations of the subtasks and the execution time deviations of the subtasks on which the subtasks depend as the cumulative execution time deviation of the subtasks;
    根据所述累计执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量。The target feature vector of each object is determined according to the cumulative execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
  11. 根据权利要求9所述的电子设备,其中,执行所述获取任务包括的各个子任务的执行时间偏差,包括:The electronic device according to claim 9, wherein the execution time deviation of each subtask included in the acquisition task comprises:
    获取所述任务包括的各个子任务的实际执行时间和所述各个子任务的预期执行时间;Obtaining the actual execution time of each subtask included in the task and the expected execution time of each subtask;
    计算所述各个子任务的实际执行时间和所述各个子任务的预期执行时间之间的差值;calculating the difference between the actual execution time of each subtask and the expected execution time of each subtask;
    将所述各个子任务的实际执行时间和所述各个子任务的预期执行时间之间的差值确定为所述各个子任务的执行时间偏差。The difference between the actual execution time of each subtask and the expected execution time of each subtask is determined as the execution time deviation of each subtask.
  12. 根据权利要求9所述的电子设备,其中,执行所述根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征,包括:The electronic device according to claim 9, wherein performing the determining the compatibility feature of each object in the subtask executed by the object according to the execution data and the task execution analysis data comprises:
    对所述执行数据进行向量化处理,得到所述执行数据对应的第一特征向量;performing vectorization processing on the execution data to obtain a first feature vector corresponding to the execution data;
    对所述任务执行分析数据进行向量化处理,得到所述任务执行分析数据对应的第二特征向量;performing vectorization processing on the task execution analysis data to obtain a second feature vector corresponding to the task execution analysis data;
    将所述第一特征向量和所述第二特征向量输入分类模型,得到所述每个对象在所述对象执行的子任务中的相容性特征。Inputting the first feature vector and the second feature vector into a classification model to obtain the compatibility feature of each object in the subtask performed by the object.
  13. 根据权利要求9所述的电子设备,其中,执行所述根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量,包括:The electronic device according to claim 9, wherein performing the determining the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph comprises:
    从所述任务知识图谱中获取所述每个对象的实体和所述各个子任务的实体;Obtain the entity of each object and the entity of each subtask from the task knowledge graph;
    对所述每个对象的实体和所述各个子任务的实体分别进行向量表示,得到所述每个对象的词向量和所述各个子任务的词向量;performing vector representation on the entity of each object and the entity of each subtask respectively, to obtain the word vector of each object and the word vector of each subtask;
    对所述每个对象的词向量和所述各个子任务的词向量进行加权处理,得到所述每个对象的关系映射向量和所述各个子任务的关系映射向量;performing weighting processing on the word vector of each object and the word vector of each subtask to obtain the relationship mapping vector of each object and the relationship mapping vector of each subtask;
    将所述每个对象的关系映射向量确定为所述每个对象的表征向量,并将所述各个子任务的关系映射向量确定为所述各个子任务的表征向量。The relationship mapping vector of each object is determined as the characterization vector of each object, and the relationship mapping vector of each subtask is determined as a characterization vector of each subtask.
  14. 根据权利要求9所述的电子设备,其中,执行所述根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果,包括:The electronic device according to claim 9, wherein performing the sorting of the plurality of objects according to the target feature vector of each object to obtain a sorting result includes:
    将所述多个对象构建为多个对象组合;constructing the plurality of objects as a plurality of object combinations;
    根据所述每个对象的目标特征向量确定所述多个对象组合中每个对象组合之间的差向量;determining a difference vector between each of the plurality of object combinations according to the target feature vector of each of the objects;
    按照所述每个对象组合之间的差向量对所述多个对象进行排序,得到排序结果。The plurality of objects are sorted according to the difference vector between each combination of objects to obtain a sorting result.
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行以下方法:A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when executed by a processor, the program instructions cause the processor to perform the following method:
    获取任务包括的各个子任务的执行时间偏差;Obtain the execution time deviation of each subtask included in the task;
    根据任务知识图谱确定所述任务关联的多个对象中每个对象的重要程度数据;所述任务知识图谱包括所述每个对象的实体和所述各个子任务的实体;Determine the importance data of each of the plurality of objects associated with the task according to the task knowledge graph; the task knowledge graph includes the entity of each object and the entity of each subtask;
    获取所述每个对象对所述对象执行的子任务的执行数据以及所述执行的子任务关联的其他对象反馈的对所述对象的任务执行分析信息;Obtaining the execution data of the subtask executed by each object on the object and the task execution analysis information on the object fed back by other objects associated with the executed subtask;
    根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征;determining compatibility features of each object in subtasks executed by the object according to the execution data and the task execution analysis data;
    根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量;determining the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph;
    根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征 向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量;Determine the target feature vector of each object according to the execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask;
    根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果。sorting the plurality of objects according to the target feature vector of each object to obtain a sorting result.
  16. 根据权利要求15所述的计算机可读存储介质,其中,执行所述根据所述执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量,包括:The computer-readable storage medium according to claim 15, wherein performing said execution based on said execution time offset, said importance data, said compatibility features, said each object's characterization vector and said each The characterization vector of the subtask determines the target feature vector of each object, including:
    确定所述各个子任务依赖的子任务;determining the subtasks on which each subtask depends;
    将所述各个子任务的执行时间偏差以及所述各个子任务依赖的子任务的执行时间偏差之和,确定为所述各个子任务的累计执行时间偏差;determining the sum of the execution time deviations of the subtasks and the execution time deviations of the subtasks on which the subtasks depend as the cumulative execution time deviation of the subtasks;
    根据所述累计执行时间偏差、所述重要程度数据、所述相容性特征、所述每个对象的表征向量和所述各个子任务的表征向量,确定所述每个对象的目标特征向量。The target feature vector of each object is determined according to the cumulative execution time deviation, the importance data, the compatibility feature, the feature vector of each object, and the feature vectors of each subtask.
  17. 根据权利要求15所述的计算机可读存储介质,其中,执行所述获取任务包括的各个子任务的执行时间偏差,包括:The computer-readable storage medium according to claim 15, wherein the execution time deviation of each subtask included in the acquisition task comprises:
    获取所述任务包括的各个子任务的实际执行时间和所述各个子任务的预期执行时间;Obtaining the actual execution time of each subtask included in the task and the expected execution time of each subtask;
    计算所述各个子任务的实际执行时间和所述各个子任务的预期执行时间之间的差值;calculating the difference between the actual execution time of each subtask and the expected execution time of each subtask;
    将所述各个子任务的实际执行时间和所述各个子任务的预期执行时间之间的差值确定为所述各个子任务的执行时间偏差。The difference between the actual execution time of each subtask and the expected execution time of each subtask is determined as the execution time deviation of each subtask.
  18. 根据权利要求15所述的计算机可读存储介质,其中,执行所述根据所述执行数据和所述任务执行分析数据确定所述每个对象在所述对象执行的子任务中的相容性特征,包括:The computer-readable storage medium according to claim 15, wherein performing said determining compatibility characteristics of said each object in subtasks executed by said object based on said execution data and said task execution analysis data ,include:
    对所述执行数据进行向量化处理,得到所述执行数据对应的第一特征向量;performing vectorization processing on the execution data to obtain a first feature vector corresponding to the execution data;
    对所述任务执行分析数据进行向量化处理,得到所述任务执行分析数据对应的第二特征向量;performing vectorization processing on the task execution analysis data to obtain a second feature vector corresponding to the task execution analysis data;
    将所述第一特征向量和所述第二特征向量输入分类模型,得到所述每个对象在所述对象执行的子任务中的相容性特征。Inputting the first feature vector and the second feature vector into a classification model to obtain the compatibility feature of each object in the subtask performed by the object.
  19. 根据权利要求15所述的计算机可读存储介质,其中,执行所述根据所述任务知识图谱确定所述每个对象的表征向量和所述各个子任务的表征向量,包括:The computer-readable storage medium according to claim 15, wherein performing the determining the characterization vector of each object and the characterization vectors of each subtask according to the task knowledge graph comprises:
    从所述任务知识图谱中获取所述每个对象的实体和所述各个子任务的实体;Obtain the entity of each object and the entity of each subtask from the task knowledge graph;
    对所述每个对象的实体和所述各个子任务的实体分别进行向量表示,得到所述每个对象的词向量和所述各个子任务的词向量;performing vector representation on the entity of each object and the entity of each subtask respectively, to obtain the word vector of each object and the word vector of each subtask;
    对所述每个对象的词向量和所述各个子任务的词向量进行加权处理,得到所述每个对象的关系映射向量和所述各个子任务的关系映射向量;performing weighting processing on the word vector of each object and the word vector of each subtask to obtain the relationship mapping vector of each object and the relationship mapping vector of each subtask;
    将所述每个对象的关系映射向量确定为所述每个对象的表征向量,并将所述各个子任务的关系映射向量确定为所述各个子任务的表征向量。The relationship mapping vector of each object is determined as the characterization vector of each object, and the relationship mapping vector of each subtask is determined as a characterization vector of each subtask.
  20. 根据权利要求15所述的计算机可读存储介质,其中,执行所述根据所述每个对象的目标特征向量对所述多个对象进行排序,得到排序结果,包括:The computer-readable storage medium according to claim 15, wherein performing the sorting of the plurality of objects according to the target feature vector of each object to obtain a sorting result includes:
    将所述多个对象构建为多个对象组合;constructing the plurality of objects as a plurality of object combinations;
    根据所述每个对象的目标特征向量确定所述多个对象组合中每个对象组合之间的差向量;determining a difference vector between each of the plurality of object combinations according to the target feature vector of each of the objects;
    按照所述每个对象组合之间的差向量对所述多个对象进行排序,得到排序结果。The plurality of objects are sorted according to the difference vector between each combination of objects to obtain a sorting result.
PCT/CN2022/071276 2021-09-10 2022-01-11 Object sorting method, related device, and medium WO2023035526A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111067106.X 2021-09-10
CN202111067106.XA CN113779116B (en) 2021-09-10 2021-09-10 Object ordering method, related equipment and medium

Publications (1)

Publication Number Publication Date
WO2023035526A1 true WO2023035526A1 (en) 2023-03-16

Family

ID=78842789

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/071276 WO2023035526A1 (en) 2021-09-10 2022-01-11 Object sorting method, related device, and medium

Country Status (2)

Country Link
CN (1) CN113779116B (en)
WO (1) WO2023035526A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113779116B (en) * 2021-09-10 2023-07-11 平安科技(深圳)有限公司 Object ordering method, related equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190087755A1 (en) * 2017-09-15 2019-03-21 International Business Machines Corporation Cognitive process learning
US10592806B1 (en) * 2013-12-20 2020-03-17 Massachusetts Mutual Life Insurance Company Management of the execution of collaborative projects
CN112784604A (en) * 2021-02-08 2021-05-11 哈尔滨工业大学 Entity linking method based on entity boundary network
CN112948469A (en) * 2021-04-16 2021-06-11 平安科技(深圳)有限公司 Data mining method and device, computer equipment and storage medium
CN113779116A (en) * 2021-09-10 2021-12-10 平安科技(深圳)有限公司 Object sorting method, related equipment and medium
US20210397980A1 (en) * 2020-06-22 2021-12-23 Beijing Baidu Netcom Science Technology Co., Ltd. Information recommendation method and apparatus, electronic device, and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190122111A1 (en) * 2017-10-24 2019-04-25 Nec Laboratories America, Inc. Adaptive Convolutional Neural Knowledge Graph Learning System Leveraging Entity Descriptions
EP3791327A4 (en) * 2018-05-08 2022-01-12 Ancestry.com Operations Inc. Genealogy item ranking and recommendation
CN109783608B (en) * 2018-12-20 2021-01-05 出门问问信息科技有限公司 Target hypothesis determination method and device, readable storage medium and electronic equipment
CN112115188B (en) * 2020-11-20 2021-02-05 支付宝(杭州)信息技术有限公司 Method and device for displaying target object sequence to target user

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10592806B1 (en) * 2013-12-20 2020-03-17 Massachusetts Mutual Life Insurance Company Management of the execution of collaborative projects
US20190087755A1 (en) * 2017-09-15 2019-03-21 International Business Machines Corporation Cognitive process learning
US20210397980A1 (en) * 2020-06-22 2021-12-23 Beijing Baidu Netcom Science Technology Co., Ltd. Information recommendation method and apparatus, electronic device, and readable storage medium
CN112784604A (en) * 2021-02-08 2021-05-11 哈尔滨工业大学 Entity linking method based on entity boundary network
CN112948469A (en) * 2021-04-16 2021-06-11 平安科技(深圳)有限公司 Data mining method and device, computer equipment and storage medium
CN113779116A (en) * 2021-09-10 2021-12-10 平安科技(深圳)有限公司 Object sorting method, related equipment and medium

Also Published As

Publication number Publication date
CN113779116A (en) 2021-12-10
CN113779116B (en) 2023-07-11

Similar Documents

Publication Publication Date Title
US20220147405A1 (en) Automatically scalable system for serverless hyperparameter tuning
US10152454B2 (en) Method and system for decomposing a problem involving discrete optimization into a plurality of smaller subproblems and use of the method for solving the problem
CN108280104B (en) Method and device for extracting characteristic information of target object
US20230342846A1 (en) Micro-loan system
CN112949837A (en) Target recognition federal deep learning method based on trusted network
Häggström Data‐driven confounder selection via Markov and Bayesian networks
WO2021174693A1 (en) Data analysis method and apparatus, and computer system and readable storage medium
US20240086713A1 (en) Systems and methods for expanding data classification using synthetic data generation in machine learning models
US11373117B1 (en) Artificial intelligence service for scalable classification using features of unlabeled data and class descriptors
US20150134591A1 (en) Method, apparatus, and computer program product for data quality analysis
CN112231592B (en) Graph-based network community discovery method, device, equipment and storage medium
CN111427971B (en) Business modeling method, device, system and medium for computer system
CN112950347B (en) Resource data processing optimization method and device, storage medium and terminal
US20220050825A1 (en) Block chain based management of auto regressive database relationships
CN115202847A (en) Task scheduling method and device
CN112966054A (en) Enterprise graph node relation-based ethnic group division method and computer equipment
WO2023035526A1 (en) Object sorting method, related device, and medium
WO2019192310A1 (en) Group network identification method and device, computer device, and computer-readable storage medium
CN113849618B (en) Strategy determination method and device based on knowledge graph, electronic equipment and medium
Li Reflections on the Innovation of University Scientific Research Management in the Era of Big Data
WO2022217712A1 (en) Data mining method and apparatus, and computer device and storage medium
BR102022016487A2 (en) METHOD FOR SCORING AND EVALUATION OF DATA FOR EXCHANGE
CN114707835A (en) Data processing method and device, electronic equipment and computer readable medium
CN114723239A (en) Multi-party collaborative modeling method, device, equipment, medium and program product
CN111179076A (en) IT system intelligent management method, IT system intelligent management device and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22866006

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22866006

Country of ref document: EP

Kind code of ref document: A1