Software cost assessment method and system
The repeated workload is calculated through the global feature word vector and historical feature vocabulary of the functional module, combined with the weighted repetition rate and reuse coefficient, to solve the problem of inaccurate workload estimation caused by repeated development in software projects and improve the accuracy of cost assessment. .
Patent Information
- Application Number
- CN202311786790.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-22
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-12-22
Smart Images

Figure CN117910456B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a software cost evaluation method and system. Background Art
[0002] Under the current background of rapid development of information technology, the evaluation of software project costs has become an important challenge faced by various enterprises and organizations.
[0003] Currently, in the field of software project cost, the man-month unit price method is a commonly used calculation method. This method is based on human resource input and estimates the cost of a software project by calculating the amount of human resources required for the project and the cost per person per month. However, the traditional man-month unit price method still has some shortcomings. Each module in a large-scale software project may contain a large number of repeated development operations. For example, operations such as search, retrieval, comparison, and export may be included in multiple modules. A large amount of repetitive work leads to inaccurate estimation of the workload of the development work, which in turn leads to a low accuracy rate in determining the software cost. Summary of the invention
[0004] The present invention provides a software cost evaluation method and system, which are used to solve the technical problem that in the process of determining the software cost, a large number of repeated modules contained in the software modules lead to inaccurate workload estimation, thereby resulting in low accuracy in determining the software cost.
[0005] The present invention provides a software cost evaluation method, comprising:
[0006] Based on module development information of multiple functional modules of the software to be evaluated, determining multiple global feature word vectors of the multiple functional modules and feature word vectors of each functional module, wherein the module development information includes development workload information of the functional modules and development operation information of the functional modules;
[0007] Based on the frequency of each global feature word vector in the multiple global feature word vectors, determining multiple target global feature word vectors whose frequencies are higher than a preset frequency threshold;
[0008] Determine the repetitive workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module, and a historical feature word library, wherein the historical feature word library is determined based on feature words corresponding to each operation in the software development process;
[0009] Based on the repetitive workload of each functional module, the cost workload of each functional module is determined, and the cost workload is the human resource cost for developing the functional module.
[0010] According to a software cost evaluation method provided by the present invention, based on the multiple target global feature word vectors, the feature word vectors of each functional module and the historical feature word library, the repetitive workload of each functional module is determined, including:
[0011] Determining a first repetition rate of each functional module based on a repetition rate of a target global feature word vector and a feature word vector in each functional module;
[0012] Determining a second repetition rate of each functional module based on a repetition rate of a feature word vector in each functional module and a word vector in a historical feature word library;
[0013] Determining a third repetition rate of each functional module based on a repetition rate between feature word vectors in each functional module;
[0014] Based on the first repetition rate, the second repetition rate, and the third repetition rate, the repetition workload of each functional module is determined.
[0015] According to a software cost evaluation method provided by the present invention, based on the first repetition rate, the second repetition rate and the third repetition rate, determining the repetitive workload of each functional module includes:
[0016] Acquire historical software cost calculation information of software function modules, and determine weight information based on the historical software cost calculation information;
[0017] Based on the weight information, weighting the first repetition rate, the second repetition rate, and the third repetition rate to obtain a weighted repetition rate of each functional module;
[0018] Based on the weighted repetition rate of each functional module, the repetitive workload of each functional module is determined.
[0019] According to a software cost evaluation method provided by the present invention, based on the weighted repetition rate of each functional module, the repetitive workload of each functional module is determined, including:
[0020] Determine, from the functional modules, a plurality of target functional modules whose weighted repetition rates of the functional modules are greater than a preset repetition rate threshold;
[0021] Based on the reuse coefficient of each target functional module and the workload of each target functional module, the repeated workload of each functional module is determined, and the reuse coefficient is determined based on the weighted repetition rate of the target functional module and the number of other functional modules, and the other functional modules are modules containing the same repeated content as the target functional module.
[0022] According to a software cost evaluation method provided by the present invention, after determining the cost workload of each functional module based on the repetitive workload of each functional module, the method further includes:
[0023] The cost of each functional module is determined based on the cost workload of each functional module and the man-month unit price of the developer.
[0024] According to a software cost evaluation method provided by the present invention, based on the frequency of each global feature word vector in the multiple global feature word vectors, a plurality of target global feature word vectors having a frequency higher than a preset frequency threshold are determined, including:
[0025] The frequencies of the multiple global feature word vectors are counted based on a frequency histogram, and based on the frequency of each global feature word vector in the multiple global feature word vectors, a plurality of target global feature word vectors whose frequencies are higher than a preset frequency threshold are determined.
[0026] The present invention also provides a software cost evaluation system, comprising:
[0027] A feature word vector determination module, used to determine a plurality of global feature word vectors of the plurality of function modules and a feature word vector of each function module based on module development information of the plurality of function modules of the software to be evaluated, wherein the module development information includes development workload information of the function modules and development operation information of the function modules;
[0028] A feature word vector screening module, used to determine a plurality of target global feature word vectors having a frequency higher than a preset frequency threshold based on the frequency of each global feature word vector in the plurality of global feature word vectors;
[0029] A repeated workload determination module, configured to determine the repeated workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module, and a historical feature word library, wherein the historical feature word library is determined based on feature words corresponding to each operation in the software development process;
[0030] The cost workload determination module is used to determine the cost workload of each functional module based on the repetitive workload of each functional module, and the cost workload is the human resource cost for developing the functional module.
[0031] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the software cost evaluation method described in any one of the above methods is implemented.
[0032] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the software cost evaluation method described in any one of the above is implemented.
[0033] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the software cost evaluation method as described above is implemented.
[0034] The software cost evaluation method and system provided by the present invention determine the repetitive workload of each functional module through multiple target global feature word vectors of multiple functional modules of the software to be evaluated, the feature word vectors of each functional module and a historical feature word library, and determine the final actual workload based on the repetitive workload, fully considering the impact of the repetitive workload on the cost determination, achieving accurate determination of the workload of the software to be evaluated, and improving the accuracy of software cost determination. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 It is a flow chart of the software cost evaluation method provided by the present invention;
[0037] Figure 2 It is a flow chart of the method for evaluating software cost provided by the present invention;
[0038] Figure 3 It is a structural schematic diagram of the software cost evaluation system provided by the present invention;
[0039] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] The present invention proposes a software cost evaluation method. Figure 1The following is a flow chart of the software cost evaluation method provided by the present invention. Figure 1 The software cost evaluation method provided by the present invention may include:
[0042] Step 110, based on module development information of multiple functional modules of the software to be evaluated, determining multiple global feature word vectors of the multiple functional modules and feature word vectors of each functional module, wherein the module development information includes development workload information of the functional modules and development operation information of the functional modules;
[0043] Step 120, based on the frequency of each global feature word vector in the multiple global feature word vectors, determining multiple target global feature word vectors whose frequencies are higher than a preset frequency threshold;
[0044] Step 130, determining the repetitive workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module, and a historical feature word library, wherein the historical feature word library is determined based on feature words corresponding to each operation in the software development process;
[0045] Step 140, based on the repetitive workload of each functional module, determine the cost workload of each functional module, wherein the cost workload is the human resource cost for developing the functional module.
[0046] The execution subject of the software cost evaluation method provided by the present invention can be an electronic device, a component in an electronic device, an integrated circuit, or a chip. The electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), or a personal computer (PC), etc., which is not specifically limited by the present invention.
[0047] The following takes the method for evaluating the software cost provided by the present invention executed by a computer as an example to describe the technical solution of the present invention in detail.
[0048] In step 110, based on the module development information of multiple functional modules of the software to be evaluated, multiple global feature word vectors of the multiple functional modules and feature word vectors of each functional module are determined, and the module development information includes development workload information of the functional modules and development operation information of the functional modules.
[0049] A software consists of multiple functional modules. Multiple functional modules refer to independent modules with specific functions split out of the software system. These functional modules each undertake different tasks and responsibilities, and complete the overall function of the software system through collaboration and interaction with each other.
[0050] In software development, the entire software system is usually divided into multiple functional modules according to system requirements, and each functional module is responsible for completing one or more related functions. This modular design method helps improve the maintainability, scalability and reusability of the code, and also facilitates teamwork and parallel development.
[0051] Module development information refers to the relevant information for developing this function module, including the development workload information when the developer develops this function module and the development operation information of the function module. Among them, the development operation information refers to some operation introductions for developing this function module.
[0052] Determine the global feature word vectors of multiple functional modules, and determine the feature word vectors of each functional module respectively. The module development information of the functional module can be converted into feature word vectors based on technologies such as Bag of Words or word embedding models (such as Word2Vec, GloVe, etc.). These feature word vectors can reflect the frequency or semantic information of words in each functional module.
[0053] In step 120, based on the frequency of each global feature word vector in the multiple global feature word vectors, multiple target global feature word vectors having a frequency higher than a preset frequency threshold are determined.
[0054] The frequency of each global feature word vector among the multiple global feature word vectors is determined. Based on the frequency of each global feature word vector, the multiple global feature word vectors are screened to determine multiple target global feature word vectors whose frequencies are higher than a preset frequency threshold.
[0055] It is understandable that determining multiple target global feature word vectors with frequencies higher than a preset frequency threshold includes a large number of repeated operations in the functional module. The preset frequency threshold can be set as needed.
[0056] In step 130, the repetitive workload of each functional module is determined based on the multiple target global feature word vectors, the feature word vectors of each functional module and a historical feature word library, wherein the historical feature word library is determined based on feature words corresponding to each operation in the software development process.
[0057] Based on multiple target global feature word vectors, feature word vectors of each functional module and a historical feature word library, the repetitive workload of each functional module is determined.
[0058] The historical feature word library is pre-built, which contains a large number of feature words corresponding to various operations of functional modules, such as search, filter, sort, export, refresh, setting, etc.
[0059] In step 140, based on the repetitive workload of each functional module, the cost workload of each functional module is determined, and the cost workload is the human resource cost for developing the functional module.
[0060] The cost workload is the human resource cost required by developers to actually develop this function module. It is understandable that each module contains a lot of repetitive work. For developers who actually carry out development work, repetitive work only needs to be simply reused without repeated development.
[0061] If the repeated workload in the functional module is not processed and directly counted, the workload in the functional module will be too much and inaccurate. The repeated workload of the determined functional module is deleted and the specific cost workload is determined. The cost workload of the determined functional module is closer to the actual workload required by the developers in the functional module.
[0062] The software cost evaluation method provided by the embodiment of the present invention determines the repetitive workload of each functional module through multiple target global feature word vectors of multiple functional modules of the software to be evaluated, the feature word vectors of each functional module and the historical feature word library, and determines the final actual workload based on the repetitive workload, fully considers the impact of the repetitive workload on the cost determination, realizes the accurate determination of the workload of the software to be evaluated, and improves the accuracy of the software cost determination.
[0063] In one embodiment, based on the multiple target global feature word vectors, the feature word vectors of each functional module and the historical feature word library, the repetitive workload of each functional module is determined, including: determining a first repetition rate of each functional module based on the repetition rate of the target global feature word vector and the feature word vector in each functional module; determining a second repetition rate of each functional module based on the repetition rate of the feature word vector in each functional module and the word vector in the historical feature word library; determining a third repetition rate of each functional module based on the repetition rate between the feature word vectors in each functional module; determining the repetitive workload of each functional module based on the first repetition rate, the second repetition rate and the third repetition rate.
[0064] It is necessary to compare the target global feature word vector with the feature word vector in each functional module and calculate the repetition rate between them. This can help determine the amount of repetitive work in each functional module relative to the whole.
[0065] The feature word vectors in each functional module need to be compared with the word vectors in the historical feature word library to determine the repetition rate between them. This helps to determine the amount of repetitive work in the functional module related to the pre-built historical feature word library.
[0066] It is necessary to calculate the repetition rate between the feature word vectors within each functional module to determine the amount of repeated work within the functional module. This can help discover repeated code snippets within the module.
[0067] By comprehensively considering the first repetition rate, the second repetition rate and the third repetition rate, the overall repetitive workload of each functional module can be determined. This can help project managers better understand the repetitive workload between various functional modules and conduct resource planning and work allocation accordingly.
[0068] The software cost evaluation method provided by the embodiment of the present invention realizes the determination of the repeated workload of each functional module by calculating the repetition rate between multiple target global feature word vectors of multiple functional modules, feature word vectors of each functional module and historical feature word libraries.
[0069] In one embodiment, based on the first repetition rate, the second repetition rate and the third repetition rate, the repetitive workload of each functional module is determined, including: obtaining historical software cost calculation information of the software functional module, and determining weight information based on the historical software cost calculation information; based on the weight information, weighting the first repetition rate, the second repetition rate and the third repetition rate to obtain the weighted repetition rate of each functional module; based on the weighted repetition rate of each functional module, determining the repetitive workload of each functional module.
[0070] Historical software cost information is the relevant information for manual software cost calculation based on historical data, and is determined based on manual statistics by cost estimators.
[0071] Based on the historical software cost information, the weight information of the first repetition rate, the second repetition rate and the third repetition rate can be determined according to the actual situation. The weight can be set according to the proportion of different repetition rates in the calculation.
[0072] According to the determined weight information, the first repetition rate, the second repetition rate and the third repetition rate are weighted. The weighted repetition rate can be calculated using weighted average or other suitable algorithms. The weighted repetition rate will comprehensively consider the contribution of each repetition rate to make it more in line with the actual situation.
[0073] The software cost evaluation method provided by the embodiments of the present invention calculates the weighted sum of the first repetition rate, the second repetition rate, and the third repetition rate. A weighted average or other suitable algorithm can be used to calculate the weighted repetition rate. The weighted repetition rate comprehensively considers the contribution degree of each repetition rate, making it more in line with the actual situation.
[0074] In one embodiment, based on the weighted repetition rate of each functional module, determining the repeated workload of each functional module includes: determining, from each functional module, a plurality of target functional modules whose weighted repetition rate is greater than a preset repetition rate threshold; based on the reuse coefficient of each target functional module and the workload of each target functional module, determining the repeated workload of each functional module, where the reuse coefficient is determined based on the weighted repetition rate of the target functional module and the number of other functional modules, and the other functional modules are modules that contain the same repeated content as the target functional module.
[0075] Based on the preset repetition rate threshold, target functional modules with a weighted repetition rate greater than the preset repetition rate threshold are selected from all functional modules.
[0076] The reuse coefficient is determined based on the weighted repetition rate of the target functional module and the number of other functional modules. The reuse coefficient can measure the degree of repetition of the same repeated content contained in the target functional module in the entire system.
[0077] Optionally, select target functional modules with a weighted repetition rate i greater than 0.7, and n is the number of modules with the same repeated content as the current module. When i = 1, the module reuse coefficient is 1 / n + 0.3. When 0.8 < i < 0.9, the reuse coefficient of the module is 1 / n + 0.2. When 0.7 < i < 0.8, the reuse coefficient of the 0 - N module is 1 / n + 0.2.
[0078] The reuse coefficient and the workload of the target functional module can determine the repeated workload of each functional module. The repeated workload can be obtained by multiplying the workload of the target functional module by the reuse coefficient. This repeated workload represents the reduction in workload brought by the repeated content contained in the target functional module.
[0079] The software cost evaluation method provided by the embodiments of the present invention provides a basis for determining the subsequent repeated workload by determining the reuse coefficient.
[0080] In one embodiment, after determining the cost workload of each functional module based on the repeated workload of each functional module, it further includes: determining the cost of each functional module based on the cost workload of each functional module and the man - month unit price of the developers.
[0081] You need to determine the person-month price of a developer. The person-month price refers to the sum of the developer's monthly salary, benefits, and other related costs. This cost can be obtained from the company's internal human resources or finance department.
[0082] Based on the previously determined repetitive workload of each functional module, multiply it by the man-month unit price of the developer to get the cost workload of each functional module. The cost workload represents the human resource cost required to develop the functional module.
[0083] The software cost evaluation method provided by the embodiment of the present invention realizes the process of determining the cost of each functional module through the cost workload of each functional module and the man-month unit price of the developer.
[0084] In one embodiment, based on the frequency of each global feature word vector in the multiple global feature word vectors, multiple target global feature word vectors whose frequencies are higher than a preset frequency threshold are determined, including: counting the frequencies of the multiple global feature word vectors based on a frequency histogram, and based on the frequency of each global feature word vector in the multiple global feature word vectors, multiple target global feature word vectors whose frequencies are higher than a preset frequency threshold are determined.
[0085] Frequency histogram is a visualization tool used to analyze the data distribution in a data set. In the field of natural language processing, frequency histogram is often used to count the frequency of occurrence of words, phrases or feature words in a text.
[0086] Based on the frequency histogram, the global feature word vectors with a frequency higher than a preset threshold are determined. In specific implementation, the frequencies of all global feature word vectors can be traversed, and the vectors with a frequency higher than the preset threshold are selected as the target global feature word vectors.
[0087] The size of the preset frequency threshold should be adjusted according to the actual situation. If the preset threshold is too high, some important global feature word vectors may be missed, and if the preset threshold is too low, some noise data may be misjudged as the target global feature word vector. Therefore, flexible adjustment is required in practical applications.
[0088] The software cost evaluation method provided by the embodiment of the present invention realizes the determination of the frequency of each global feature word vector through a frequency histogram.
[0089] The following is a flow chart of a method for evaluating software cost provided by the present invention. Figure 2 Take the following as an example to illustrate the technical solution provided by the present invention:
[0090] Step 210, obtain an investment table, and obtain module development information of multiple functional modules of the software to be evaluated from the investment table, and determine multiple global feature word vectors A1 of the multiple functional modules.
[0091] Step 220: Based on the frequency histogram, count the frequencies of multiple global feature word vectors A1, and determine multiple target global feature word vectors A2 whose frequencies are higher than a preset frequency threshold.
[0092] Step 230: Determine the feature word vectors B1 of each functional module.
[0093] Step 240: Form a historical feature word library C1 based on historical experience.
[0094] Step 250: Repeatedly calculate the target global feature word vectors A2 and the feature word vectors B1 of each functional module to obtain the first repetition rate A2B1_i (0 <= i <= N) of each functional module.
[0095] Step 260: Calculate the repetition rate of the feature word vectors B1 of each functional module and the historical feature word library C1 to obtain the second repetition rate B1C1_i (0 <= i <= N) of each functional module.
[0096] Step 270: Traverse the feature word vectors B1 of each functional module in a loop to obtain the third repetition rate B1_i (0 <= i <= N) of each functional module.
[0097] Step 280: Determine the weights of each repetition rate, and perform average weighting of 0.3, 0.2, and 0.5 on A2B1_i, B1_i, and B1C1_i respectively to obtain the weighted repetition rate of each functional module.
[0098] Step 290: Select the modules with a weighted repetition rate i greater than 0.7, where n is the number of modules with the same repeated content as the current module. When i = 1, the module reuse coefficient is 1 / n + 0.3. When 0.8 < i < 0.9, the reuse coefficient of the corresponding module is 1 / n + 0.2. When 0.7 < i < 0.8, the reuse coefficient of the corresponding module is 1 / n + 0.2. The workload of each module is obtained through the reuse coefficient.
[0099] Figure 3 The structural schematic diagram of the software cost evaluation system provided by the present invention is as Figure 3 shown, and the system includes:
[0100] A feature word vector determination module 310, configured to determine multiple global feature word vectors of the multiple functional modules and the feature word vectors of each functional module based on the module development information of the multiple functional modules of the software to be evaluated, where the module development information includes the development workload information of the functional module and the development operation information of the functional module;
[0101] A feature word vector screening module 320, configured to determine multiple target global feature word vectors whose frequencies are higher than a preset frequency threshold based on the frequencies of the global feature word vectors in the multiple global feature word vectors;
[0102] A repeated workload determination module 330, configured to determine the repeated workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module, and a historical feature word library, wherein the historical feature word library is determined based on feature words corresponding to each operation in the software development process;
[0103] The cost workload determination module 340 is used to determine the cost workload of each functional module based on the repetitive workload of each functional module, and the cost workload is the human resource cost for developing the functional module.
[0104] The software cost evaluation system provided by the embodiment of the present invention determines the repetitive workload of each functional module through multiple target global feature word vectors of multiple functional modules of the software to be evaluated, the feature word vectors of each functional module, and a historical feature word library, and determines the final actual workload based on the repetitive workload, fully considering the impact of the repetitive workload on the cost determination, achieving accurate determination of the workload of the software to be evaluated, and improving the accuracy of software cost determination.
[0105] In one embodiment, the repetitive workload determination module 330 is specifically used to:
[0106] Determining the repetitive workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module, and the historical feature word library includes:
[0107] Determining a first repetition rate of each functional module based on a repetition rate between a target global feature word vector and a feature word vector in each functional module;
[0108] Determining a second repetition rate of each functional module based on a repetition rate of a feature word vector in each functional module and a word vector in a historical feature word library;
[0109] Determining a third repetition rate of each functional module based on a repetition rate between feature word vectors in each functional module;
[0110] Based on the first repetition rate, the second repetition rate, and the third repetition rate, the repetition workload of each functional module is determined.
[0111] In one embodiment, the repetitive workload determination module 330 is further specifically configured to:
[0112] Determining the repetitive workload of each functional module based on the first repetition rate, the second repetition rate, and the third repetition rate includes:
[0113] Acquire historical software cost calculation information of software function modules, and determine weight information based on the historical software cost calculation information;
[0114] Based on the weight information, weighting the first repetition rate, the second repetition rate, and the third repetition rate to obtain a weighted repetition rate of each functional module;
[0115] Based on the weighted repetition rate of each functional module, the repetitive workload of each functional module is determined.
[0116] In one embodiment, the repetitive workload determination module 330 is further specifically configured to:
[0117] Determining the repetitive workload of each functional module based on the weighted repetitive rate of each functional module includes:
[0118] Determine, from the functional modules, a plurality of target functional modules whose weighted repetition rates of the functional modules are greater than a preset repetition rate threshold;
[0119] Based on the reuse coefficient of each target functional module and the workload of each target functional module, the repeated workload of each functional module is determined, and the reuse coefficient is determined based on the weighted repetition rate of the target functional module and the number of other functional modules, and the other functional modules are modules containing the same repeated content as the target functional module.
[0120] In one embodiment, the cost workload determination module 340 is specifically used to:
[0121] After determining the cost workload of each functional module based on the repetitive workload of each functional module, the method further includes:
[0122] The cost of each functional module is determined based on the cost workload of each functional module and the man-month unit price of the developer.
[0123] In one embodiment, the feature word vector screening module 320 is specifically used to:
[0124] Determining a plurality of target global feature word vectors having a frequency higher than a preset frequency threshold based on the frequency of each global feature word vector in the plurality of global feature word vectors includes:
[0125] The frequencies of the multiple global feature word vectors are counted based on a frequency histogram, and based on the frequency of each global feature word vector in the multiple global feature word vectors, a plurality of target global feature word vectors whose frequencies are higher than a preset frequency threshold are determined.
[0126] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the software cost evaluation method, which includes:
[0127] Based on module development information of multiple functional modules of the software to be evaluated, determining multiple global feature word vectors of the multiple functional modules and feature word vectors of each functional module, wherein the module development information includes development workload information of the functional modules and development operation information of the functional modules;
[0128] Based on the frequency of each global feature word vector in the multiple global feature word vectors, determining multiple target global feature word vectors whose frequencies are higher than a preset frequency threshold;
[0129] Determine the repetitive workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module, and a historical feature word library, wherein the historical feature word library is determined based on feature words corresponding to each operation in the software development process;
[0130] Based on the repetitive workload of each functional module, the cost workload of each functional module is determined, and the cost workload is the human resource cost for developing the functional module.
[0131] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0132] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the software cost evaluation method provided by the above methods, the method comprising:
[0133] Based on module development information of multiple functional modules of the software to be evaluated, determining multiple global feature word vectors of the multiple functional modules and feature word vectors of each functional module, wherein the module development information includes development workload information of the functional modules and development operation information of the functional modules;
[0134] Based on the frequency of each global feature word vector in the multiple global feature word vectors, determining multiple target global feature word vectors whose frequencies are higher than a preset frequency threshold;
[0135] Determine the repetitive workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module, and a historical feature word library, wherein the historical feature word library is determined based on feature words corresponding to each operation in the software development process;
[0136] Based on the repetitive workload of each functional module, the cost workload of each functional module is determined, and the cost workload is the human resource cost for developing the functional module.
[0137] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the software cost evaluation method provided above, the method comprising:
[0138] Based on module development information of multiple functional modules of the software to be evaluated, determining multiple global feature word vectors of the multiple functional modules and feature word vectors of each functional module, wherein the module development information includes development workload information of the functional modules and development operation information of the functional modules;
[0139] Based on the frequency of each global feature word vector in the multiple global feature word vectors, determining multiple target global feature word vectors whose frequencies are higher than a preset frequency threshold;
[0140] Determine the repetitive workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module, and a historical feature word library, wherein the historical feature word library is determined based on feature words corresponding to each operation in the software development process;
[0141] Based on the repetitive workload of each functional module, the cost workload of each functional module is determined, and the cost workload is the human resource cost for developing the functional module.
[0142] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0143] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A software cost evaluation method, characterized in that: The method comprises: Based on module development information of multiple functional modules of the software to be evaluated, determining multiple global feature word vectors of the multiple functional modules and feature word vectors of each functional module, wherein the module development information includes development workload information of the functional modules and development operation information of the functional modules; Based on the frequency of each global feature word vector in the multiple global feature word vectors, determining multiple target global feature word vectors whose frequencies are higher than a preset frequency threshold; Determine the repetitive workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module, and a historical feature word library, wherein the historical feature word library is determined based on feature words corresponding to each operation in the software development process; Based on the repetitive workload of each functional module, determine the cost workload of each functional module, wherein the cost workload is the human resource cost for developing the functional module; The determining the repetitive workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module and the historical feature word library includes: Determining a first repetition rate of each functional module based on a repetition rate between a target global feature word vector and a feature word vector in each functional module; Determining a second repetition rate of each functional module based on a repetition rate of a feature word vector in each functional module and a word vector in a historical feature word library; Determining a third repetition rate of each functional module based on a repetition rate between feature word vectors in each functional module; Determining the repetitive workload of each functional module based on the first repetition rate, the second repetition rate, and the third repetition rate; The determining the repetitive workload of each functional module based on the first repetition rate, the second repetition rate, and the third repetition rate includes: Acquire historical software cost calculation information of software function modules, and determine weight information based on the historical software cost calculation information; Based on the weight information, weighting the first repetition rate, the second repetition rate, and the third repetition rate to obtain a weighted repetition rate of each functional module; Determining the repetitive workload of each functional module based on the weighted repetitive rate of each functional module; The determining the repetitive workload of each functional module based on the weighted repetition rate of each functional module includes: Determine, from the functional modules, a plurality of target functional modules whose weighted repetition rates of the functional modules are greater than a preset repetition rate threshold; Based on the reuse coefficient of each target functional module and the workload of each target functional module, the repeated workload of each functional module is determined, and the reuse coefficient is determined based on the weighted repetition rate of the target functional module and the number of other functional modules, and the other functional modules are modules containing the same repeated content as the target functional module.
2. The software cost evaluation method according to claim 1, characterized in that: After determining the cost workload of each functional module based on the repeated workload of each functional module, the method further includes: The cost of each functional module is determined based on the cost workload of each functional module and the man-month unit price of the developer.
3. The software cost evaluation method according to claim 1, characterized in that: The determining, based on the frequency of each global feature word vector in the multiple global feature word vectors, multiple target global feature word vectors having a frequency higher than a preset frequency threshold comprises: The frequencies of the multiple global feature word vectors are counted based on a frequency histogram, and based on the frequency of each global feature word vector in the multiple global feature word vectors, a plurality of target global feature word vectors whose frequencies are higher than a preset frequency threshold are determined.
4. A software cost evaluation system, the system being used to execute the software cost evaluation method as claimed in claim 1, characterized in that: include: A feature word vector determination module, used to determine a plurality of global feature word vectors of the plurality of function modules and a feature word vector of each function module based on module development information of the plurality of function modules of the software to be evaluated, wherein the module development information includes development workload information of the function modules and development operation information of the function modules; A feature word vector screening module, used to determine a plurality of target global feature word vectors having a frequency higher than a preset frequency threshold based on the frequency of each global feature word vector in the plurality of global feature word vectors; A repeated workload determination module, configured to determine the repeated workload of each functional module based on the multiple target global feature word vectors, the feature word vectors of each functional module, and a historical feature word library, wherein the historical feature word library is determined based on feature words corresponding to each operation in the software development process; The cost workload determination module is used to determine the cost workload of each functional module based on the repetitive workload of each functional module, and the cost workload is the human resource cost for developing the functional module.
5. An electronic 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 software cost evaluation method according to any one of claims 1 to 3 is implemented.
6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the software cost evaluation method according to any one of claims 1 to 3 is implemented.
7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the software cost evaluation method according to any one of claims 1 to 3 is implemented.
