Project investment and personnel similarity determination method and device, equipment and medium
By obtaining and analyzing employee's working hours data, calculating project similarity and predicting employee investment, the accuracy problem of determining project investment similarity in the existing technology is solved, and more accurate project investment control is achieved.
Patent Information
- Application Number
- CN202311271574.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-28
AI Technical Summary
When determining project investment similarity, the prior art lacks accurate control over employee investment changes, resulting in a decrease in the accuracy of determining project investment similarity.
By determining the employees corresponding to the current project, obtaining the working hours data for their participation in the historical project and the current project, calculating the similarity between the historical project and the current project, and predicting the working hours for employees to be invested in the current project.
It improves the accuracy of project or employee similarity, enhances the precise control of project investment changes, and improves the accuracy of project investment determination.
Smart Images

Figure CN119719787A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for determining project investment and personnel similarity. Background Art
[0002] Currently, the determination of project investment similarity in the market is mainly based on market analysis, expert forecasts, and profit and loss balance of the project. Among them, market analysis focuses on the collection of external industry information, expert forecasts are more subjective, and profit and loss balance is not widely used for start-up companies. Therefore, the above methods are relatively macro and cannot accurately control the changes in employees' investment in actual projects, resulting in a decrease in the accuracy of determining the similarity of project investment information. Summary of the invention
[0003] Based on this, it is necessary to provide a method, device, computer equipment and storage medium for determining project investment and personnel similarity that can improve the accuracy of project or employee similarity in response to the above technical problems.
[0004] An embodiment of the present invention provides a method for determining project investment, which includes:
[0005] Determine employees corresponding to the current project, wherein the employees include a first employee who has been invested in the current project and a second employee who is to be invested in the current project;
[0006] Obtaining first time input data of a first employee participating in a historical project and a current project, and obtaining second time input data of a second employee participating in a historical project;
[0007] Determine the similarity between the historical project and the current project according to the first input working time data and the second input working time data;
[0008] Based on the similarity between historical projects and the current project, the time invested by the second employee in the current project is predicted.
[0009] In one embodiment, the step of determining the similarity between the historical project and the current project according to the first input man-hour data and the second input man-hour data includes:
[0010] Generate a first man-hour vector corresponding to the historical project according to the first man-hour data and the second man-hour data, and generate a second man-hour vector corresponding to the current project according to the first man-hour data;
[0011] According to a first similarity between the first working time vector and the second working time vector, the first similarity is set as a similarity between the historical project and the current project.
[0012] In one embodiment, the step of predicting the time invested by the second employee in the current project according to the similarity between the historical project and the current project includes:
[0013] determining whether the first similarity is within a first similarity range;
[0014] In response to the first similarity being within the first similarity range, obtaining the invested working hours of the second employee in participating in the historical project;
[0015] The time invested by the second employee in the current project is predicted based on the first similarity and the time invested.
[0016] In one embodiment, the step of obtaining first time input data of a first employee participating in a historical project and a current project, and obtaining second time input data of a second employee participating in a historical project, includes:
[0017] Determine a first time period for obtaining the invested working hours of the historical project according to the development cycle of the historical project, and determine a second time period for obtaining the invested working hours of the current project according to the development cycle of the current project;
[0018] Obtain a first input working time of a first employee in a historical project in a first time period, obtain a second input working time of a second employee in the historical project in the first time period, and obtain a third input working time of the first employee in a current project in the second time period;
[0019] The first input man-hour data is determined according to the first input man-hour and the third input man-hour, and the second input man-hour data is determined according to the second input man-hour.
[0020] The embodiment of the present invention also provides a method for determining personnel similarity, which includes:
[0021] Identify projects for third and fourth employees to participate in;
[0022] Obtain the third input working hours data of the fourth employee participating in the project, and obtain the fourth input working hours data of the third employee participating in the project;
[0023] The similarity between the fourth employee and the third employee is determined according to the third input working hour data and the fourth input working hour data.
[0024] In one embodiment, the step of determining the similarity between the fourth employee and the third employee according to the third input working time data and the fourth input working time data comprises:
[0025] Generating a third working time vector corresponding to each fourth employee according to the third input working time data, and generating a fourth working time vector corresponding to the third employee according to the fourth input working time data;
[0026] The second similarity between each third working hour vector and the fourth working hour vector is obtained, and the second similarity is set as the similarity between the fourth employee and the third employee.
[0027] In one embodiment, when the fourth employee includes multiple employees, after the step of determining the similarity between the fourth employee and the third employee according to the third input working time data and the fourth input working time data, the method further includes:
[0028] Acquire a target similarity within a second similarity range from the second similarity;
[0029] The fourth employee corresponding to the target similarity is set as the target employee for replacing the third employee.
[0030] The embodiment of the present invention further provides a device for determining project investment, which includes:
[0031] A first employee determination module, used to determine employees corresponding to the current project, wherein the employees include first employees who have been involved in the current project and second employees who are to be involved in the current project;
[0032] A first working hour data acquisition module is used to acquire first working hour data of a first employee participating in a historical project and a current project, and to acquire second working hour data of a second employee participating in a historical project;
[0033] A first similarity acquisition module, used for determining the similarity between the historical project and the current project according to the first input man-hour data and the second input man-hour data;
[0034] The prediction module is used to predict the working hours invested by the second employee in the current project according to the similarity between the historical project and the current project.
[0035] In one embodiment, the first similarity acquisition module includes:
[0036] A first vector acquisition submodule, used to generate a first man-hour vector corresponding to a historical project according to the first man-hour data and the second man-hour data, and to generate a second man-hour vector corresponding to a current project according to the first man-hour data;
[0037] The first similarity acquisition submodule is used to set the first similarity as the similarity between the historical project and the current project according to the first similarity between the first working time vector and the second working time vector.
[0038] In one embodiment, the prediction module includes:
[0039] A determination submodule, used to determine whether the first similarity is within a first similarity range;
[0040] A response submodule, configured to obtain the invested working hours of the second employee in participating in the historical project in response to the first similarity being within the first similarity range;
[0041] The prediction submodule is used to predict the invested working hours of the second employee in participating in the current project according to the first similarity and the invested working hours.
[0042] In one embodiment, the first working time data acquisition module includes:
[0043] The time period acquisition submodule is used to determine a first time period for acquiring the invested working hours of the historical project according to the development cycle of the historical project, and to determine a second time period for acquiring the invested working hours of the current project according to the development cycle of the current project;
[0044] The invested working hours acquisition submodule is used to acquire the first invested working hours of the first employee in participating in the historical project in the first time period, acquire the second invested working hours of the second employee in participating in the historical project in the first time period, and acquire the third invested working hours of the first employee in participating in the current project in the second time period;
[0045] The labor-hour input determination submodule is used to determine the first labor-hour input data according to the first labor-hour input and the third labor-hour input, and to determine the second labor-hour input data according to the second labor-hour input.
[0046] The embodiment of the present invention further provides a device for determining personnel similarity, which includes:
[0047] The second employee determination module determines the projects in which the third and fourth employees will participate;
[0048] A second working time data acquisition module is used to acquire the third working time data of the fourth employee participating in the project, and acquire the fourth working time data of the third employee participating in the project;
[0049] The second similarity acquisition module is used to determine the similarity between the fourth employee and the third employee according to the third input working time data and the fourth input working time data.
[0050] In one embodiment, the second similarity acquisition module includes:
[0051] A second vector acquisition submodule, configured to generate a third working time vector corresponding to a fourth employee according to the third input working time data, and to generate a fourth working time vector corresponding to the third employee according to the fourth input working time data;
[0052] The second similarity acquisition submodule is used to acquire the second similarity between the third working hour vector and the fourth working hour vector, and set the second similarity as the similarity corresponding to the fourth employee and the third employee.
[0053] In one embodiment, the device for determining the personnel similarity further includes:
[0054] A target similarity acquisition module, used for acquiring target similarities within a second similarity range from the second similarity;
[0055] A replacement module is used to determine a target employee that can be used to replace the third employee from the fourth employees according to the target similarity.
[0056] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0057] The present invention finally provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0058] The above-mentioned project investment and personnel similarity determination method, device, computer equipment and storage medium determine the similarity between employees or projects through the employees' input working hours data, thereby improving the accuracy of similarity calculation. Furthermore, the input working hours of employees participating in the current project are determined through similarity, thereby improving the accuracy of project investment determination. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 An application environment diagram of a method for determining project investment provided by an embodiment of the present invention;
[0060] Figure 2 A flowchart of a method for determining project investment provided by an embodiment of the present invention;
[0061] Figure 3 A schematic diagram of a flow chart of a method for determining personnel similarity provided by an embodiment of the present invention;
[0062] Figure 4 A structural block diagram of a device for determining project investment provided by an embodiment of the present invention;
[0063] Figure 5 A structural block diagram of a device for determining personnel similarity provided by an embodiment of the present invention;
[0064] Figure 6 An internal structure diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0066] The method for determining project investment and personnel similarity provided in this application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0067] In some embodiments, the server 104 first determines the employees corresponding to the current project through the terminal 102, wherein the employees include a first employee who has been involved in the current project and a second employee who is about to be involved in the current project. Then, the first time-invested data of the first employee participating in the historical project and the current project is obtained, and the second time-invested data of the second employee participating in the historical project is obtained. Then, the similarity between the historical project and the current project is determined based on the first time-invested data and the second time-invested data. Finally, based on the similarity between the historical project and the current project, the time-invested data of the second employee participating in the current project is predicted.
[0068] In some embodiments, the server 104 further determines an employee corresponding to the project set through the terminal 102, wherein the project set includes multiple projects, the employees include a third employee and multiple fourth employees, and at least one of the multiple fourth employees is used to replace the third employee. Then, the third input working hours data of each fourth employee participating in the corresponding project is obtained, and the fourth input working hours data of the third employee participating in the corresponding project is obtained. Then, the similarity between each fourth employee and the third employee is determined in turn based on the third input working hours data and the fourth input working hours data. Finally, based on the similarity between each fourth employee and the third employee, a target employee for replacing the second employee is determined from the multiple fourth employees.
[0069] In one embodiment, Figure 2 As shown in the figure, a method for determining project investment is provided. Figure 1 The server in the example is used to illustrate the following steps:
[0070] Step S101 : determining employees corresponding to the current project, wherein the employees include a first employee who has been involved in the current project and a second employee who is to be involved in the current project.
[0071] In advance, during the project development process, the employees involved in the project are counted. In this process, identity tags can be set for employees, project tags can be set for projects, and the association relationship between identity tags and project tags can be established. Then, the project tag corresponding to the current project is obtained, and the associated identity tag is searched through the project tag to determine the employee corresponding to the current project.
[0072] Among them, the current project is at least a part of the project to be developed. Since the development of a project often requires a long development cycle, different R&D employees need to be invested in different development stages during the development of the current project. These R&D employees are employees corresponding to the project. According to whether they have participated in the current project, the R&D employees can be divided into first employees and second employees, where the first employees are employees who have invested in the current project and the second employees are employees to be invested in the current project. It should be noted that the first employee can be a single employee or a class of employees, that is, it can include multiple employees.
[0073] Step S102, obtaining first time input data of a first employee participating in a historical project and a current project, and obtaining second time input data of a second employee participating in a historical project.
[0074] In one embodiment, since employees may participate in different projects during the actual project development process, in order to improve the accuracy of predicting the time invested by the second employee in the current project, the second time invested time data of the second employee in the historical project may be referred to. Before the second employee participates in the current project, at least a part of the historical project has been developed. The historical project may be a single project or a class of projects, i.e., including multiple projects.
[0075] In one embodiment, since the first employee has participated in the development of the current project before the second employee participates in the development of the current project, and the first employee will also participate in different projects, the first invested working hours data of the first employee participating in the current project and historical projects can be further referenced to predict the second employee's invested working hours participating in the current project.
[0076] It should be noted that since the development cycle of a project is a number of work stages from the proposal to the completion of the project, in one embodiment, the employee's input man-hour data in the entire development cycle of the historical project and the current project can be obtained as the first input man-hour data and the second input man-hour data to improve the accuracy of the input man-hour prediction.
[0077] In one embodiment, the input man-hour data of a preset time period may be selected as the first input man-hour data and the second input man-hour data according to the duration of the development cycle. For example, when the development cycle of a project exceeds one year, the man-hour data of a preset time period of four months is obtained. When the development cycle of a project is from half a year to one year, the man-hour data of a preset time period of two months may be obtained. When the development cycle of a project is within half a year, the man-hour data of a preset time period of one month may be obtained. In this way, the amount of calculation of the man-hour data may be reduced, thereby improving the efficiency of the input man-hour prediction.
[0078] In combination with the above content, in an embodiment of the present invention, the steps of obtaining first invested working hours data of a first employee participating in a historical project and a current project, and obtaining second invested working hours data of a second employee participating in a historical project include:
[0079] (A1) Determine a first time period for obtaining the invested working hours of the historical project according to the development cycle of the historical project, and determine a second time period for obtaining the invested working hours of the current project according to the development cycle of the current project.
[0080] (A2) obtaining a first input working time of a first employee participating in a historical project in a first time period, obtaining a second input working time of a second employee participating in the historical project in the first time period, and obtaining a third input working time of the first employee participating in a current project in the second time period.
[0081] (A3) First input man-hour data is determined based on the first input man-hour and the third input man-hour, and second input man-hour data is determined based on the second input man-hour.
[0082] Assume that the historical project is Project A and the current project is Project B. Project A is a project with a two-year development cycle, and Project B is a project with a development cycle of half a year. The first employees who have been invested in Project B include Employee 1, Employee 3, Employee 4, and Employee 5. The second employees to be invested in Project B include Employee 2. According to the development cycle of Project A, it can be determined that the first time period corresponding to Project A is four months, and according to the development cycle of Project B, it can be determined that the second time period corresponding to Project B is one month. Assume that the first hours invested in Project A by Employee 1, Employee 3, Employee 4, and Employee 5 in four months are 960 hours, 160 hours, 800 hours, and 240 hours respectively. The second hours invested in Project A by Employee 2 in four months are 480 hours. The third hours invested in Project B by Employee 1, Employee 3, Employee 4, and Employee 5 in one month are 160 hours, 20 hours, 160 hours, and 80 hours respectively. In summary, the first input man-hour data can be determined according to the first input man-hour and the third input man-hour, and the second input man-hour data can be determined according to the second input man-hour, to obtain the input man-hour data table shown in Table 1 below.
[0083] Table 1
[0084]
[0085] Furthermore, in the process of obtaining the actual working hours invested, employees often fill in the working hours according to a fixed time period rather than the actual working hours invested in the above-mentioned preset time period. For example, employees fill in the working hours according to the actual working hours invested that week every Friday. The filled-in working hours are then verified and reviewed to determine the final working hours invested. Therefore, in an embodiment of the present application, the preset time period can also be divided into multiple fixed time periods. For example, the preset time period of a month is divided into 4 weeks of fixed time periods, and then four months are divided into 4*4=16 weeks of fixed time periods. Then, the average working hours invested in the fixed time period can be obtained based on the working hours invested in the preset time period, and finally the working hours invested data is determined based on the average working hours invested, and the working hours invested data table shown in Table 1 is obtained.
[0086] Table 2
[0087]
[0088] In some embodiments, the time data that meets the preset number of records can also be selected as the first time data and the second time data according to the duration of the development cycle. For example, when the development cycle of the project exceeds one year, ensure that the number of records of the time data is not less than 40. When the development cycle of the project is from half a year to one year, ensure that the number of records of the time data is not less than 20. When the development cycle of the project is within half a year, ensure that the number of records of the time data is not less than 10. In this way, by ensuring that the amount of data is not less than a certain number, the calculation amount of the control data can be kept within a more reasonable range, thereby improving the efficiency of the time forecast.
[0089] Step S103: determining the similarity between the historical project and the current project according to the first input man-hour data and the second input man-hour data.
[0090] In some embodiments, a first time vector corresponding to a historical project can be generated based on the first time data and the second time data, and a second time vector corresponding to a current project can be generated based on the first time data. Then, based on a first similarity between the first time vector and the second time vector, the first similarity is set as the similarity between the historical project and the current project.
[0091] A similarity algorithm may be used to calculate the similarity between the historical project and the current project, such as a cosine similarity algorithm, a nearest neighbor algorithm, etc., which is not specifically limited here.
[0092] The following is an explanation using the cosine similarity algorithm. According to the first and second time input data in Table 2, we can get the first time vector A(60,30,10,50,15) corresponding to project A and the second time vector B(40,0,5,40,20) corresponding to project B, where the uninvested time data is set to 0. Then the following cosine formula is used to calculate the similarity between project A and project B:
[0093]
[0094] Wherein, i represents the number of components of the first working time vector A and the second working time vector B, and n is an integer greater than 1. Finally, the similarity between project A and project B is calculated to be 0.9218.
[0095] Step S104: predicting the time invested by the second employee in the current project based on the similarity between the historical project and the current project.
[0096] In one embodiment, the time spent by the second employee in participating in historical projects can be directly obtained, and then the time spent by the second employee in participating in the current project can be predicted by multiplying the time spent by the employee by the similarity. For example, if the time spent by employee 2 in participating in project A is 30 and the similarity between project A and project B is 0.9218, the time spent by employee 2 in participating in project B is predicted to be 30*0.9218=27.65.
[0097] In one embodiment, in order to improve the accuracy of the prediction of the invested man-hours, a historical project that is very similar to the current project may be referenced, so it may be determined whether the first similarity is within the first similarity range. Then, in response to the first similarity being within the first similarity range, the invested man-hours of the second employee in the historical project are obtained. Finally, based on the first similarity and the invested man-hours, the invested man-hours of the second employee in the current project are predicted.
[0098] The method for determining project investment in the embodiment of the present application determines the similarity between the current project and historical projects through the employee's invested working hours data, and then predicts the employee's invested working hours in the current project based on the similarity, thereby improving the accuracy of project investment determination.
[0099] The embodiment of the present invention also provides a method for determining personnel similarity, comprising:
[0100] Step S201, determining the projects in which the third employee and the fourth employee participate;
[0101] In advance, during the project development process, the employees who participate in the project are counted. In this process, identity tags can be set for employees, project tags can be set for projects, and the association relationship between identity tags and project tags can be established. Then, the identity tags corresponding to the employees are obtained, and the associated project tags are searched through the identity tags to determine the projects in which the employees participate.
[0102] The third employee and the fourth employee may be a single employee or a type of employee, that is, may include multiple employees. In one embodiment, all projects that the third employee and the fourth employee have participated in since they participated in the project may be obtained, and the projects that the third employee and the fourth employee have participated in within a preset period may also be obtained.
[0103] For example, suppose that the third employee has participated in projects 1, 2, and 3 since joining the project, but has only participated in project 1 during the preset period. The fourth employee has participated in projects 2, 4, 5, and 6 since joining the project, but has only participated in projects 2 and 4 during the preset period. When the projects participated by the third and fourth employees are all the projects participated in since joining the project, then the projects include projects 1, 2, 3, 4, 5, and 6. When the projects participated by the third and fourth employees are the projects participated in during the preset period, then the projects include projects 1, 2, and 4.
[0104] Step S202, obtaining the third input man-hour data of the fourth employee participating in the project, and obtaining the fourth input man-hour data of the third employee participating in the project.
[0105] In one embodiment, every preset period, the projects that the third employee and the fourth employee participate in and the working hours on the corresponding projects are counted. The working hours data of the third employee and the fourth employee in the preset period can be obtained. Assume that the third employee is employee 1, the fourth employee includes employees 2, 3, 4 and 5, the projects include projects A, B, C and D, and the preset period is one week. The working hours of employees 1-5 participating in projects AD in one week are obtained respectively, and a table of working hours data is obtained, as shown in Table 3 below:
[0106] Table 3
[0107]
[0108] Combined with the above Table 3, the working hours invested by employee 1 in projects AD in a week can be obtained to obtain the fourth working hours data, as shown in the following Table 4. The working hours invested by employees 2-5 in projects AD in a week can also be obtained to obtain the third working hours data, as shown in the following Table 5.
[0109] Table 4
[0110]
[0111] Table 5
[0112]
[0113] In the process of acquiring the input working time data, the employees can fill in the working time according to the actual input working time of the preset period, for example, the employees fill in the working time according to the actual input working time of the week every Friday. Then the filled working time is verified and reviewed to determine the final input working time. Step S203, determine the similarity between the fourth employee and the third employee according to the third input working time data and the fourth input working time data.
[0114] In some embodiments, a third working time vector corresponding to the fourth employee may be generated based on the third working time data, and a fourth working time vector corresponding to the third employee may be generated based on the fourth working time data. Then, the similarity between the fourth employee and the third employee may be determined based on the third working time vector and the fourth working time vector, for example, a second similarity between the third working time vector and the fourth working time vector is obtained, and the second similarity is set as the similarity between the fourth employee and the third employee.
[0115] A similarity algorithm may be used to calculate the similarity between the fourth employee and the third employee, such as a cosine similarity algorithm, a nearest neighbor algorithm, etc., which is not specifically limited here.
[0116] The following is an explanation using the cosine similarity algorithm. According to the third and fourth input working hours data in Table 3, the third working hours vector (30, 0, 30, 40) corresponding to employee 1 and the fourth working hours vector (60, 40, 0, 0) corresponding to employee 2 can be obtained, where the uninput working hours data is set to 0. Then the cosine formula is used to calculate the similarity between employee 1 and employee 2. Similarly, the similarity between employee 1 and employees 3, 4, and 5 can also be calculated respectively.
[0117] In some embodiments, after obtaining the similarity between the fourth employee and the third employee, the process may proceed to step S204: according to the similarity between the fourth employee and the third employee, similarity labels are set for the third employee and the fourth employee. For example, when the similarity between the fourth employee and the third employee is 80%, a label "80% similarity to the third employee" is set for the fourth employee, and a label "80% similarity to the fourth employee" is set for the third employee. In this way, the similarity between the employees can be intuitively displayed.
[0118] Furthermore, when an employee needs to be replaced, a target employee that can replace the employee can be found based on the similarity tag. For example, when the third employee needs to be replaced, a fourth employee can be found based on the similarity tag to replace the third employee.
[0119] In some embodiments, when the fourth employee includes multiple employees, a target similarity in the second similarity range can also be obtained from the second similarity. The fourth employee corresponding to the target similarity is set as a target employee for replacing the third employee. For example, assuming that the second similarity range is greater than or equal to 0.8, and the similarity between employee 1 and the employees is calculated to be 0.4281 for employee 1 and employee 2, 0.1294 for employee 1 and employee 3, 0.9902 for employee 1 and employee 4, and 0.4416 for employee 1 and employee 5. Then employee 4 can be selected as the target employee to replace employee 1.
[0120] The method for determining project investment in the embodiment of the present application first determines the projects in which the employees participate, and then determines the similarity between employees based on the time data of the employees' investment in the projects, thereby improving the accuracy of determining personnel similarity.
[0121] It should be understood that although Figure 2-3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0122] In one embodiment, Figure 4 As shown, a device 30 for determining project investment is provided, comprising: a first employee determination module 301, a first working hour data acquisition module 302, a first similarity acquisition module 303 and a first prediction module 304, wherein: the first employee determination module 301 is used to determine the employee corresponding to the current project, wherein the employee includes a first employee who has invested in the current project and a second employee to be invested in the current project; the first working hour data acquisition module 302 is used to obtain the first invested working hour data of the first employee participating in the historical project and the current project, and obtain the second invested working hour data of the second employee participating in the historical project; the first similarity acquisition module 303 is used to determine the similarity between the historical project and the current project according to the first invested working hour data and the second invested working hour data; the prediction module 304 is used to predict the invested working hours of the second employee participating in the current project according to the similarity between the historical project and the current project.
[0123] In one embodiment, the first similarity acquisition module 303 includes: a first vector acquisition submodule and a first similarity acquisition submodule. The first vector acquisition submodule is used to generate a first man-hour vector corresponding to the historical project according to the first input man-hour data and the second input man-hour data, and to generate a second man-hour vector corresponding to the current project according to the first input man-hour data; the first similarity acquisition submodule is used to set the first similarity as the similarity between the historical project and the current project according to the first similarity between the first man-hour vector and the second man-hour vector.
[0124] In one embodiment, the prediction module 304 includes: a determination submodule, a response submodule and a prediction submodule. The determination submodule is used to determine whether the first similarity is within the first similarity range; the response submodule is used to obtain the invested working hours of the second employee in participating in the historical project in response to the first similarity being within the first similarity range; the prediction submodule is used to predict the invested working hours of the second employee in participating in the current project based on the first similarity and the invested working hours.
[0125] In one embodiment, the first man-hour data acquisition module 302 includes: a time period acquisition submodule, an input man-hour acquisition submodule, and an input man-hour determination submodule. The time period acquisition submodule is used to determine the first time period for acquiring the input man-hours of the historical project according to the development cycle of the historical project, and to determine the second time period for acquiring the input man-hours of the current project according to the development cycle of the current project; the input man-hour acquisition submodule is used to acquire the first input man-hours of the first employee participating in the historical project in the first time period, acquire the second input man-hours of the second employee participating in the historical project in the first time period, and acquire the third input man-hours of the first employee participating in the current project in the second time period; the input man-hour determination submodule is used to determine the first input man-hour data according to the first input man-hours and the third input man-hours, and to determine the second input man-hour data according to the second input man-hours.
[0126] like Figure 5 As shown, the embodiment of the present invention further provides a device 40 for determining project input, which includes: a second employee determination module 401, a second work time data acquisition module 402, and a second similarity acquisition module 403. The second employee determination module 401 is used to determine the projects in which the third employee and the fourth employee participate; the second work time data acquisition module 402 is used to acquire the third input work time data of the fourth employee participating in the project, and acquire the fourth input work time data of the third employee participating in the project; the second similarity acquisition module 403 is used to determine the similarity between the fourth employee and the third employee based on the third input work time data and the fourth input work time data.
[0127] In one embodiment, the second similarity acquisition module 403 includes: a second vector acquisition submodule and a second similarity acquisition submodule. The second vector acquisition submodule is used to generate a third working time vector corresponding to the fourth employee according to the third input working time data, and to generate a fourth working time vector corresponding to the third employee according to the fourth input working time data; the second similarity acquisition submodule is used to obtain a second similarity between the third working time vector and the fourth working time vector, and set the second similarity as the similarity corresponding to the fourth employee and the third employee.
[0128] In one embodiment, the device 40 includes: a target similarity acquisition module and a replacement module. The target similarity acquisition module is used to acquire a target similarity within a second similarity range from the second similarity; and the replacement module is used to determine a target employee that can be used to replace the third employee from the fourth employee according to the target similarity.
[0129] For the specific limitations of the device for determining project investment, please refer to the limitations of the method for determining project investment above. For the specific limitations of the device for determining personnel similarity, please refer to the limitations of the method for determining personnel similarity above, which will not be repeated here. Each module in the above-mentioned device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0130] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store working time data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for determining project investment is implemented.
[0131] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0132] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0133] Determine employees corresponding to the current project, wherein the employees include a first employee who has been invested in the current project and a second employee who is about to be invested in the current project; obtain first investment time data of the first employee participating in historical projects and the current project, and obtain second investment time data of the second employee participating in the historical project; determine the similarity between the historical project and the current project based on the first investment time data and the second investment time data; and predict the investment time of the second employee participating in the current project based on the similarity between the historical project and the current project.
[0134] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0135] A first working time vector corresponding to the historical project is generated according to the first working time data and the second working time data, and a second working time vector corresponding to the current project is generated according to the first working time data; and according to a first similarity between the first working time vector and the second working time vector, the first similarity is set as the similarity between the historical project and the current project.
[0136] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0137] Determine whether the first similarity is within a first similarity range; in response to the first similarity being within the first similarity range, obtain the time invested by the second employee in participating in the historical project; and predict the time invested by the second employee in participating in the current project based on the first similarity and the time invested.
[0138] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0139] Determine a first time period for obtaining the invested working hours of the historical project according to the development cycle of the historical project, and determine a second time period for obtaining the invested working hours of the current project according to the development cycle of the current project; obtain the first invested working hours of the first employee participating in the historical project in the first time period, obtain the second invested working hours of the second employee participating in the historical project in the first time period, and obtain the third invested working hours of the first employee participating in the current project in the second time period; determine the first invested working hours data according to the first invested working hours and the third invested working hours, and determine the second invested working hours data according to the second invested working hours.
[0140] In one embodiment, when the processor in the computer device executes the computer program, the processor further implements the following steps:
[0141] Determine an employee corresponding to a project set, wherein the project set includes multiple projects, the employees include a third employee and multiple fourth employees, and at least one of the multiple fourth employees is used to replace the third employee; obtain third input time data of each fourth employee participating in the corresponding project, and obtain fourth input time data of the third employee participating in the corresponding project; determine the similarity between each fourth employee and the third employee in turn according to the third input time data and the fourth input time data; and determine a target employee for replacing the second employee from the multiple fourth employees according to the similarity between each fourth employee and the third employee.
[0142] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0143] Generate a third working time vector corresponding to each fourth employee according to the third working time data, and generate a fourth working time vector corresponding to the third employee according to the fourth working time data; obtain a second similarity between each third working time vector and the fourth working time vector, and set the second similarity as the similarity between the corresponding fourth employee and the third employee.
[0144] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0145] A target similarity within a second similarity range is acquired from the second similarity; and a fourth employee corresponding to the target similarity is set as the target employee for replacing the third employee.
[0146] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0147] Determine the project in which the third employee and the fourth employee participate; obtain the third input time data of the fourth employee participating in the project, and obtain the fourth input time data of the third employee participating in the project; determine the similarity between the fourth employee and the third employee based on the third input time data and the fourth input time data.
[0148] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0149] Generate a third working time vector corresponding to the fourth employee according to the third working time data, and generate a fourth working time vector corresponding to the third employee according to the fourth working time data; obtain a second similarity between each third working time vector and the fourth working time vector, and set the second similarity as the similarity between the fourth employee and the third employee.
[0150] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0151] A target similarity within a second similarity range is acquired from the second similarity; and a target employee that can be used to replace the third employee is determined from the fourth employees according to the target similarity.
[0152] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0153] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0154] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for determining project investment, characterized in that: include: Determine employees corresponding to the current project, wherein the employees include a first employee who has been invested in the current project and a second employee who is to be invested in the current project; Acquire first time-invested data of the first employee's participation in historical projects and the current project, and acquire second time-invested data of the second employee's participation in the historical project; Determine the similarity between the historical project and the current project according to the first input man-hour data and the second input man-hour data; The working hours invested by the second employee in participating in the current project are predicted according to the similarity between the historical project and the current project.
2. The method for determining project investment according to claim 1, characterized in that: The step of determining the similarity between the historical project and the current project according to the first input man-hour data and the second input man-hour data comprises: Generate a first man-hour vector corresponding to the historical project according to the first man-hour data and the second man-hour data, and generate a second man-hour vector corresponding to the current project according to the first man-hour data; According to a first similarity between the first work-hour vector and the second work-hour vector, the first similarity is set as a similarity between the historical project and the current project.
3. The method for determining project investment according to claim 2, characterized in that: The step of predicting the time invested by the second employee in participating in the current project according to the similarity between the historical project and the current project comprises: determining whether the first similarity is within a first similarity range; In response to the first similarity being within the first similarity range, acquiring the work hours invested by the second employee in participating in the historical project; The man-hours invested by the second employee in participating in the current project are predicted according to the first similarity and the invested man-hours.
4. The method for determining project investment according to claim 1, characterized in that: The step of obtaining first time input data of the first employee participating in historical projects and the current project, and obtaining second time input data of the second employee participating in the historical project, includes: Determine a first time period for acquiring the invested man-hours of the historical project according to the development cycle of the historical project, and determine a second time period for acquiring the invested man-hours of the current project according to the development cycle of the current project; Obtaining a first amount of working hours that the first employee has invested in the historical project during the first time period, obtaining a second amount of working hours that the second employee has invested in the historical project during the first time period, and obtaining a third amount of working hours that the first employee has invested in the current project during the second time period; The first input man-hour data is determined according to the first input man-hour and the third input man-hour, and the second input man-hour data is determined according to the second input man-hour.
5. A method for determining personnel similarity, characterized in that: include: Identify projects for third and fourth employees to participate in; Obtaining third input man-hour data of the fourth employee participating in the project, and obtaining fourth input man-hour data of the third employee participating in the project; The similarity between the fourth employee and the third employee is determined according to the third input working time data and the fourth input working time data.
6. The method for determining the similarity of persons according to claim 5, characterized in that: The step of determining the similarity between the fourth employee and the third employee according to the third input working time data and the fourth input working time data comprises: generating a third working time vector corresponding to the fourth employee according to the third input working time data, and generating a fourth working time vector corresponding to the third employee according to the fourth input working time data; A second similarity between each third working hour vector and the fourth working hour vector is obtained, and the second similarity is set as a similarity between the fourth employee and the third employee.
7. The method for determining personnel similarity according to claim 6, characterized in that: When the fourth employee includes multiple employees, after the step of determining the similarity between the fourth employee and the third employee according to the third input working time data and the fourth input working time data, the method further includes: Acquire a target similarity within a second similarity range from the second similarity; A target employee that can be used to replace the third employee is determined from the fourth employees according to the target similarity.
8. A device for determining project investment, characterized in that: The device comprises: A first employee determination module, used to determine employees corresponding to the current project, wherein the employees include first employees who have been involved in the current project and second employees who are to be involved in the current project; A first working time data acquisition module is used to acquire first working time data of the first employee participating in historical projects and the current project, and to acquire second working time data of the second employee participating in the historical projects; A first similarity acquisition module, configured to determine the similarity between the historical project and the current project according to the first input man-hour data and the second input man-hour data; The prediction module is used to predict the working hours invested by the second employee in the current project according to the similarity between the historical project and the current project.
9. A device for determining personnel similarity, characterized in that: The device comprises: A second employee determination module, used for determining projects in which a third employee and a fourth employee participate; A second working time data acquisition module is used to acquire the third working time data of the fourth employee participating in the project, and acquire the fourth working time data of the third employee participating in the project; The second similarity acquisition module is used to determine the similarity between the fourth employee and the third employee according to the third input working time data and the fourth input working time data.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 or the steps of the method according to any one of claims 5 to 7 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 or the steps of the method according to any one of claims 5 to 7 are implemented.