Feature processing method, device, equipment and storage medium
Through clustering and sharing degree adjustment technology, the problems of premature convergence and poor diversity of genetic algorithms on large-scale data sets are solved, optimal combination features are obtained, and the accuracy of data analysis and the reliability of model predictions are improved.
Patent Information
- Application Number
- CN202410560941.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-05-08
AI Technical Summary
Traditional feature combination methods based on genetic algorithms have problems such as premature convergence and poor diversity of combined features on large-scale data sets, resulting in the inability to obtain combination features with optimal performance.
By clustering the combined features in the feature set, determining the degree of sharing, adjusting the fitness, and selecting the parent combination features for offspring derivation processing based on the shared fitness, avoiding excessive competition when directly selecting parent features in the feature set, ensuring Combining feature diversity and avoiding premature convergence.
It achieves the optimal performance of the combined features, improves the processing effect of the target task, and ensures that the combined features can find the optimal solution in the global search.
Smart Images

Figure CN118132972B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a feature processing method, device, equipment and storage medium. Background Art
[0002] With the rapid development of artificial intelligence and big data technology, simple feature extraction of data is far from meeting the needs of data analysis. Feature combination is an effective way of feature processing. It can reveal the more complex internal connections and patterns between data features by integrating and reconstructing the original single features, thereby enhancing the accuracy and reliability of data analysis and model prediction.
[0003] Among the feature combination methods, the genetic algorithm-based method has been widely used due to its superior global search capability. This method selects and optimizes features by imitating the evolutionary mechanism of nature, and effectively combines the best feature set that can explain the target variable.
[0004] However, when traditional feature combination methods based on genetic algorithms are used on large-scale data sets, there are problems such as premature convergence and poor diversity of combined features, which makes it impossible to obtain the combined features with the best performance. Summary of the invention
[0005] Based on this, it is necessary to provide a feature processing method, device, equipment and storage medium for the above-mentioned technical problems, which can obtain the combined features with the best performance.
[0006] In a first aspect, the present application provides a feature processing method. The method comprises:
[0007] Cluster the combined features in the feature set to obtain feature subsets;
[0008] Determining the sharing degree of each combined feature in the feature subset relative to other combined features respectively;
[0009] Based on the sharing degree, the fitness of each combined feature in the feature subset is adjusted to obtain a shared fitness; the fitness is an effect evaluation index when the combined feature is used for task processing;
[0010] Selecting a combined feature from the feature subset based on the shared fitness as a parent combined feature;
[0011] A child generation derivation process is performed based on the parent generation combined features to obtain a target combined feature for processing a target task.
[0012] In a second aspect, the present application also provides a feature processing device. The device comprises:
[0013] The clustering module is used to cluster the combined features in the feature set to obtain feature subsets;
[0014] A sharing degree determination module, used to respectively determine the sharing degree of each combined feature in the feature subset relative to other combined features;
[0015] A fitness adjustment module, used to adjust the fitness of each combined feature in the feature subset based on the sharing degree to obtain a shared fitness; the fitness is an effect evaluation index when the combined feature is used for task processing;
[0016] A parent generation selection module, configured to select a combination feature from the feature subset as a parent generation combination feature based on the shared fitness;
[0017] The offspring derivation module is used to perform offspring derivation processing based on the parent generation combination features to obtain target combination features for processing target tasks.
[0018] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any of the above methods are implemented.
[0019] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any of the methods described above are implemented.
[0020] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0021] The feature processing method, apparatus, computer device, storage medium and computer program product cluster the combined features in the feature set to obtain feature subsets, and select the parent combined features from each feature subset for offspring derivation processing, thereby avoiding the problem of poor diversity of combined features due to excessive competition when directly selecting parent features from the feature set, and also avoiding the feature processing process from converging to a non-global optimal solution too early, thereby obtaining the optimal combined features; and, when selecting the parent combined features from the feature subset, by calculating the sharing degree of each combined feature with other combined features in the subset in the feature subset, the features are sorted based on the sharing degree. The original fitness of each combination feature in the subset is adjusted to obtain the shared fitness, where fitness is an effect evaluation index when using the combination feature for task processing, which reduces the advantage of the combination feature with high sharing degree, and selects the combination feature as the parent combination feature in the feature subset based on the shared fitness, so as to avoid the feature processing process from converging too early on the combination feature that seems excellent but may actually be the local optimal one, and ensures that the combination features that provide different information have the opportunity to be retained in the feature set, so that the optimal combination feature can be effectively searched in the global, and then when the target task is processed based on the obtained optimal combination feature in the subsequent processing, the processing effect of the target task can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 An application environment diagram of a feature processing method in an embodiment;
[0023] Figure 2 is a schematic diagram of a genetic algorithm in one embodiment;
[0024] Figure 3 is a flow chart of a feature processing method in one embodiment;
[0025] Figure 4 A schematic diagram showing a comparison between a genetic algorithm and a feature processing method in one embodiment;
[0026] Figure 5 A schematic diagram of a tree structure expressing a combination feature in one embodiment;
[0027] Figure 6 is a schematic diagram of a crossover operator in one embodiment;
[0028] Figure 7 is a schematic diagram of a mutation operator in one embodiment;
[0029] Figure 8 is a flow chart of a feature processing method in another embodiment;
[0030] Fig. 9 is a flow chart of a feature processing method in another embodiment;
[0031] Fig.10 A schematic diagram of planning a route in one embodiment;
[0032] Fig.11 is a schematic diagram of a road satellite image in one embodiment;
[0033] Fig.12 is a schematic diagram of a road reconstruction image in one embodiment;
[0034] Fig.13 is a structural block diagram of a feature processing device in one embodiment;
[0035] Fig.14 is a structural block diagram of a feature processing device in another embodiment;
[0036] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0037] 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.
[0038] The feature processing method provided in the embodiment of the present application relates to the machine learning technology of artificial intelligence, wherein:
[0039] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0040] Machine Learning (ML) is a multi-disciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and learning by induction. The pre-trained model is the latest development of deep learning, which integrates the above technologies.
[0041] The feature processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other servers. This feature addition method can be executed by the terminal 102 or the server 104 alone, or it can be interactively executed by the terminal 102 and the server 104. Taking the execution of the terminal 102 alone as an example, the terminal 102 clusters the combined features in the feature set to obtain a feature subset; respectively determine the sharing degree of each combined feature in the feature subset relative to other combined features; adjust the fitness of each combined feature in the feature subset based on the sharing degree to obtain shared fitness; fitness is an effect evaluation index when using combined features for task processing; select combined features as parent combined features in the feature subset based on shared fitness; perform child derivative processing based on the parent combined features to obtain target combined features for processing target tasks.
[0042] Among them, the terminal can be but is not limited to various desktop computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.
[0043] Genetic Algorithm (GA) is a search heuristic algorithm that simulates biological natural selection and genetic mechanisms. Its basic principle is to optimize the solution of problems by simulating the genetic and selection mechanisms in the natural evolution process. Figure 2 The schematic diagram of the genetic algorithm principle shown in the figure mainly includes the steps of evaluation, selection, crossover and mutation, among which:
[0044] Evaluation means that in each generation of the genetic algorithm, the fitness of each individual in the population is first evaluated to determine its fitness. Fitness is usually a quantitative indicator of the individual's problem-solving ability. The higher the problem-solving ability, the higher the fitness.
[0045] Selection is to select which individuals to use as parents for the next generation. Usually, individuals with high fitness are selected. The specific selection method can be Figure 2 The roulette wheel selection shown in the figure can also be other selection methods such as tournament selection, rank selection, and steady state selection. Roulette wheel selection assigns the probability of selection to each individual, and the probability size is proportional to its fitness, such as Figure 2 In the roulette wheel shown in the figure, the individual with the highest fitness occupies the largest sector area on the roulette wheel, and the individual with the lowest fitness occupies the smallest sector area on the roulette wheel. During selection, the roulette wheel will rotate and stop at a certain point (selection point). The individual that falls in the area corresponding to this point is selected as the parent for breeding the new generation.
[0046] Crossover is the exchange of information between parent individuals to produce new individuals with parent characteristics, namely offspring. The specific crossover methods can be single-point crossover, two-point crossover, uniform crossover, etc. Figure 2 The one shown in the figure is a single-point crossover. A single-point crossover is to randomly select a crossover point, disconnect the two parent individuals at this point, and then exchange the tail fragments to generate two new individuals, such as Figure 2 As shown, the gene string of the parent is cut at a certain point, and then the fragments are exchanged to produce offspring.
[0047] Mutation is to increase the genetic diversity of a population by randomly changing certain genes in individuals. The specific ways of mutation can be point mutation, substitution mutation, uniform mutation, Gaussian mutation, etc. Figure 2The one shown in the figure is a substitution mutation, which specifically includes a swap operation and an inverse operation. The swap operation is to exchange the positions of two genes in an individual gene string, and the inverse operation is to take a section of an individual gene string and reverse it.
[0048] The offspring produced by crossover and mutation will form a new population, which will replace the current population in the next generation or mix with other individuals in the current population. Then, the new population enters the evaluation phase again, and the whole process is iterated for multiple generations until the termination condition is met, such as reaching a preset number of iterations or fitness threshold.
[0049] In one embodiment, Figure 3 As shown, a feature processing method is provided, which is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:
[0050] S302, clustering the combined features in the feature set to obtain a feature subset.
[0051] Among them, the feature set is a collection of combined features, and the combined feature is a new feature generated by combining at least one original basic feature according to certain rules.
[0052] It should be noted that the feature processing method involved in the embodiment of the present application is implemented based on a genetic algorithm, specifically, it can be implemented based on a genetic programming algorithm. The genetic programming algorithm is a branch of the genetic algorithm, and its characteristic is to use a tree structure to express genotypes. The feature combination problem is similar to the evolution problem of organisms in an ecosystem, so the genetic programming algorithm can be used to process the feature combination problem, such as Figure 4 As shown in the figure, the feature combination method based on the genetic programming algorithm, the modeling scenario corresponds to the natural environment in the ecosystem, different natural environments will produce different types of individuals, and the effective feature combination methods in different modeling scenarios are different; the feature combination method is expressed through a tree structure, and the feature combination method can also be called a combined feature, which corresponds to the individuals of the organisms in the ecosystem, and the set of combined features corresponds to the population of organisms in the ecosystem; the function expression is expressed through a tree structure, the internal nodes of the tree are composed of atomic operators, and the leaf nodes are composed of basic features or constants, and the tree structure is the DNA of individual organisms, because it carries information that determines individual characteristics; the predictive ability of the combined feature corresponds to the fitness of the individual organism, and the predictive ability can be specifically characterized by accuracy, precision, recall, mean square error or other relevant performance indicators.
[0053] Genetic programming algorithm is used to deal with feature combination problems. The combined features can be expressed through a tree structure. Figure 5The 6 different tree structures shown in the figure have different function expressions. The function expressions that do not pass correspond to different combination features. The tree structure is composed of internal nodes and leaf nodes. Leaf nodes can be basic features or constants. Internal nodes are composed of unary operators, binary operators, and multi-ary operators. Unary operators can be the operators shown in the following formula:
[0054]
[0055] The binary operator can be specifically the following operator:
[0056]
[0057] For example, Figure 5 The function expression corresponding to the combined feature 1 shown in is , the function expression corresponding to the combined feature 2 is , Figure 5 In the above equation, f1, f2, f3, f4 and f n They represent different basic characteristics respectively.
[0058] It can be understood that the feature set to be clustered can be a k-th generation population derived from a genetic programming algorithm, where k is an integer greater than or equal to 1. When k is equal to 1, the combined features in the feature set can be combined features randomly generated based on basic features. When k is greater than 1, the combined features in the feature set can be derived through a series of genetic operations (such as selection, crossover and mutation).
[0059] Clustering is used to group objects in a data set so that objects in the same group (i.e., cluster) are more similar than objects in other groups. It can be understood that in the embodiments of the present application, by clustering similar combined features together, the complexity of subsequent processing can be reduced; the feature subset obtained by clustering is a subset of the feature set, and the feature subset includes at least one combined feature.
[0060] Specifically, the computer device can obtain each combination feature in the contemporary feature set, and use a preset clustering algorithm to cluster each combination feature, so as to cluster similar combination features together to obtain at least two clusters, each cluster being the obtained feature subset. The preset clustering algorithm can specifically be a clustering algorithm such as K-means clustering and hierarchical clustering.
[0061] S304: Determine the sharing degree of each combined feature in the feature subset relative to other combined features.
[0062] The sharing degree is used to describe the degree of mutual dependence or correlation between combined features. The sharing degree between any two combined features can characterize the degree of overlap between the two combined features when providing information. For example, if two combined features provide similar information to the model to some extent, then their sharing degree is higher. Therefore, the sharing degree between two combined features can be characterized by the similarity between the two combined features.
[0063] Other combination features are combination features other than the combination features specified in the feature subset. For example, if a feature subset includes combination feature 1, combination feature 3 and combination feature 5, then for combination feature 1, the other combination features corresponding to it are combination feature 2 and combination feature 5; for combination feature 3, the other combination features corresponding to it are combination feature 1 and combination feature 5; and for combination feature 5, the other combination features corresponding to it are combination feature 1 and combination feature 3.
[0064] Specifically, for any feature subset, the computer device separately determines the other combined features corresponding to each combined feature in the feature subset, and for any combined feature in the feature subset, separately determines the sharing degree between the combined feature and the other corresponding combined features. The above processing is performed on each combined feature of each feature subset, so as to obtain the sharing degree of each combined feature of each feature subset relative to other combined features.
[0065] S306, adjusting the fitness of each combined feature in the feature subset based on the sharing degree to obtain the sharing fitness.
[0066] Among them, fitness is used to evaluate the performance or effectiveness of a solution on a given task. It can be understood that in the embodiment of the present application, fitness is an effect evaluation indicator when using combined features to process tasks. In the field of data science and machine learning, given tasks specifically include but are not limited to classification, regression, clustering, prediction and optimization, etc. Fitness can be a variety of possible evaluation criteria such as accuracy, prediction error rate, information gain, etc.
[0067] Shared fitness is the result of adjusting the original fitness score after considering the mutual influence and dependence between different combination features.
[0068] Specifically, for any combination of features in any feature subset, after determining the degree of sharing of the combination of features relative to other combination of features, the computer device can further determine the fitness of the combination of features, and determine the fitness adjustment coefficient based on the degree of sharing of the combination of features relative to other combination of features, and adjust the fitness of the combination of features based on the fitness adjustment coefficient to obtain shared fitness.
[0069] S308: Select a combined feature from the feature subset based on the shared fitness as a parent combined feature.
[0070] Among them, the parent generation combination features refer to the combination features selected from the contemporary feature set to generate a new generation (offspring).
[0071] Specifically, for any feature subset, after determining the shared fitness of each combined feature in the feature subset, the computer device can use a preset feature selection algorithm to select a preset number of combined features from the feature subset as parent combined features, and perform the above processing on each feature subset, so as to obtain the parent combined features selected from each feature subset.
[0072] Among them, the preset feature selection algorithm can be a selection algorithm based on shared fitness, which can be Roulette Wheel Selection, Tournament Selection, Rank Selection, Steady State Selection and other selection methods.
[0073] It should be noted that the number of parent combination features selected from each feature subset can be the same or different, that is, the preset number corresponding to each feature subset can be the same or different. Specifically, the corresponding preset number can be set according to the size of each feature subset, for example, preset number = selection ratio * subset size. For example, if a feature subset includes 10 combination features and the corresponding selection ratio is 0.2, then a preset number of 2 combination features are selected from the feature subset as the parent combination features. It can be understood that when the value of the preset number determined by the expression for a feature subset is less than 1, a preset number of 1 combination features are selected from the feature subset as the parent combination features.
[0074] S310, performing child generation derivation processing based on the parent generation combination feature to obtain a target combination feature for processing the target task.
[0075] Among them, offspring derivation refers to the process of generating the next generation of population from one generation of population through specific genetic operations, including crossover, mutation and replication operations. The purpose is to gradually improve the overall fitness of the population while maintaining population diversity.
[0076] In one embodiment, after selecting the parent generation combination features from each feature subset, the computer device can generate a new generation of combination features based on the selected parent generation combination features, and update the population based on the new generation of combination features to obtain a new generation of population, which can also be called a new generation of feature set, and determine whether the stopping condition is currently met. When the stopping condition is not met, return to execute step S302 for the new generation of feature set until the stopping condition is met to obtain the target combination features for processing the target task.
[0077] Among them, the stopping condition is a condition used to determine when to stop deriving the next generation, which can be a number of iterations condition, a fitness threshold condition, etc. For example, if the stopping condition is an iteration number condition, it can stop when the number of iterations corresponding to the obtained new generation feature set is greater than the preset maximum number of iterations; if the stopping condition is a fitness threshold condition, it can stop when the fitness of the combined feature with the largest fitness in the new generation feature set reaches the preset fitness threshold.
[0078] In the above feature processing method, the combined features in the feature set are clustered to obtain feature subsets, and the parent combined features are selected from each feature subset for offspring derivation processing, which avoids the problem of poor diversity of combined features due to excessive competition when the parent features are directly selected from the feature set. At the same time, it can also avoid the feature processing process from converging to a non-global optimal solution too early, so that the optimal combined features can be obtained; and when selecting the parent combined features from the feature subset, the sharing degree of each combined feature with other combined features in the subset is calculated in the feature subset, where fitness is the use of combined features for task processing The effect evaluation index of the processing time is used. The original fitness of each combination feature in the feature subset is adjusted based on the sharing degree to obtain the shared fitness, which reduces the advantage of the combination features with high sharing degree. Based on the shared fitness, the combination features are selected as the parent combination features in the feature subset, which avoids the feature processing process from converging too early on the combination features that seem excellent but may actually be the local optimal one. It ensures that the combination features that provide different information have the opportunity to be retained in the feature set, so that the optimal combination features can be effectively searched in the global, and then when the target task is processed based on the obtained optimal combination features in the subsequent processing, the processing effect of the target task can be improved.
[0079] In one embodiment, a computer device clusters combined features in a feature set to obtain a feature subset, including the following steps: determining a feature vector corresponding to each combined feature in the feature set; determining feature similarity between the combined features based on the combined vector; and clustering the combined features based on the feature similarity to obtain a feature subset.
[0080] Among them, the feature vector is a numerical description of the combined feature, that is, the combined feature is represented in the form of a vector. For example, there are basic features A, basic features B and basic features C, and there is a combined feature A+B. The feature vector corresponding to the combined feature A+B is [1,1,0,1,0,0,0], where the first three digits [1,1,0] respectively indicate whether the basic features A, basic features B and basic features C participate, for example, 1 indicates participation and 0 indicates non-participation. The last four digits [1,0,0,0] indicate the operator used, corresponding to addition, subtraction, multiplication and division, respectively. For example, only addition is used here.
[0081] Feature similarity is a measure of the similarity between two combined features.
[0082] Specifically, after obtaining each feature set, the computer device obtains the feature expression corresponding to the combined feature in the feature set, generates a feature vector corresponding to the combined feature according to the feature expression corresponding to the combined feature, and uses a preset similarity algorithm to determine the feature similarity between any two combined features, and clusters the combined features based on the similarity between the combined features using a preset clustering algorithm to obtain a feature subset.
[0083] The similarity algorithm may specifically be at least one of cosine similarity, Euclidean distance, and Pearson correlation coefficient.
[0084] In the above embodiment, the computer device can structure and quantify the combined feature information by determining the feature vector corresponding to each combined feature in the feature set, so that the comparison and processing between the combined features are more efficient, and the feature similarity between the combined features is determined based on the combined vector, and the combined features are clustered based on the feature similarity. The combined features with similar characteristics can be naturally organized together to obtain a feature subset, which can ensure that in the subsequent feature selection or optimization process, the selected combined features cover different types of information, avoiding the problem of poor diversity of combined features due to excessive competition when directly selecting parent features in the feature set, and also avoiding the feature processing process from converging to a non-global optimal solution too early, so that the optimal combined features can be obtained.
[0085] In one embodiment, the process of a computer device separately determining the degree of sharing of each combined feature in a feature subset relative to other combined features includes the following steps: in the feature subset, separately determining the distance between each combined feature and other combined features; determining the subset radius of the feature subset based on the distance; and determining the degree of sharing of each combined feature relative to other combined features based on the distance and the subset radius.
[0086] Among them, the subset radius refers to the distance from the combined feature in the feature subset that is most dissimilar to the subset center to the subset center. The subset center is a representative data point used to represent the central position or core feature of the entire feature subset. The subset center can specifically be the geometric center, mean center, center or other specific center of the feature subset. For example, in an embodiment of the present application, the subset center of the feature subset can also be the combined feature with the largest fitness in the feature subset.
[0087] Specifically, for any feature subset, after obtaining the feature subset, the computer device determines the subset center of the feature subset, and determines the distance between each combined feature and other features, and determines the similarity between each combined feature and other features, and determines the edge combined feature that is least similar to the subset center based on the similarity, and determines the subset radius of the feature subset according to the distance between the edge combined feature and the subset center. For any combined feature, after obtaining the distance between the combined feature and any other combined feature, the distance is compared with the subset radius. When the distance between two combined features is greater than or equal to the subset radius, the sharing degree between the two combined features is determined to be 0. When the distance between the two combined features is less than the subset radius, the sharing degree between the two combined features is determined according to the ratio between the distance and the subset radius.
[0088] In one embodiment, the sharing degree sh(d) between any two combined features, the distance d between the two combined features, and the subset radius of the feature subset to which the two combined features belong The following relationship is satisfied:
[0089]
[0090] Here, λ is a constant that controls the sensitivity of distance to the sharing degree. When λ is large, even a small increase in distance can significantly reduce the sharing degree.
[0091] In the above embodiment, the computer device can more accurately evaluate the importance or uniqueness of each combined feature relative to other combined features in the subset by calculating the distances between features and the subset radius determined based on these distances, thereby identifying those combined features that may have a key impact on the entire data set, as well as general combined features with high repeatability, so as to adjust the fitness of this combined feature, so that the adjusted fitness of these combined features can more accurately reflect the actual value and influence of the combined features, thereby mining the optimal combined features.
[0092] In one embodiment, the process of determining the subset radius of a feature subset based on distance by a computer device includes the following steps: obtaining the fitness of each combination feature in the feature subset; in the feature subset, selecting the combination feature corresponding to the fitness that meets the fitness condition as the dominant combination feature; in the distance, taking the distance between the dominant combination feature and other combination features that meets the distance condition as the subset radius of the feature subset.
[0093] Among them, the fitness condition is a specific requirement or standard for fitness, which can be a fitness threshold condition, a fitness ranking condition, etc. The fitness threshold condition refers to presetting a fitness threshold. When the fitness of the combined feature is greater than or equal to the fitness threshold, it is determined that the fitness of the combined feature meets the fitness threshold condition. The fitness ranking condition is a condition for sorting based on the fitness of all combined features. For example, the combined features are sorted from high to low according to the fitness, and the combined features ranked in the top preset digits or the top percentage digits are determined as the combined features that meet the fitness condition.
[0094] The distance condition is a specific requirement or standard for the distance, which may be a distance threshold condition, a distance sorting condition, etc. The distance threshold condition refers to a preset distance threshold. When the distance between two combined features is greater than or equal to the distance threshold, it is determined that the distance between the two combined features meets the distance threshold condition. The distance sorting condition is a condition for sorting based on the distance between all combined features, such as sorting from large to small according to the distance, and determining the two combined features ranked in the top preset digits or the top percentage digits as the two combined features that meet the distance condition.
[0095] The dominant combination feature is the combination feature that performs best in the feature subset, and specifically can be the combination feature with the greatest fitness.
[0096] Specifically, the computer device can obtain a predefined fitness function, obtain the task effect score value corresponding to any combination feature in the feature subset, and input the task effect score value corresponding to the combination feature into the fitness function, process the task effect score value based on the fitness function, and obtain the fitness corresponding to the combination feature. The above processing is performed on each combination feature in the feature subset, so as to obtain the fitness corresponding to each combination feature in the feature subset, and determine the combination feature with the largest fitness in the feature subset as the dominant combination feature, and among the distances between the dominant combination feature and other combination features, the maximum distance is used as the subset radius of the feature subset.
[0097] Among them, the task effect score value can specifically be the classification accuracy, prediction error, R² value of the regression model, etc.
[0098] In one embodiment, the fitness function can be represented as follows:
[0099]
[0100] in, For fitness, It is the task effect score, which can also be called performance measurement value. is a penalty term used to reduce the fitness of overly complex or undesirable solutions, and β is a weight factor used to balance the relative importance of performance metrics and penalty terms.
[0101] In the above embodiment, the computer device obtains the fitness of each combination feature in the feature subset, and selects the feature that meets the fitness condition as the dominant combination feature. The subset radius is defined based on the most representative or optimal combination feature in the subset, ensuring that the subset radius can truly reflect the core feature space of the feature subset. Therefore, when the sharing degree between the combination features is subsequently determined based on the subset radius, the obtained sharing degree can also more accurately evaluate the importance or uniqueness of each combination feature relative to other combination features in the subset.
[0102] In one embodiment, a computer device adjusts the fitness of each combination feature in a feature subset based on the sharing degree, and the process of obtaining the shared fitness includes the following steps: summing the sharing degree of each combination feature with other combination features to obtain the overall sharing degree corresponding to each combination feature; based on the overall sharing degree corresponding to each combination feature, adjusting the fitness of the corresponding combination features to obtain the shared fitness of each combination feature.
[0103] The overall sharing degree is the sum of the similarities between the specified combined feature and other combined features in the same feature subset.
[0104] Specifically, for any combination feature, after determining the sharing degree between the combination feature and each other combination feature in the same feature subset, the computer device can sum these sharing degrees to obtain the overall sharing degree corresponding to the combination feature, and determine the fitness adjustment coefficient based on the overall sharing degree, and adjust the fitness of the combination feature based on the fitness adjustment coefficient to obtain the shared fitness of the combination feature. The above processing is performed on each combination feature in each feature subset to obtain the shared fitness of each combination feature in each feature subset.
[0105] In one embodiment, the shared fitness corresponding to the combined feature u and the shared degree between the combined feature and other combined features satisfy the following relationship:
[0106]
[0107] in, is the shared fitness corresponding to the combined feature u, is the original fitness corresponding to the combined feature u, is the overall shared fitness between the combination feature u and other combination features 1 to other combination features M, and v represents the vth other combination feature.
[0108] In the above embodiment, the computer device obtains the overall sharing degree corresponding to each combined feature by summing up the sharing degree of each combined feature with other combined features respectively. The overall sharing degree shows the strength of association between a combined feature and other combined features. The fitness of the corresponding combined feature is adjusted based on the overall sharing degree to obtain the shared fitness of the combined feature. The obtained shared fitness can more accurately reflect the actual value and influence of the combined feature, and then mine the optimal combined feature.
[0109] In one embodiment, a computer device performs offspring derivation processing based on parent combination features to obtain a target combination feature for processing a target task, the process comprising the following steps: generating candidate offspring combination features based on the parent combination features; updating a feature set based on the candidate offspring combination features to obtain an updated feature set; returning to the updated feature set to perform the step of clustering the combination features in the feature set until a stop condition is reached to obtain the target combination feature for processing the target task.
[0110] Among them, the candidate offspring combination features are new combination features generated based on the selected parent combination features, and these combination features have not yet been evaluated and added to the feature set.
[0111] Specifically, after selecting the parent generation combination features from multiple feature subsets, the computer device can perform genetic operations on the selected parent generation combination features to obtain candidate child generation combination features, and evaluate the obtained candidate child generation combination features, select candidate child generation combination features that meet the addition condition based on the evaluation result, determine the combination features in the feature set that meet the replacement condition, and remove the combination features in the feature set that meet the replacement condition, add the selected candidate child generation combination features that meet the addition condition to the feature set, thereby updating the feature set to obtain a new generation of feature sets, and determine whether the stop condition is currently met. When the stop condition is not met, return to executing step S302 for the new generation of feature sets until the stop condition is met to obtain the target combination features for processing the target task.
[0112] Among them, genetic operations include crossover, mutation, and replication operations, the purpose of which is to gradually improve the overall fitness of the population while maintaining population diversity.
[0113] The stopping condition is used to determine when to stop deriving the next generation. Specifically, it can be an iteration number condition, a fitness threshold condition, etc. For example, if the stopping condition is an iteration number condition, then it can stop when the number of iterations corresponding to the obtained new generation feature set is greater than the preset maximum number of iterations; if the stopping condition is a fitness threshold condition, then it can stop when the fitness of the combined feature with the largest fitness in the new generation feature set reaches the preset fitness threshold.
[0114] In the above embodiment, the computer device generates candidate child combination features based on the parent combination features; updates the feature set based on the candidate child combination features to obtain an updated feature set, and returns to the updated feature set to perform the step of clustering the combination features in the feature set, thereby exploring the feature space that may not be covered by the initial parent combination features. The generated candidate child combination features can reflect new information and perspectives, thereby improving the diversity of the combination features. By continuously iteratively updating the feature set and returning to the clustering step, the algorithm can be prevented from converging to the local optimal solution too early, thereby being able to effectively search for the optimal combination features in the global environment, and then when the target task is subsequently processed based on the obtained optimal combination features, the processing effect of the target task can be improved.
[0115] In one embodiment, the candidate offspring combination features include crossover combination features and mutation combination features, and the process of generating candidate offspring combination features based on the parent combination features by a computer device includes the following steps: determining the crossover probability and mutation probability corresponding to the feature set; performing feature crossover processing on the parent combination features according to the crossover probability to obtain the crossover combination features; performing mutation processing on at least one of the parent combination features and the crossover combination features according to the mutation probability to obtain the mutation combination features.
[0116] Among them, feature crossover processing refers to the process of creating offspring features from two or more selected parent features, combining the information in the parent features in some way. The main purpose of this process is to generate new individuals that may inherit the advantages of the parents and improve the diversity and quality of the solution through new gene combinations. Post-crossover combined features refer to the new combined features generated by the crossover operation. Figure 6 The figure shows a schematic diagram of a crossover operator in one embodiment, where the parent generation combination feature a is , the parent generation combined feature b is , after the parent generation combination feature a and the parent generation combination feature b are crossed, the offspring combination feature a is generated as , and the offspring combination characteristic b is .
[0117] Mutation processing refers to randomly changing some parts of an individual, which can be a feature value, parameter setting, or part of the solution. Its purpose is to explore areas in the solution space that are not covered by the current population to find possible new and excellent solutions. The combined features after mutation refer to the new combined features generated by the mutation operation. Figure 7 The figure shows a schematic diagram of a mutation operator in one embodiment, where the offspring combination feature a is , the corresponding mutation point is , the offspring combination feature a' generated after mutation is , the offspring combination characteristic b is , the corresponding mutation point is the operator " / ", and the offspring combination feature b' generated after mutation is .
[0118] The crossover probability refers to the probability of a crossover operation occurring in the selected parent combination, which can be a value between 0 and 1. The crossover probability determines the probability with which any pair of parent combination features will undergo this recombination operation. It is understandable that a higher crossover probability (such as 0.6 to 1.0) means that most individuals in the population will participate in the crossover, which promotes diversity, but may also cause good solutions to be destroyed. A lower crossover probability (such as 0.0 to 0.5) will reduce crossover events in the population, which may reduce diversity, but allow excellent solutions to remain unchanged. In the embodiment of the present application, the crossover probability can be reasonably set with at least one of the progress of the feature set evolution and the diversity of subsets in the feature set.
[0119] The mutation probability refers to the probability of at least one of the selected parent combination features and the crossover combination features mutating, which can be a value between 0 and 1. The mutation probability determines the probability of each basic feature, operator, and constant term in the combination feature mutating. A higher mutation probability (such as 0.1 and above) means that individuals in the population experience mutations more frequently, which may help to quickly explore new solutions, but may also destroy good solutions. A lower mutation probability (such as 0.001 to 0.01) reduces mutation events, which may lead to a decrease in population diversity, but maintains the current excellent solution. In the embodiment of the present application, the mutation probability can be reasonably set with the progress of the evolution of the feature set and at least one of the diversity of the subsets in the feature set.
[0120] Specifically, the computer device can determine at least one of the evolutionary process and the subset diversity in the feature set corresponding to the current feature set, and determine the crossover probability and mutation probability corresponding to the current feature set based on at least one of the evolutionary process and the subset diversity in the feature set, and generate a random number between 0 and 1 for each selected pair of parent combination features. If this number is less than or equal to the crossover probability, the pair of parent combination features are subjected to feature crossover processing to obtain post-crossover processing features. If this number is greater than the crossover probability, the pair of parent combination features are not subjected to feature crossover processing. When it is necessary to mutate at least one of the selected parent combination features and the post-crossover combination features, for a selected combination feature, at least one mutation point is randomly selected from the combination feature, and a random number between 0 and 1 is generated for each selected mutation point. If this number is less than or equal to the crossover probability, the corresponding mutation point is subjected to mutation processing to obtain the mutated combination feature.
[0121] In the above embodiment, the computer device determines the crossover probability and mutation probability corresponding to the feature set; performs feature crossover processing on the parent generation combination features according to the crossover probability to obtain the crossover combination features, and can combine the information of two or more parent generation combination features to generate offspring with a new feature combination. This can maintain the genetic diversity of the population, avoid the algorithm from converging to the local optimal solution too early, and ignore other possible good solutions. According to the mutation probability, at least one of the parent generation combination features and the crossover combination features is mutated to obtain the mutated combination features. Randomness helps the algorithm jump out of the local optimal state, explore the uncovered area in the solution space, and may find a better solution.
[0122] In one embodiment, the above-mentioned feature processing method also includes the following steps: determining the number of iterations and the maximum number of iterations corresponding to the feature set; the process of the computer device determining the crossover probability and mutation probability corresponding to the feature set includes the following steps: based on the number of iterations and the maximum number of iterations, determining the derivative progress of the feature set; based on the derivative progress, the preset crossover probability boundary value and the preset mutation probability boundary value, determining the crossover probability and mutation probability corresponding to the feature set.
[0123] The maximum number of iterations is one of the stop conditions during the running of the feature processing method, and specifically refers to the maximum number of cycles performed by the feature processing method from the beginning to the end.
[0124] The number of iterations is the number of times or rounds of execution of the above feature processing method, which can specifically be a single complete execution sequence in a cycle or repetitive process.
[0125] The derived progress is used to characterize the degree of completion of the overall process of the feature processing task, and can be specifically expressed as a proportional value between 0 and 1, which can be specifically the ratio of the current number of iterations to the maximum number of iterations.
[0126] The preset crossover probability boundary values include a minimum crossover probability (minPc) and a maximum crossover probability (maxPc), which set the lower and upper limits of the crossover probability and are usually expressed as an interval, such as 0.5≤Pc≤0.9.
[0127] The preset mutation probability boundary values include a minimum mutation probability (minPm) and a maximum mutation probability (maxPm). These two values set the lower and upper limits of the mutation probability and are usually expressed as an interval, such as 0.01≤Pm≤0.1.
[0128] Specifically, the computer device can determine the number of iterations corresponding to the currently processed feature set and the maximum number of iterations corresponding to this feature processing task, and use the ratio between the number of iterations and the maximum number of iterations to determine the current derivative progress of the feature processing task, and obtain the crossover probability function and the preset crossover probability boundary value, input the determined derivative progress and the preset crossover probability boundary value into the crossover probability function, and input the crossover probability corresponding to the feature set through the crossover probability function; obtain the mutation probability function and the preset mutation probability boundary value, input the determined derivative progress and the preset mutation probability boundary value into the mutation probability function, and input the mutation probability corresponding to the feature set through the mutation probability function.
[0129] In the above embodiment, the computer device determines the derivation progress of the feature set based on the number of iterations and the maximum number of iterations, and determines the crossover probability and mutation probability corresponding to the feature set based on the derivation progress, the preset crossover probability boundary value and the preset mutation probability boundary value, so that the crossover probability and mutation probability can adapt to the needs of different stages in the feature processing process. For example, in the early stage of combined feature mining, a higher mutation rate and crossover rate can be used to explore a wider solution space, and near the end of the iteration, a lower mutation rate and crossover rate can be used to refine the current optimal solution, avoiding premature convergence of the combined feature mining process, and at the same time improving the diversity of the combined features, so that the optimal combined features can be effectively searched globally, and then when the target task is subsequently processed based on the obtained optimal combined features, the processing effect of the target task can be improved.
[0130] In one embodiment, the above-mentioned feature processing method also includes the following steps: determining the subset entropy corresponding to the feature set; the process in which the computer device determines the crossover probability and mutation probability corresponding to the feature set based on the derivation progress, the preset crossover probability boundary value and the preset mutation probability boundary value includes the following steps: determining the crossover probability corresponding to the feature set based on the subset entropy, the derivation progress and the preset crossover probability boundary value; determining the mutation probability corresponding to the feature set based on the subset entropy, the derivation progress and the preset mutation probability boundary value.
[0131] Among them, subset entropy is used to characterize the diversity of feature subsets in the feature set.
[0132] Specifically, for any feature subset, the computer device obtains the number of combined features in the feature subset, obtains the total number of combined features in the feature set, and determines the ratio of the number to the total number, then determines the entropy corresponding to each feature subset according to the ratio corresponding to the feature subset, and sums the entropies corresponding to each feature subset to obtain the subset entropy corresponding to the feature set, obtains the crossover probability function and the preset crossover probability boundary value, inputs the determined subset entropy, derivative progress and preset crossover probability boundary value into the crossover probability function, and inputs the crossover probability corresponding to the feature set through the crossover probability function; obtains the mutation probability function and the preset mutation probability boundary value, inputs the determined subset entropy, derivative progress and preset mutation probability boundary value into the mutation probability function, and inputs the mutation probability corresponding to the feature set through the mutation probability function.
[0133] In one embodiment, the following relationship is satisfied among the subset entropy, the number of combined features in the feature subset, and the total number of combined features in the feature set:
[0134]
[0135] Among them, H represents the subset entropy, N represents the total number of combined features in the feature set, and n represents the total number of feature subsets. represents the number of combined features in the jth feature subset, The subset radius corresponding to the j-th feature subset.
[0136] In one embodiment, the crossover probability function is characterized as follows:
[0137]
[0138] in, represents the determined crossover probability, Represents the lower boundary value of the preset crossover probability, represents the upper boundary value of the preset crossover probability, t represents the current number of iterations, T represents the maximum number of iterations, and H represents the subset entropy.
[0139] In one embodiment, the mutation probability function is represented as follows:
[0140]
[0141] in, represents the determined mutation probability, Represents the lower boundary value of the preset mutation probability, represents the upper boundary value of the preset mutation probability, t represents the current number of iterations, T represents the maximum number of iterations, and H represents the subset entropy.
[0142] In the above embodiment, the computer device determines the subset entropy corresponding to the feature set; determines the crossover probability corresponding to the feature set based on the subset entropy, the derivative progress and the preset crossover probability boundary value; determines the mutation probability corresponding to the feature set based on the subset entropy, the derivative progress and the preset mutation probability boundary value, thereby achieving the use of subset entropy as a guide to adjust the intensity of genetic operations according to the diversity or uncertainty within the feature set, and dynamically adjusts the crossover and mutation probabilities by combining the subset entropy with the derivative progress, so that the crossover probability and mutation probability can adapt to the needs of different stages in the feature processing process.
[0143] In one embodiment, a computer device updates a feature set based on candidate offspring combination features, and the process of obtaining an updated feature set includes the following steps: in the feature set, respectively selecting a preset number of first combination features that meet similarity conditions with each candidate offspring combination feature; using the first combination features as a crowded feature group corresponding to each candidate offspring combination feature; when the fitness of the candidate offspring combination feature is greater than the fitness of the second combination feature in the crowded feature group, replacing the second combination feature with the candidate offspring combination feature in the crowded feature group; retaining the combination features in the feature set that have not been replaced in the crowded feature group, and adding the candidate offspring combination features replaced in the crowded feature group to the feature set, to obtain an updated feature set.
[0144] Among them, the similarity condition can specifically be a similarity threshold condition or a similarity sorting condition. The similarity threshold condition refers to presetting a similarity threshold, and determining the combined features in the feature set whose similarity is greater than the similarity threshold as the first combined feature. The similarity sorting condition is a condition for sorting based on similarity, such as sorting the combined features in the feature set from high to low according to the similarity, and determining the combined features whose ranking preset digits are the top percentage digits as the first combined feature.
[0145] Specifically, for any candidate offspring combination feature, the similarity between the combination feature and each combination feature in the feature set is determined respectively, and a preset number of combination features with the largest similarity are determined as first combination features, and a crowded feature group corresponding to the candidate offspring combination feature is constructed according to the selected first combination features, the crowded feature group includes the selected first combination features, and the fitness corresponding to the candidate offspring combination feature is determined, and the minimum fitness corresponding to each first combination feature in the crowded feature group is determined, and the fitness of the candidate offspring combination feature is compared with the minimum fitness in the crowded feature group. If the candidate offspring combination feature If the fitness of is greater than the minimum fitness, the first combination feature corresponding to the minimum fitness in the crowded feature group is determined as the second combination feature, and the second combination feature is replaced with the candidate offspring combination feature in the crowded feature group. The above process is performed on each candidate offspring feature, so that the combination feature of each candidate crowded feature group can be replaced or not replaced. After the above process is performed on all candidate offspring features, the combination features in the feature set that have not been replaced in the crowded feature group are retained, the replaced second combination features are deleted, and the candidate offspring combination features replaced in the crowded feature group are added to the feature set to obtain an updated feature set.
[0146] In the above embodiment, the computer device finds a certain number of similar existing feature combinations (crowded feature groups) for each candidate offspring, and replaces the combined features therein only when the candidate offspring performs better, so that a variety of combined features can be maintained in the feature set, which prevents the process of combined feature mining from converging to the local optimal solution too early and maintains the ability to explore new solutions. When replacing in a crowded feature group, replacement is only made when the fitness of the new candidate offspring is significantly higher than the existing features in the group, ensuring that all combined features have the opportunity to demonstrate their value rather than being eliminated by random or accidental factors. By adding new candidate offspring with higher fitness to the feature set while retaining the original combined features that have not been replaced, the quality of the solution can be optimized and the diversity of the solution can be maintained at the same time, so that the optimal combined features can be effectively searched globally, and then when the target task is subsequently processed based on the obtained optimal combined features, the processing effect of the target task can be improved.
[0147] In one embodiment, the process of a computer device selecting a preset number of first combination features that meet similarity conditions with each candidate offspring combination feature in a feature set includes the following steps: selecting a preset number of third combination features that meet retention conditions in the feature set; selecting a preset number of first combination features that meet similarity conditions with each candidate offspring combination feature from other combination features other than the third combination feature in the feature set; the computer device retains the combination features in the feature set that have not been replaced in a crowded feature group, and adds the candidate offspring combination features replaced in the crowded feature group to the feature set, and the process of obtaining an updated feature set includes the following steps: retaining the third combination feature in the feature set and the combination features that have not been replaced in the crowded feature group, and adding the candidate offspring combination features replaced in the crowded feature group to the feature set, to obtain an updated feature set.
[0148] Among them, the retention condition can specifically be a standard or rule for determining which combination features in the feature set can be directly retained to the next generation, and can specifically be a fitness condition. For example, the combination features in the feature set are sorted from high to low according to fitness, and the combination features ranked in the front preset number of digits are selected and directly retained as the third combination feature, or the combination features are sorted from high to low according to fitness in each feature subset, and the combination features ranked in the front preset number of digits are selected and directly retained as the third combination feature.
[0149] In the above embodiment, the computer device selects and retains the third combination features (elite features) that meet the retention conditions to ensure that those combination features with excellent performance can be retained to the next generation, prevent the optimal combination features generated in the evolution process from being destroyed by crossover and mutation, and ensure that each generation of feature sets contains several known excellent combination features. As the evolution process proceeds, the accumulation of these excellent combination features will help promote the entire feature set to develop in the direction of a better solution.
[0150] In one embodiment, the feature processing method further includes the following steps: extracting basic sample features from training sample data; performing feature combination processing on the basic sample features according to the feature combination method represented by the target combination feature to obtain sample combination features; processing the sample combination features through a machine learning model to obtain prediction results; optimizing the machine learning model based on the prediction results until a target machine learning model is obtained, and the target machine learning model is used to process the target task.
[0151] Among them, training sample data refers to the data set used to establish or train models in machine learning, which can specifically be image data, text data, and voice data. For example, if the target task is an object detection task, the training sample data can specifically be a collection of pictures containing objects, and the objects can specifically be people, vehicles, animals, items, etc.; if the target task is a text translation task, the training sample data can specifically be pairs of sentences, each pair of sentences containing text in the source language and translated text in the target language; if the target task is a speech recognition task, the training sample data can specifically be a voice or audio file containing a recording of words, phrases, or sentences.
[0152] Sample basic features refer to the attributes directly extracted from the training sample data. They are the most basic and original information units that constitute the data sample. Basic features can be numerical features, categorical features, binary features, ordinal features, time series features, text features, image features, audio features, video features, etc. Numerical features can be integers or real numbers, such as age, temperature, price, etc. Categorical features are non-numerical attributes, such as gender, nationality, product category, etc. Binary features have only two possible values, usually expressed as 0 or 1, such as whether a service is subscribed, whether an advertisement is clicked, etc. Ordinal features are features that have only two possible values, usually expressed as 0 or 1, such as whether a service is subscribed, whether an advertisement is clicked, etc. Features represent categorical features of ordered relationships, such as education level (high school, undergraduate, master's, doctorate), time series features are numerical values that change over time, such as stock prices, weather data, etc., text features refer to text data, such as words, sentences, or entire documents, image features are the original pixel values of image data or features extracted after preprocessing, such as color histogram, texture, etc., audio features are the waveform data of audio signals or features extracted from them, such as Mel-frequency cepstral coefficients (MFCC), and video features are frame information of video data, such as the original pixel values of frames or motion information between frames.
[0153] For example, in image processing tasks, basic features may include pixel values, color histograms, results after edge detection, etc. In natural language processing tasks, basic features may be words, phrases, syntactic structures, or part-of-speech tags. In speech recognition, basic features may include frequency domain features of audio signals, Mel-frequency cepstral coefficients (MFCCs), etc.
[0154] The feature combination method represented by the combined feature refers to the process of creating new features by performing arithmetic operations, logical operations or other mathematical transformations on basic features.
[0155] Specifically, after obtaining the training sample data, the computer device can extract features from the training sample data through the feature extraction network of the machine learning model to obtain basic sample features, and perform feature combination processing on the basic features according to the feature combination method represented by the combined features through the feature processing network of the machine learning model to obtain sample combination features, and input the sample combination features into the prediction network of the machine learning model, process the sample combination features through the prediction network, thereby outputting a prediction result, and determining the loss value of the model training based on the prediction result, adjusting the model parameters of the machine learning model based on the loss value, and returning to execute the step of extracting basic sample features from the training sample data until the training stop condition is reached to obtain a machine learning model for processing the target task.
[0156] In the above embodiment, the computer device extracts sample basic features from the training sample data; performs feature combination processing on the sample basic features according to the feature combination method represented by the target combination feature to obtain the sample combination feature. The sample combination feature can capture the interaction and relationship between the basic features, revealing the potential patterns and associations in the data, so that the machine learning model can learn and predict more accurately.
[0157] In one embodiment, the above-mentioned feature processing method also includes the following steps: extracting basic data features from the data to be processed; performing feature combination processing on the basic data features according to the feature combination method represented by the target combination feature to obtain data combination features; processing the data combination features through the target machine learning model to obtain the prediction result of the target task.
[0158] Among them, the data to be processed can be image data, text data, and voice data. For example, if the target task is an object detection task, the data to be processed can specifically be a collection of pictures containing objects, and the objects can specifically be people, vehicles, animals, items, etc.; if the target task is a text translation task, the data to be processed can specifically be pairs of sentences, each pair of sentences containing text in the source language and translated text in the target language; if the target task is a speech recognition task, the data to be processed can specifically be a voice or audio file containing a recording of words, phrases or sentences.
[0159] Data basic features refer to the attributes directly extracted from the training sample data. They are the most basic and original information units that constitute the data samples. Basic features can be numerical features, categorical features, binary features, ordinal features, time series features, text features, image features, audio features, video features, etc.
[0160] Specifically, after obtaining the data to be processed, the computer device can extract features from the data to be processed through the feature extraction network of the machine learning model to obtain basic data features, and perform feature combination processing on the basic features according to the feature combination method represented by the combined features through the feature processing network of the machine learning model to obtain data combination features, and input the data combination features into the prediction network of the machine learning model, process the data combination features through the prediction network, and thus obtain the prediction result of the target task.
[0161] In the above embodiment, the computer device extracts basic data features from the data to be processed; performs feature combination processing on the basic data features according to the feature combination method represented by the target combination feature to obtain data combination features. The data combination features can capture the interactions and relationships between the basic features and reveal the potential patterns and associations in the data, so that the machine learning model can process the target task more accurately.
[0162] In one embodiment, Figure 8 As shown, a feature processing method is also provided, which is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:
[0163] S802, determining a feature vector corresponding to each combined feature in the feature set; determining a feature similarity between the combined features based on the combined vector; and clustering the combined features based on the feature similarity to obtain a feature subset.
[0164] S804, in the feature subset, respectively determine the distance between each combination feature and other combination features; obtain the fitness of each combination feature in the feature subset; in the feature subset, select the combination feature corresponding to the fitness that meets the fitness condition as the dominant combination feature.
[0165] S806, in the distance, taking the distance between the dominant combined feature and other combined features that meets the distance condition as the subset radius of the feature subset; based on the distance and the subset radius, determining the sharing degree of each combined feature relative to other combined features.
[0166] S808, summing up the sharing degree of each combined feature with other combined features respectively to obtain the overall sharing degree corresponding to each combined feature.
[0167] S810, based on the overall sharing degree corresponding to each combination feature, respectively adjust the fitness of the corresponding combination feature to obtain the shared fitness of each combination feature; the fitness is an effect evaluation index when using the combination feature to perform task processing.
[0168] S812, selecting a combined feature from the feature subset based on the shared fitness as a parent combined feature.
[0169] S814, determine the number of iterations and the maximum number of iterations corresponding to the feature set; determine the subset entropy corresponding to the feature set; based on the subset entropy, the derivative progress, the preset crossover probability boundary value, and the preset mutation probability boundary value, determine the crossover probability and mutation probability corresponding to the feature set.
[0170] S816, performing genetic processing on the parent generation combination characteristics according to the crossover probability to obtain candidate offspring generation combination characteristics.
[0171] S818, in the feature set, respectively select a preset number of first combination features that meet similarity conditions with each candidate offspring combination feature; use the first combination features as the crowded feature group corresponding to each candidate offspring combination feature; when the fitness of the candidate offspring combination feature is greater than the fitness of the second combination feature in the crowded feature group, replace the second combination feature with the candidate offspring combination feature in the crowded feature group; retain the combination features in the feature set that have not been replaced in the crowded feature group, and add the candidate offspring combination features replaced in the crowded feature group to the feature set, to obtain an updated feature set.
[0172] S820, returning to the step of clustering the combined features in the feature set for the updated feature set until a stop condition is reached to obtain a target combined feature for processing the target task.
[0173] The present application also provides an application scenario, which applies the above-mentioned feature processing method. The application scenario can specifically be a credit assessment scenario. The above-mentioned feature processing method can improve the accuracy of the credit assessment of the target object. Fig. 9 , the method specifically comprises the following steps:
[0174] Step 1: Extract basic features.
[0175] Specifically, the user's basic characteristics are extracted from the credit database, such as credit history, transaction records, repayment behavior, etc.
[0176] Step 2: Construct the initial feature set.
[0177] Specifically, combined features are randomly generated based on the extracted basic features to obtain an initial feature set.
[0178] For example, combination feature 1 is the ratio of the loan amount to its monthly income, and combination feature 2 is the ratio of the number of overdue payments in the past six months to the total loan amount.
[0179] Step 3: Cluster analysis.
[0180] Cluster the combined features in the feature set to obtain feature subsets.
[0181] Step 4: Determine the degree of sharing.
[0182] The sharing degree of each combination feature in the feature subset relative to other combination features is determined respectively.
[0183] Step 5: Fitness adjustment.
[0184] Based on the sharing degree, the fitness of each combined feature in the feature subset is adjusted to obtain the shared fitness; the fitness is an evaluation index of the effect when the combined features are used for task processing.
[0185] Step 6: Parent selection.
[0186] Based on the shared fitness, a combined feature is selected from the feature subset as the parent combined feature.
[0187] Step 7: Genetic derivation.
[0188] Genetic processing is performed based on the parent generation combination characteristics to obtain candidate offspring generation combination characteristics.
[0189] Step 8: Update the feature set.
[0190] A preset number of first combination features that meet similarity conditions with each candidate offspring combination feature are respectively selected; the first combination features are used as the crowded feature group corresponding to each candidate offspring combination feature; when the fitness of the candidate offspring combination feature is greater than the fitness of the second combination feature in the crowded feature group, the second combination feature is replaced by the candidate offspring combination feature in the crowded feature group; the combination features in the feature set that have not been replaced in the crowded feature group are retained, and the candidate offspring combination features replaced in the crowded feature group are added to the feature set to obtain an updated feature set.
[0191] Step 9: Iterative update.
[0192] Return to step 3 for the updated feature set until a stop condition is reached, thereby obtaining a target combination feature for credit assessment.
[0193] Step 10: Model training.
[0194] The feature combination represented by the target combination feature is applied to the credit assessment model, and the model is trained to obtain a trained credit assessment model.
[0195] Step 11, model prediction.
[0196] Use the trained credit assessment model to predict the creditworthiness of the target object.
[0197] The present application also provides an application scenario, which applies the above-mentioned feature processing method. The application scenario can specifically be a scene of planning a tour route to a scenic spot. The above-mentioned feature processing method can improve the accuracy of the tour route planning. Fig. 9 , the method specifically comprises the following steps:
[0198] Step 1: Extract basic features.
[0199] Specifically, basic features are extracted from tour-related data, such as the flow of visitors to each attraction, ratings, theme type, and location from the entrance.
[0200] Step 2: Construct the initial feature set.
[0201] Specifically, combined features are randomly generated based on the extracted basic features to obtain an initial feature set.
[0202] For example, combined feature 1 is score + distance to entrance location, and combined feature 2 is traffic volume + topic type.
[0203] The execution process of step 3 to step 9 is the same as the execution process in the above credit assessment scenario. After step 9 is completed, step 9 is executed.
[0204] Step 10: Model training.
[0205] The feature combination represented by the target combination feature is applied to the route planning model, and the model is trained to obtain a trained route planning model.
[0206] Step 11, model prediction.
[0207] Use the trained route planning model to predict the tour route, such as Fig.10 Shown is a predicted tour route in one embodiment.
[0208] The present application also provides an application scenario, which applies the above-mentioned feature processing method. The application scenario can specifically be a road image reconstruction scenario. The above-mentioned feature processing method can improve the accuracy of road image reconstruction. Fig. 9 , the method specifically comprises the following steps:
[0209] Step 1: Extract basic features.
[0210] Specifically, basic features of users, such as road edges, colors, textures, road markings, etc., are extracted from road satellite images.
[0211] Step 2: Construct the initial feature set.
[0212] Specifically, combined features are randomly generated based on the extracted basic features to obtain an initial feature set.
[0213] For example, combined feature 1 is color+mark, and combined feature 2 is texture+color.
[0214] The execution process of step 3 to step 9 is the same as that in the above credit assessment scenario. After step 9 is completed, step 10 is executed.
[0215] Step 10: Model training.
[0216] The feature combination method represented by the target combination feature is applied to the road image reconstruction model, and the model is trained to obtain a trained road image reconstruction model.
[0217] Step 11, model prediction.
[0218] Use the trained road image reconstruction model to generate road reconstruction images, such as Fig.11 The satellite image shown is processed by the road image reconstruction model to generate Fig.12 Reconstructed image of the road shown.
[0219] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0220] Based on the same inventive concept, the embodiment of the present application also provides a feature processing device for implementing the feature processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more feature processing device embodiments provided below can refer to the limitations on the feature processing method above, and will not be repeated here.
[0221] In one embodiment, Fig.13 As shown, a feature processing device is provided, including: a clustering module 1302, a sharing degree determination module 1304, a fitness adjustment module 1306, a parent generation selection module 1308 and a child generation derivation module 1310, wherein:
[0222] A clustering module 1302 is used to cluster the combined features in the feature set to obtain a feature subset;
[0223] A sharing degree determination module 1304 is used to determine the sharing degree of each combined feature in the feature subset relative to other combined features;
[0224] The fitness adjustment module 1306 is used to adjust the fitness of each combined feature in the feature subset based on the sharing degree to obtain the shared fitness; the fitness is an effect evaluation index when the combined feature is used for task processing;
[0225] A parent generation selection module 1308 is used to select a combination feature from the feature subset as a parent generation combination feature based on the shared fitness;
[0226] The offspring derivation module 1310 is used to perform offspring derivation processing based on the parent generation combined features to obtain target combined features for processing the target task.
[0227] In the above embodiment, the combined features in the feature set are clustered to obtain feature subsets, and the parent combined features are selected from each feature subset for offspring derivation processing, thereby avoiding the problem of poor diversity of combined features due to excessive competition when the parent features are directly selected from the feature set, and also avoiding the feature processing process from converging to a non-global optimal solution too early, so that the optimal combined features can be obtained; and, when selecting the parent combined features from the feature subset, the sharing degree of each combined feature with other combined features in the subset is calculated in the feature subset, where fitness is the degree of sharing between the combined features and other combined features in the subset when the combined features are used for task processing. The effect evaluation index is used. Based on the sharing degree, the original fitness of each combination feature in the feature subset is adjusted to obtain the shared fitness, which reduces the advantage of the combination features with high sharing degree. Based on the shared fitness, the combination features are selected as the parent combination features in the feature subset, which avoids the feature processing process from converging prematurely on the combination features that seem excellent but may actually be the local optimal one. It ensures that the combination features that provide different information have the opportunity to be retained in the feature set, so that the optimal combination features can be effectively searched in the global view, and then when the target task is processed based on the obtained optimal combination features in the subsequent process, the processing effect of the target task can be improved.
[0228] In one embodiment, the clustering module 1302 is further used to: determine the feature vector corresponding to each combined feature in the feature set; determine the feature similarity between the combined features based on the combined vector; cluster the combined features based on the feature similarity to obtain a feature subset.
[0229] In one embodiment, the sharing degree determination module 1304 is also used to: determine the distance between each combined feature and other combined features in the feature subset; determine the subset radius of the feature subset based on the distance; and determine the sharing degree of each combined feature relative to other combined features based on the distance and the subset radius.
[0230] In one embodiment, the sharing degree determination module 1304 is also used to: obtain the fitness of each combination feature in the feature subset; in the feature subset, select the combination feature corresponding to the fitness that meets the fitness condition as the dominant combination feature; in the distance, use the distance between the dominant combination feature and other combination features that meets the distance condition as the subset radius of the feature subset.
[0231] In one embodiment, the sharing degree determination module 1304 is also used to: sum the sharing degrees of each combined feature with other combined features respectively to obtain the overall sharing degree corresponding to each combined feature; and adjust the fitness of the corresponding combined features based on the overall sharing degree corresponding to each combined feature to obtain the shared fitness of each combined feature.
[0232] In one embodiment, the offspring derivation module 1310 is also used to: generate candidate offspring combination features based on the parent combination features; update the feature set based on the candidate offspring combination features to obtain an updated feature set; return to the updated feature set to perform the step of clustering the combination features in the feature set until the stop condition is reached to obtain the target combination features for processing the target task.
[0233] In one embodiment, the candidate offspring combination features include post-crossover combination features and post-mutation combination features; the offspring derivation module 1310 is further used to: determine the crossover probability and mutation probability corresponding to the feature set; perform feature crossover processing on the parent combination features according to the crossover probability to obtain the post-crossover combination features; perform mutation processing on at least one of the parent combination features and the post-crossover combination features according to the mutation probability to obtain the post-mutation combination features.
[0234] In one embodiment, the offspring derivation module 1310 is further used to: determine the number of iterations and the maximum number of iterations corresponding to the feature set; and determine the derivation progress of the feature set based on the number of iterations and the maximum number of iterations:
[0235] Based on the derivation progress, the preset crossover probability boundary value and the preset mutation probability boundary value, the crossover probability and mutation probability corresponding to the feature set are determined.
[0236] In one embodiment, the offspring derivation module 1310 is also used to: determine the subset entropy corresponding to the feature set; determine the crossover probability corresponding to the feature set based on the subset entropy, derivation progress and preset crossover probability boundary value; determine the mutation probability corresponding to the feature set based on the subset entropy, derivation progress and preset mutation probability boundary value.
[0237] In one embodiment, the offspring derivation module 1310 is further used to: select a preset number of first combination features that meet similarity conditions with each candidate offspring combination feature in the feature set; use the first combination features as the crowded feature group corresponding to each candidate offspring combination feature; when the fitness of the candidate offspring combination feature is greater than the fitness of the second combination feature in the crowded feature group, replace the second combination feature with the candidate offspring combination feature in the crowded feature group; retain the combination features in the feature set that have not been replaced in the crowded feature group, and add the candidate offspring combination features replaced in the crowded feature group to the feature set to obtain an updated feature set.
[0238] In one embodiment, Fig.14 As shown, the device also includes a model training module 1312, which is used to: extract basic sample features from training sample data; perform feature combination processing on the basic sample features according to the feature combination method represented by the target combination feature to obtain sample combination features; process the sample combination features through a machine learning model to obtain a prediction result; optimize the machine learning model based on the prediction result until a target machine learning model is obtained, and the target machine learning model is used to process the target task.
[0239] In one embodiment, Fig.14 As shown, the device also includes a model application module 1314, which is used to: extract basic data features from the data to be processed; perform feature combination processing on the basic data features according to the feature combination method represented by the target combination feature to obtain data combination features; process the data combination features through the target machine learning model to obtain the prediction result of the target task.
[0240] Each module in the above-mentioned feature processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0241] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.15As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. 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 feature data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication 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 feature processing method is implemented.
[0242] Those skilled in the art will understand that Fig.15 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.
[0243] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0244] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0245] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0246] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0247] 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 the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0248] 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.
[0249] The above-described 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 present application. 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 present application shall be subject to the attached claims.
Claims
1. A feature processing method, characterized in that: The method comprises: Clustering the combined features in the feature set to obtain a feature subset; the feature set is a collection of combined features, and the combined feature is a new feature generated by combining at least one original basic feature according to a certain rule; In the feature subset, respectively determine the distance between each combined feature and other combined features; determine the subset radius of the feature subset based on the distance; determine the sharing degree of each combined feature relative to other combined features based on the distance and the subset radius; the subset radius refers to the distance from the combined feature in the feature subset that is least similar to the subset center to the subset center, and the subset center is used to represent the central position or core feature of the feature subset; Based on the sharing degree, the fitness of each combined feature in the feature subset is adjusted to obtain a shared fitness; the fitness is an effect evaluation index when the combined feature is used for task processing; Selecting a combined feature from the feature subset based on the shared fitness as a parent combined feature; A child generation derivation process is performed based on the parent generation combined features to obtain a target combined feature for processing a target task.
2. The method according to claim 1, characterized in that: The clustering of the combined features in the feature set to obtain a feature subset includes: Determine the feature vector corresponding to each of the combined features in the feature set; Determining feature similarity between the combined features based on the feature vectors; The combined features are clustered based on the feature similarities to obtain feature subsets.
3. The method according to claim 1, characterized in that: The determining the subset radius of the feature subset based on the distance comprises: Obtaining the fitness of each combined feature in the feature subset; In the feature subset, a combination feature corresponding to the fitness that satisfies the fitness condition is selected as a dominant combination feature; In the distance, the distance between the dominant combined feature and other combined features that satisfies the distance condition is used as the subset radius of the feature subset.
4. The method according to claim 1, characterized in that: The step of adjusting the fitness of each combined feature in the feature subset based on the sharing degree to obtain the shared fitness includes: Sum the sharing degree of each of the combined features and other combined features respectively to obtain the overall sharing degree corresponding to each of the combined features; Based on the overall sharing degree corresponding to each of the combined features, the fitness of the corresponding combined features is adjusted respectively to obtain the sharing fitness of each of the combined features.
5. The method according to claim 1, characterized in that The step of performing child generation derivation processing based on the parent generation combined features to obtain a target combined feature for processing a target task includes: Generate candidate offspring combined features based on the parent combined features; Updating the feature set based on the candidate offspring combined features to obtain an updated feature set; The step of clustering the combined features in the feature set is returned to the updated feature set until a stop condition is reached to obtain a target combined feature for processing a target task.
6. The method according to claim 5, characterized in that The candidate offspring combination features include a post-crossover combination feature and a post-mutation combination feature; the generating of the candidate offspring combination features based on the parent combination features includes: Determine the crossover probability and mutation probability corresponding to the feature set; Performing feature crossover processing on the parent generation combined features according to the crossover probability to obtain a combined feature after crossover; At least one of the parent generation combined feature and the crossover combined feature is mutated according to the mutation probability to obtain a mutated combined feature.
7. The method according to claim 6, characterized in that The method further comprises: Determine the iteration round and the maximum number of iterations corresponding to the feature set; The determining the crossover probability and the mutation probability corresponding to the feature set includes: Based on the iteration round and the maximum number of iterations, determine the derivation progress of the feature set: Based on the derivation progress, a preset crossover probability boundary value and a preset mutation probability boundary value, the crossover probability and the mutation probability corresponding to the feature set are determined.
8. The method according to claim 7, characterized in that The method further comprises: Determining a subset entropy corresponding to the feature set; The determining the crossover probability and mutation probability corresponding to the feature set based on the derivation progress, the preset crossover probability boundary value and the preset mutation probability boundary value includes: Determining the crossover probability corresponding to the feature set based on the subset entropy, the derivative progress and the preset crossover probability boundary value; Based on the subset entropy, the derivation progress and the preset mutation probability boundary value, the mutation probability corresponding to the feature set is determined.
9. The method according to claim 5, characterized in that The updating of the feature set based on the candidate offspring combined features to obtain an updated feature set includes: From the feature set, a preset number of first combination features that meet similarity conditions with each of the candidate offspring combination features are selected respectively; Using the first combined feature as the crowding feature group corresponding to each of the candidate child combined features; When the fitness of the candidate offspring combined feature is greater than the fitness of the second combined feature in the crowded feature group, in the crowded feature group, the second combined feature is replaced by the candidate offspring combined feature; The combined features in the feature set that have not been replaced in the crowded feature group are retained, and the candidate child combined features replaced in the crowded feature group are added to the feature set to obtain an updated feature set.
10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: Extract sample basic features from training sample data; According to the feature combination mode represented by the target combination feature, the sample basic features are subjected to feature combination processing to obtain the sample combination feature; Processing the sample combination features through a machine learning model to obtain a prediction result; The machine learning model is optimized based on the prediction results until a target machine learning model is obtained, and the target machine learning model is used to process the target task.
11. The method according to claim 10, characterized in that The method further comprises: Extract basic data features from the data to be processed; According to the feature combination mode represented by the target combination feature, the data basic features are subjected to feature combination processing to obtain data combination features; The data combination features are processed through the target machine learning model to obtain the prediction result of the target task.
12. A feature processing device, characterized in that: The device comprises: A clustering module, used to cluster the combined features in the feature set to obtain a feature subset; the feature set is a collection of combined features, and the combined feature is a new feature generated by combining at least one original basic feature according to a certain rule; A sharing degree determination module is used to determine the distance between each combined feature and other combined features in the feature subset; determine the subset radius of the feature subset based on the distance; determine the sharing degree of each combined feature relative to other combined features based on the distance and the subset radius; the subset radius refers to the distance from the combined feature in the feature subset that is least similar to the subset center to the subset center, and the subset center is used to represent the central position or core feature of the feature subset; A fitness adjustment module, used to adjust the fitness of each combined feature in the feature subset based on the sharing degree to obtain a shared fitness; the fitness is an effect evaluation index when the combined feature is used for task processing; A parent generation selection module, configured to select a combination feature from the feature subset as a parent generation combination feature based on the shared fitness; The offspring derivation module is used to perform offspring derivation processing based on the parent generation combination features to obtain target combination features for processing target tasks.
13. The device according to claim 12, characterized in that The clustering module is further used for: Determine the feature vector corresponding to each of the combined features in the feature set; Determining feature similarity between the combined features based on the feature vectors; The combined features are clustered based on the feature similarities to obtain feature subsets.
14. The device according to claim 12, characterized in that The sharing degree determination module is further used for: Obtaining the fitness of each combined feature in the feature subset; In the feature subset, a combination feature corresponding to the fitness that satisfies the fitness condition is selected as a dominant combination feature; In the distance, the distance between the dominant combined feature and other combined features that satisfies the distance condition is used as the subset radius of the feature subset.
15. The device according to claim 12, characterized in that The sharing degree determination module is further used for: Sum the sharing degree of each of the combined features and other combined features respectively to obtain the overall sharing degree corresponding to each of the combined features; Based on the overall sharing degree corresponding to each of the combined features, the fitness of the corresponding combined features is adjusted respectively to obtain the sharing fitness of each of the combined features.
16. The device according to claim 12, characterized in that The descendant derivative module is also used to: Generate candidate offspring combined features based on the parent combined features; Updating the feature set based on the candidate offspring combined features to obtain an updated feature set; The step of clustering the combined features in the feature set is returned to the updated feature set until a stop condition is reached to obtain a target combined feature for processing a target task.
17. The device according to claim 16, characterized in that The descendant derivative module is also used to: Determine the crossover probability and mutation probability corresponding to the feature set; Performing feature crossover processing on the parent generation combined features according to the crossover probability to obtain a combined feature after crossover; At least one of the parent generation combined feature and the crossover combined feature is mutated according to the mutation probability to obtain a mutated combined feature.
18. The device according to claim 17, characterized in that The descendant derivative module is also used to: Determine the iteration round and the maximum number of iterations corresponding to the feature set; Based on the iteration round and the maximum number of iterations, determine the derivation progress of the feature set: Based on the derivation progress, a preset crossover probability boundary value and a preset mutation probability boundary value, the crossover probability and the mutation probability corresponding to the feature set are determined.
19. The device according to claim 18, characterized in that The descendant derivative module is also used to: Determining a subset entropy corresponding to the feature set; Determining the crossover probability corresponding to the feature set based on the subset entropy, the derivative progress and the preset crossover probability boundary value; Based on the subset entropy, the derivation progress and the preset mutation probability boundary value, the mutation probability corresponding to the feature set is determined.
20. The device according to claim 16, characterized in that The descendant derivative module is also used to: From the feature set, a preset number of first combination features that meet similarity conditions with each of the candidate offspring combination features are selected respectively; Using the first combined feature as the crowding feature group corresponding to each of the candidate child combined features; When the fitness of the candidate offspring combined feature is greater than the fitness of the second combined feature in the crowded feature group, in the crowded feature group, the second combined feature is replaced by the candidate offspring combined feature; The combined features in the feature set that have not been replaced in the crowded feature group are retained, and the candidate child combined features replaced in the crowded feature group are added to the feature set to obtain an updated feature set.
21. The device according to any one of claims 12 to 20, characterized in that The device also includes a model training module, which is used to: Extract sample basic features from training sample data; According to the feature combination mode represented by the target combination feature, the sample basic features are subjected to feature combination processing to obtain the sample combination feature; Processing the sample combination features through a machine learning model to obtain a prediction result; The machine learning model is optimized based on the prediction results until a target machine learning model is obtained, and the target machine learning model is used to process the target task.
22. The device according to claim 21, characterized in that The device also includes a model application module, which is used to: Extract basic data features from the data to be processed; According to the feature combination mode represented by the target combination feature, the data basic features are subjected to feature combination processing to obtain data combination features; The data combination features are processed through the target machine learning model to obtain the prediction result of the target task.
23. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.
24. 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 11 are implemented.
25. A computer program product, comprising a computer program, 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 11 are implemented.
