Data feature mapping method, device, equipment and storage medium
Through binning and feature interpolation processing, combined with coding technology, data feature values are mapped to low-dimensional space, which solves the problem of information loss and difficulty in processing missing values in traditional methods, and improves the data expression effect.
Patent Information
- Application Number
- CN202210061722.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-19
AI Technical Summary
Traditional data feature mapping methods lead to information loss when dealing with continuous variables, and are difficult to effectively handle null values and missing values, resulting in poor data expression.
By obtaining data feature values, perform binning and calculate feature interpolation, determine whether there are missing values, if so, perform feature mapping, generate mapping data, and use the encoder to positionally encode the feature interpolation and binning interval boundary values, and convert them into features. vectors and mapped to a low-dimensional space.
It improves the expression effect of data feature values, retains the integrity of the original information, can effectively represent different values in the binning interval, and handles missing values, improving the expression effect of data.
Smart Images

Figure CN114417998B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a data feature mapping method, device, electronic device and computer-readable storage medium. Background Art
[0002] At present, with the development of big data, data applications are becoming more and more extensive. In machine learning models, it is necessary to discretize continuous variables of data, which can make the model more stable and reduce the risk of overfitting. When discretizing continuous variables of data, data binning methods are often used to achieve discretization (i.e. data feature mapping).
[0003] However, the traditional method of discretization is to divide the numerical features into fixed intervals, and each interval is represented as a discrete feature. For example, if the value range of a numerical feature is 1-100, the numerical feature is divided into 10 intervals, and all the values in the interval are represented by a feature mapping value. As a result, different values are represented by the same feature mapping value in the same interval, resulting in the loss of original information, and the data null values and missing values cannot be handled well, resulting in poor data expression. Summary of the invention
[0004] The present invention provides a data feature mapping method, device, electronic device and computer-readable storage medium, the main purpose of which is to improve the expression effect of data feature values.
[0005] To achieve the above object, the present invention provides a data feature mapping method, comprising:
[0006] Acquire data to be processed, extract multiple data feature values of the data to be processed, and bin the multiple data feature values to obtain multiple binned data sequences, wherein the binned data sequences include data feature values and binning interval boundary values;
[0007] Calculate feature interpolation values of a plurality of the data feature values according to a plurality of the binned data sequences;
[0008] Determine whether there are missing values in the plurality of data feature values;
[0009] If there is no missing value in the plurality of data feature values, feature mapping is performed on the feature interpolation and the binning interval boundary values to obtain mapping data of the data to be processed;
[0010] If there are missing values among the plurality of data feature values, feature mapping is performed on the missing values, the feature interpolation values and the binning interval boundary values respectively to obtain mapping data of the data to be processed.
[0011] Optionally, the feature interpolation and the binning interval boundary value are respectively subjected to feature mapping to obtain mapping data of the data to be processed, including:
[0012] Using a preset encoder to positionally encode the feature interpolation and the binning interval boundary value, respectively, to obtain a feature vector set of the data to be processed;
[0013] Using a preset decoder to convert the feature vector set of the data to be processed into a feature matrix;
[0014] The feature matrix is mapped into a low-dimensional space to obtain mapping data of the data to be processed.
[0015] Optionally, the using a preset encoder to positionally encode the feature interpolation and the binning interval boundary value to obtain a feature vector set of the data to be processed includes:
[0016] Using a preset encoder to perform position index encoding on the feature interpolation and the binning interval boundary value respectively, to obtain a feature interpolation position index and a binning interval boundary value position index;
[0017] The feature interpolation and the binning interval boundary value are respectively converted into corresponding vectors to obtain a feature interpolation vector and a binning interval boundary value vector;
[0018] Combining the binning interval boundary value position index and the binning interval boundary value vector to generate a binning interval boundary value vector set;
[0019] Combining the feature interpolation position index and the feature interpolation vector to generate a feature interpolation vector set;
[0020] The binning interval boundary value vector set and the feature interpolation vector set are summarized to obtain a feature vector set of the data to be processed.
[0021] Optionally, binning the plurality of data feature values to obtain a plurality of binned data sequences includes:
[0022] Obtaining the maximum and minimum values among the plurality of data characteristic values, and the preset number of bins;
[0023] Determine a binning interval according to the maximum value, the minimum value and the number of bins, and determine a binning interval boundary value according to the binning interval;
[0024] According to the binning interval boundary value and the binning interval, multiple data feature values are subjected to equidistant binning processing to obtain multiple binning data sequences.
[0025] Optionally, calculating feature interpolation of a plurality of data feature values according to a plurality of the binned data sequences comprises:
[0026] Determine a binned data sequence in which a plurality of the data feature values are located, and obtain the binned interval boundary value in the binned data sequence;
[0027] The feature interpolation values of the plurality of data feature values are calculated using the binning interval boundary values and a preset formula.
[0028] Optionally, after performing feature mapping on the missing values, the feature interpolation, and the binning interval boundary values to obtain mapping data of the data to be processed, the method further includes:
[0029] Obtaining the missing position of the missing value, filling the missing position with a preset filling parameter, and calculating the missing value probability of the filling parameter;
[0030] Generate the filled missing value according to the missing position, filling parameters and missing value probability.
[0031] Optionally, after extracting a plurality of data feature values of the data to be processed, the method further includes:
[0032] Data cleaning is performed on the plurality of data feature values to obtain cleaned data feature values, wherein the data cleaning includes deleting abnormal data or invalid values in the data feature values.
[0033] In order to solve the above problem, the present invention also provides a data feature mapping device, the device comprising:
[0034] A binning module is used to obtain data to be processed, extract multiple data feature values of the data to be processed, and bin the multiple data feature values to obtain multiple binning data sequences, wherein the binning data sequences include data feature values and binning interval boundary values;
[0035] A feature interpolation calculation module, used for calculating feature interpolation values of a plurality of data feature values according to a plurality of binned data sequences;
[0036] The feature mapping module is used to determine whether there are missing values in the multiple data feature values; if there are no missing values in the multiple data feature values, the feature interpolation and the binning interval boundary values are feature mapped respectively to obtain mapping data of the data to be processed; if there are missing values in the multiple data feature values, the missing values, the feature interpolation and the binning interval boundary values are feature mapped respectively to obtain mapping data of the data to be processed.
[0037] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0038] a memory storing at least one computer program; and
[0039] The processor executes the computer program stored in the memory to implement the data feature mapping method described above.
[0040] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the data feature mapping method described above.
[0041] In an embodiment of the present invention, firstly, the data to be processed is obtained, multiple data feature values of the data to be processed are extracted, and the multiple data feature values are binned to obtain multiple binned data sequences, wherein the binned data sequence includes data feature values and binning interval boundary values, and the data feature values after binning have strong robustness, and the data feature values after binning can be cross-featured, which can improve the expressiveness of the data feature values and ensure the integrity of the original data information; secondly, the feature interpolation of the multiple data feature values is calculated according to the multiple binning data sequences, and the accuracy of subsequent information extraction can be improved by calculating the feature interpolation; finally, if there are missing values in the multiple data feature values, the missing values, the feature interpolation, and the binning interval boundary values are feature mapped to obtain the mapping data of the data to be processed, which can realize the use of different mapping data to represent different values in the binning interval, even if the two values have very small differences, they can be represented by different mapping data, and can also represent missing values, thereby improving the expression effect of the data feature values. Therefore, the data feature mapping method, device, electronic device and storable medium proposed in the embodiment of the present invention can improve the expression effect of the data feature values. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of a flow chart of a data feature mapping method provided by an embodiment of the present invention;
[0043] Figure 2 A schematic diagram of a module of a data feature mapping device provided by an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of the internal structure of an electronic device for implementing a data feature mapping method provided by an embodiment of the present invention;
[0045] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0046] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0047] The embodiment of the present invention provides a data feature mapping method. The execution subject of the data feature mapping method includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the data feature mapping method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0048] Reference Figure 1 FIG. 1 is a flow chart of a data feature mapping method provided by an embodiment of the present invention. In the embodiment of the present invention, the data feature mapping method includes:
[0049] S1. Obtain data to be processed, extract multiple data feature values of the data to be processed, and bin the multiple data feature values to obtain multiple binned data sequences, wherein the binned data sequences include data feature values and binning interval boundary values.
[0050] In the embodiment of the present invention, the data to be processed refers to various data stored in a storage space such as a blockchain, such as pictures, texts, and tables. The data feature value refers to a feature value extracted from the data to be processed. For example, if the data to be processed is a table data recording age, the value in the table is the data feature value.
[0051] In the embodiment of the present invention, after extracting the multiple data feature values of the data to be processed, the method further includes:
[0052] Data cleaning is performed on the plurality of data feature values to obtain cleaned data feature values, wherein the data cleaning includes deleting abnormal data or invalid values in the data feature values.
[0053] In the embodiment of the present invention, by performing data cleaning on the data characteristic values, the calculation speed of subsequent data can be increased and the quality of the data can be improved.
[0054] In detail, the binning of the plurality of data feature values to obtain a plurality of binned data sequences includes:
[0055] Obtaining the maximum and minimum values among the plurality of data characteristic values, and the preset number of bins;
[0056] Determine a binning interval according to the maximum value, the minimum value and the number of bins, and determine a binning interval boundary value according to the binning interval;
[0057] According to the binning interval boundary value and the binning interval, multiple data feature values are subjected to equidistant binning processing to obtain multiple binning data sequences.
[0058] In one embodiment of the present invention, the maximum value corresponding to multiple data characteristic values is the maximum value among the data characteristic values, and similarly, the minimum value corresponding to the data characteristic value is the minimum value among the data characteristic values. In an embodiment of the present invention, the binning interval refers to an interval of equal length obtained after sorting the data characteristic values from small to large or from large to small and binning. For example, if the data to be processed is the net income of the enterprise each month, the corresponding data characteristic values can be 0, 8, 15.56, 21, 32, 26, 46.79, 51, 62, 70.89, 83.2, 100, and the unit is percentage. The maximum value of the data characteristic value can be Max, which is 100, and the minimum value Min is 0. The number of bins is set to n, which is 10, and the length of each interval can be obtained as L (Max-Min) / n=10, and 10 binning intervals are determined to be (0-10), (10-20)...(90-100).
[0059] In the embodiment of the present invention, the binning interval boundary value refers to the maximum and minimum values in each binning interval of equal length. For example, 10 binning intervals are (0-10), (10-20)...(90-100), and the 11 binning interval boundary values [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100] can be determined by the maximum and minimum values in each interval.
[0060] In one embodiment of the present invention, the equidistant binning refers to sorting the data characteristic values to be binned from small to large or from large to small, and then binning the data characteristic values according to the equidistant statistical principle; binning multiple data characteristic values to determine the binning interval where each data characteristic value is located, thereby determining a binned data sequence, and the binned data sequence includes the binning interval boundary value and the data characteristic value in each binning interval.
[0061] Specifically, if the data to be processed is the net profit of the enterprise each month, the corresponding data characteristic values may be 0, 8, 15.56, 21, 32, 26, 46.79, 51, 62, 70.89, 83.2, 100, and the binned data sequences are numbered differently from small to large, such as 0, 8, 10 as the first binned data sequence, 10, 15.56, 20 as the second binned data sequence, until 90, 100 as the tenth binned data sequence.
[0062] In the embodiment of the present invention, the data feature values after binning have strong robustness, which can improve the expressiveness of the data feature values and ensure the integrity of the original data information.
[0063] In the embodiment of the present invention, equidistant binning can facilitate the subsequent calculation of feature interpolation of each data feature value according to the binning interval and the binning interval boundary value, thereby realizing feature mapping of each data feature value.
[0064] S2. Calculate feature interpolation values of a plurality of the data feature values according to a plurality of the binned data sequences.
[0065] In the embodiment of the present invention, the feature interpolation refers to the data feature value that does not belong to the binning interval boundary value by calculating the interpolation array obtained by the data feature value and its corresponding binning interval boundary value. For example, the data feature value 21 is in the interval (20-30), and the binning interval boundary values are 20 and 30 respectively. The feature interpolation array of 21 can be expressed as 21 = (30-21) / (30-20)*20+(21-20) / (30-20)*30 = 0.9*20+0.1*30 = [0.9, 0.1]. The original information of the data feature value can be better preserved through feature interpolation.
[0066] In detail, the feature interpolation of calculating a plurality of the data feature values according to a plurality of the binned data sequences comprises:
[0067] Determine a binned data sequence in which a plurality of the data feature values are located, and obtain the binned interval boundary value in the binned data sequence;
[0068] The feature interpolation values of the plurality of data feature values are calculated using the binning interval boundary values and a preset formula.
[0069] In the embodiment of the present invention, the preset formula is as follows:
[0070] x=(boundary i+1 -x) / (boundary i+1 -boundary i )*boundary i +(x-boundary i ) / (boundary i+1 -boundary i )*boundary i+1 =[(boundary i+1 -x) / (boundary i+1 -boundary i ),(x-boundary i+1 ) / (boundary i+1 -boundary i )]
[0071] Among them, x is the data feature value, boundary i+1 is the maximum binning interval boundary value of the interval where x is located, boundary i is the minimum binning interval boundary value of the interval where x is located, and the feature interpolation value is [(boundary i+1 -x) / (boundary i+1 -boundary i ),(x-boundary i+1 ) / (boundary i+1 -boundary i )].
[0072] In the embodiment of the present invention, the data feature values within the binning interval can be represented by feature interpolation using the binning interval boundary values. For example, the value x is within a certain interval, and the two binning interval boundary values of the interval are boundary i 、boundary i+1 , then x can be expressed by interval value interpolation: x = (boundary i+1 -x) / (boundary i+1 -boundary i )*boundary i +(x-boundary i ) / (boundary i+1 -boundary i )*boundary i+1 , the feature interpolation is [(boundary i+1 -x) / (boundary i+1 -boundary i ),(x-boundary i+1 ) / (boundary i+1 -boundary i )], taking the data eigenvalue 21 as an example, the data eigenvalue 21 is in the interval (20-30), and the boundary values of the binning intervals are 20 and 30 respectively. The feature interpolation of 21 can be expressed as 21=(30-21) / (30-20)*20+(21-20) / (30-20)*30=0.9*20+0.1*30=[0.9, 0.1].
[0073] S3. Determine whether there are missing values in the multiple data feature values.
[0074] In the embodiment of the present invention, the missing value refers to the fact that a certain data feature value among multiple data feature values is missing, and the existence of the missing value may cause clustering, grouping, deletion or truncation of the data.
[0075] In an embodiment of the present invention, whether there are missing values in the multiple data feature values can be judged by a preset function (such as: md.pattren). If there are no missing values in the multiple data feature values, the value returned after the judgment by the function is 1; if there are missing values in the multiple data feature values, the value returned after the judgment by the function is 0.
[0076] S4. If there are no missing values in the plurality of data feature values, feature mapping is performed on the feature interpolation and the binning interval boundary values to obtain mapping data of the data to be processed.
[0077] In the embodiment of the present invention, the feature mapping refers to mapping each data feature value to a space vector, thereby converting discrete data feature values into continuous vector data. The implementation process of the feature mapping is generally called Embedding. After Embedding, each data feature value has a corresponding Embedding value, wherein the feature mapping includes two processes: encoding and decoding.
[0078] In detail, the feature interpolation and the binning interval boundary value are respectively subjected to feature mapping to obtain mapping data of the data to be processed, including:
[0079] Using a preset encoder to positionally encode the feature interpolation and the binning interval boundary value, respectively, to obtain a feature vector set of the data to be processed;
[0080] Using a preset decoder to convert the feature vector set of the data to be processed into a feature matrix;
[0081] The feature matrix is mapped into a low-dimensional space to obtain mapping data of the data to be processed.
[0082] In the embodiment of the present invention, the low-dimensional space may also be referred to as a low-dimensional mapping, which means mapping a high-dimensional feature matrix into a low-dimensional feature matrix, thereby removing unnecessary features while retaining necessary features.
[0083] Furthermore, the feature interpolation and the binning interval boundary value are respectively position-encoded using a preset encoder to obtain a feature vector set of the data to be processed, including:
[0084] Using a preset encoder to perform position index encoding on the feature interpolation and the binning interval boundary value respectively, to obtain a feature interpolation position index and a binning interval boundary value position index;
[0085] The feature interpolation and the binning interval boundary value are respectively converted into corresponding vectors to obtain a feature interpolation vector and a binning interval boundary value vector;
[0086] Combining the binning interval boundary value position index and the binning interval boundary value vector to generate a binning interval boundary value vector set;
[0087] Combining the feature interpolation position index and the feature interpolation vector to generate a feature interpolation vector set;
[0088] The binning interval boundary value vector set and the feature interpolation vector set are summarized to obtain a feature vector set of the data to be processed.
[0089] In one embodiment of the present invention, the encoder refers to a device that converts data into data vectors for transmission and storage, for example, a Transformer encoder.
[0090] Specifically, when the data to be processed is the net profit of an enterprise each month, the corresponding data feature values may be 0, 8, 15.56, 21, 32, 26, 46.79, 51, 62, 70.89, 83.2, and 100; after binning, the binning interval boundary values can be determined to be 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, and 100; the feature interpolation values that do not belong to the binning interval boundary values are 8, 15.56, 21, 32, 26, 46.79, 51, 62, 70.89, and 83.2; then the binning interval boundary values are encoded by position index, and the position index of "0" is 0, the position index of "10" is 1, the position index of "20" is 2, and the position index of "100" is 10.
[0091] Furthermore, the binning interval boundary values are converted into feature vectors, and the vector of "0" is 0000, the vector of "10" is 0001, the vector of "20" is 0002, and the vector of "100" is 0010; the binning interval boundary value position index and the binning interval boundary value vector are combined to obtain the vector set of "0" as 0-0000, the vector set of "10" as 1-0001, and the vector set of "100" as 10-0010, and so on.
[0092] In another embodiment of the present invention, the feature vector set of the data to be processed is converted into a feature matrix and the feature matrix is mapped to a low-dimensional space, so that feature interpolation with enhanced information density and the boundary value of the binning interval can be obtained, thereby obtaining more accurate information of the data to be processed.
[0093] In the embodiment of the present invention, through the two processes of position encoding and decoding, the closer the relationship between the original data feature values is, the closer the feature mapping values (Embedding) obtained after feature mapping are. It is also possible to use different feature mapping values (Embedding) to represent different numerical values. Even if there is a slight difference between two numerical values, they can be represented by different Embeddings.
[0094] For example, the feature mapping value Embedding of all binning interval boundary values can be E = [e0,e1,e2,e3,e4,e5,e6,e7,e8,e9,e 10 ], where the binning interval boundary value 0 corresponds to e0, the binning interval boundary value 10 corresponds to e1, and the binning interval boundary value 20 corresponds to e 20 ...the binning interval boundary value 90 corresponds to e9, and the binning interval boundary value 100 corresponds to e 10 .
[0095] S5. If there are missing values among the plurality of data feature values, feature mapping is performed on the missing values, the feature interpolation values, and the binning interval boundary values to obtain mapping data of the data to be processed.
[0096] In an embodiment of the present invention, if there are missing values in the features of the data to be processed, and the missing values are also feature mapped, since the method of feature mapping the missing values, the feature interpolation, and the binning interval boundary values is consistent with the method of feature mapping the feature interpolation and the binning interval boundary values in S4, they will not be repeated here.
[0097] For example, when missing values exist, the missing values can be displayed as null markers. The embedding of the missing values after feature mapping will be far away from the embedding of other data feature values, and the missing values are also represented by corresponding embeddings. The binning interval boundary values and missing values are: E = [e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e 10 ,e 11 ], e0-e 10 Can represent the boundary value of the binning interval, e 11 Can represent missing values.
[0098] Furthermore, after performing feature mapping on the missing values, the feature interpolation, and the binning interval boundary values to obtain mapping data of the data to be processed, the method further includes:
[0099] Obtaining the missing position of the missing value, filling the missing position with a preset filling parameter, and calculating the missing value probability of the filling parameter;
[0100] Generate the filled missing value according to the missing position, filling parameters and missing value probability.
[0101] In the embodiment of the present invention, data filling can be achieved by the following formula:
[0102]
[0103] Among them, L(θ) represents the missing value filled, x i represents the missing position of the i-th missing value, θ represents the filling parameter corresponding to the filled missing value, n represents the number of data feature values, and p(x i |θ) represents the probability of missing values of the filling parameter.
[0104] In one embodiment of the present invention, by filling in missing values, the data characteristic value information can be further improved, thereby further improving the data integrity and expression effect of the data characteristic value.
[0105] In an embodiment of the present invention, firstly, the data to be processed is obtained, multiple data feature values of the data to be processed are extracted, and the multiple data feature values are binned to obtain multiple binned data sequences, wherein the binned data sequences include data feature values and binning interval boundary values, and the data feature values after binning have strong robustness, and the data feature values after binning can be cross-featured, which can improve the expressiveness of the data feature values and ensure the integrity of the original data information; secondly, the feature interpolation of the multiple data feature values is calculated according to the multiple binning data sequences, and the accuracy of the subsequent information extraction can be improved by calculating the feature interpolation; finally, if there are missing values in the multiple data feature values, the missing values, the feature interpolation, and the binning interval boundary values are feature mapped to obtain the mapping data of the data to be processed, which can realize the use of different mapping data to represent different values in the binning interval, even if the two values have very small differences, they can be represented by different mapping data, and missing values can also be represented, thereby improving the expression effect of the data feature values. Therefore, the data feature mapping method proposed in the embodiment of the present invention can improve the expression effect of the data feature values.
[0106] like Figure 2 The figure shows a functional module diagram of the data feature mapping device of the present invention.
[0107] The data feature mapping device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the data feature mapping device can include a binning module 101, a feature interpolation calculation module 102, and a feature mapping module 103. The module described in the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, and is stored in the memory of the electronic device.
[0108] In this embodiment, the functions of each module / unit are as follows:
[0109] The binning module 101 is used to obtain data to be processed, extract multiple data feature values of the data to be processed, and bin the multiple data feature values to obtain multiple binned data sequences, wherein the binned data sequences include data feature values and binning interval boundary values.
[0110] In the embodiment of the present invention, the data to be processed refers to various data stored in a storage space such as a blockchain, such as pictures, texts, and tables. The data feature value refers to a feature value extracted from the data to be processed. For example, if the data to be processed is a table data recording age, the value in the table is the data feature value.
[0111] The binning module 101 is also used for:
[0112] After extracting multiple data feature values of the data to be processed, data cleaning processing is performed on the multiple data feature values to obtain cleaned data feature values, and the data cleaning processing includes deleting abnormal data or invalid values in the data feature values.
[0113] In the embodiment of the present invention, by performing data cleaning on the data characteristic values, the calculation speed of subsequent data can be increased and the quality of the data can be improved.
[0114] In detail, the binning module 101 bins the plurality of data feature values by performing the following operations to obtain a plurality of binned data sequences, including:
[0115] Obtaining the maximum and minimum values among the plurality of data characteristic values, and the preset number of bins;
[0116] Determine a binning interval according to the maximum value, the minimum value and the number of bins, and determine a binning interval boundary value according to the binning interval;
[0117] According to the binning interval boundary value and the binning interval, multiple data feature values are subjected to equidistant binning processing to obtain multiple binning data sequences.
[0118] In one embodiment of the present invention, the maximum value corresponding to multiple data characteristic values is the maximum value among the data characteristic values, and similarly, the minimum value corresponding to the data characteristic value is the minimum value among the data characteristic values. In an embodiment of the present invention, the binning interval refers to an interval of equal length obtained after sorting the data characteristic values from small to large or from large to small and binning. For example, if the data to be processed is the net income of the enterprise each month, the corresponding data characteristic values can be 0, 8, 15.56, 21, 32, 26, 46.79, 51, 62, 70.89, 83.2, 100, and the unit is percentage. The maximum value of the data characteristic value can be Max, which is 100, and the minimum value Min is 0. The number of bins is set to n, which is 10, and the length of each interval can be obtained as L (Max-Min) / n=10, and 10 binning intervals are determined to be (0-10), (10-20)...(90-100).
[0119] In the embodiment of the present invention, the binning interval boundary value refers to the maximum and minimum values in each binning interval of equal length. For example, 10 binning intervals are (0-10), (10-20)...(90-100), and the 11 binning interval boundary values [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100] can be determined by the maximum and minimum values in each interval.
[0120] In one embodiment of the present invention, the equidistant binning refers to sorting the data characteristic values to be binned from small to large or from large to small, and then binning the data characteristic values according to the equidistant statistical principle; binning multiple data characteristic values to determine the binning interval where each data characteristic value is located, thereby determining a binned data sequence, and the binned data sequence includes the binning interval boundary value and the data characteristic value in each binning interval.
[0121] Specifically, if the data to be processed is the net profit of the enterprise each month, the corresponding data characteristic values may be 0, 8, 15.56, 21, 32, 26, 46.79, 51, 62, 70.89, 83.2, 100, and the binned data sequences are numbered differently from small to large, such as 0, 8, 10 as the first binned data sequence, 10, 15.56, 20 as the second binned data sequence, until 90, 100 as the tenth binned data sequence.
[0122] In the embodiment of the present invention, the data feature values after binning have strong robustness, which can improve the expressiveness of the data feature values and ensure the integrity of the original data information.
[0123] In the embodiment of the present invention, equidistant binning can facilitate the subsequent calculation of feature interpolation of each data feature value according to the binning interval and the binning interval boundary value, thereby realizing feature mapping of each data feature value.
[0124] The feature interpolation calculation module 102 is used to calculate the feature interpolation of multiple data feature values according to multiple binned data sequences.
[0125] In the embodiment of the present invention, the feature interpolation refers to the data feature value that does not belong to the binning interval boundary value by calculating the interpolation array obtained by the data feature value and its corresponding binning interval boundary value. For example, the data feature value 21 is in the interval (20-30), and the binning interval boundary values are 20 and 30 respectively. The feature interpolation array of 21 can be expressed as 21 = (30-21) / (30-20)*20+(21-20) / (30-20)*30 = 0.9*20+0.1*30 = [0.9, 0.1]. The original information of the data feature value can be better preserved through feature interpolation.
[0126] In detail, the feature interpolation calculation module 102 calculates feature interpolation values of a plurality of data feature values according to a plurality of binned data sequences by performing the following operations, including:
[0127] Determine a binned data sequence in which a plurality of the data feature values are located, and obtain the binned interval boundary value in the binned data sequence;
[0128] The feature interpolation values of the plurality of data feature values are calculated using the binning interval boundary values and a preset formula.
[0129] In the embodiment of the present invention, the preset formula is as follows:
[0130] x=(boundary i+1 -x) / (boundary i+1 -boundary i )*boundary i +(x-boundary i ) / (boundary i+1 -boundary i )*boundary i+1 =[(boundary i+1 -x) / (boundary i+1 -boundary i ),(x-boundary i+1 ) / (boundary i+1 -boundary i )]
[0131] Among them, x is the data feature value, boundary i+1is the maximum binning interval boundary value of the interval where x is located, boundary i is the minimum binning interval boundary value of the interval where x is located, and the feature interpolation value is [(boundary i+1 -x) / (boundary i+1 -boundary i ),(x-boundary i+1 ) / (boundary i+1 -boundary i )].
[0132] In the embodiment of the present invention, the data feature values within the binning interval can be represented by feature interpolation using the binning interval boundary values. For example, the value x is within a certain interval, and the two binning interval boundary values of the interval are boundary i 、boundary i+1 , then x can be expressed by interval value interpolation: x = (boundary i+1 -x) / (boundary i+1 -boundary i )*boundary i +(x-boundary i ) / (boundary i+1 -boundary i )*boundary i+1 , the feature interpolation is [(boundary i+1 -x) / (boundary i+1 -boundary i ),(x-boundary i+1 ) / (boundary i+1 -boundary i )], taking the data eigenvalue 21 as an example, the data eigenvalue 21 is in the interval (20-30), and the boundary values of the binning intervals are 20 and 30 respectively. The feature interpolation of 21 can be expressed as 21=(30-21) / (30-20)*20+(21-20) / (30-20)*30=0.9*20+0.1*30=[0.9, 0.1].
[0133] The feature mapping module 103 is used to determine whether there are missing values in the multiple data feature values; if there are no missing values in the multiple data feature values, the feature interpolation and the binning interval boundary values are feature mapped respectively to obtain mapping data of the data to be processed; if there are missing values in the multiple data feature values, the missing values, the feature interpolation and the binning interval boundary values are feature mapped respectively to obtain mapping data of the data to be processed.
[0134] In the embodiment of the present invention, the missing value refers to the fact that a certain data feature value among multiple data feature values is missing, and the existence of the missing value may cause clustering, grouping, deletion or truncation of the data.
[0135] In an embodiment of the present invention, whether there are missing values in the multiple data feature values can be judged by a preset function (such as: md.pattren). If there are no missing values in the multiple data feature values, the value returned after the judgment by the function is 1; if there are missing values in the multiple data feature values, the value returned after the judgment by the function is 0.
[0136] In the embodiment of the present invention, the feature mapping refers to mapping each data feature value to a space vector, thereby converting discrete data feature values into continuous vector data. The implementation process of the feature mapping is generally called Embedding. After Embedding, each data feature value has a corresponding Embedding value, wherein the feature mapping includes two processes: encoding and decoding.
[0137] In detail, the feature mapping module 103 performs feature mapping on the feature interpolation and the binning interval boundary value respectively by performing the following operations to obtain mapping data of the data to be processed, including:
[0138] Using a preset encoder to positionally encode the feature interpolation and the binning interval boundary value, respectively, to obtain a feature vector set of the data to be processed;
[0139] Using a preset decoder to convert the feature vector set of the data to be processed into a feature matrix;
[0140] The feature matrix is mapped into a low-dimensional space to obtain mapping data of the data to be processed.
[0141] In the embodiment of the present invention, the low-dimensional space may also be referred to as a low-dimensional mapping, which means mapping a high-dimensional feature matrix into a low-dimensional feature matrix, thereby removing unnecessary features while retaining necessary features.
[0142] The feature mapping module 103 is also used for:
[0143] Using a preset encoder to perform position index encoding on the feature interpolation and the binning interval boundary value respectively, to obtain a feature interpolation position index and a binning interval boundary value position index;
[0144] The feature interpolation and the binning interval boundary value are respectively converted into corresponding vectors to obtain a feature interpolation vector and a binning interval boundary value vector;
[0145] Combining the binning interval boundary value position index and the binning interval boundary value vector to generate a binning interval boundary value vector set;
[0146] Combining the feature interpolation position index and the feature interpolation vector to generate a feature interpolation vector set;
[0147] The binning interval boundary value vector set and the feature interpolation vector set are summarized to obtain a feature vector set of the data to be processed.
[0148] In one embodiment of the present invention, the encoder refers to a device that converts data into data vectors for transmission and storage, for example, a Transformer encoder.
[0149] Specifically, when the data to be processed is the net profit of an enterprise each month, the corresponding data feature values may be 0, 8, 15.56, 21, 32, 26, 46.79, 51, 62, 70.89, 83.2, and 100; after binning, the binning interval boundary values can be determined to be 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, and 100; the feature interpolation values that do not belong to the binning interval boundary values are 8, 15.56, 21, 32, 26, 46.79, 51, 62, 70.89, and 83.2; then the binning interval boundary values are encoded by position index, and the position index of "0" is 0, the position index of "10" is 1, the position index of "20" is 2, and the position index of "100" is 10.
[0150] Furthermore, the binning interval boundary values are converted into feature vectors, and the vector of "0" is 0000, the vector of "10" is 0001, the vector of "20" is 0002, and the vector of "100" is 0010; the binning interval boundary value position index and the binning interval boundary value vector are combined to obtain the vector set of "0" as 0-0000, the vector set of "10" as 1-0001, and the vector set of "100" as 10-0010, and so on.
[0151] In another embodiment of the present invention, the feature vector set of the data to be processed is converted into a feature matrix and the feature matrix is mapped to a low-dimensional space, so that feature interpolation with enhanced information density and the boundary value of the binning interval can be obtained, thereby obtaining more accurate information of the data to be processed.
[0152] In the embodiment of the present invention, through the two processes of position encoding and decoding, the closer the relationship between the original data feature values is, the closer the feature mapping values (Embedding) obtained after feature mapping are. It is also possible to use different feature mapping values (Embedding) to represent different numerical values. Even if there is a slight difference between two numerical values, they can be represented by different Embeddings.
[0153] For example, the feature mapping value Embedding of all binning interval boundary values can be E = [e0,e1,e2,e3,e4,e5,e6,e7,e8,e9,e 10 ], where the binning interval boundary value 0 corresponds to e0, the binning interval boundary value 10 corresponds to e1, and the binning interval boundary value 20 corresponds to e 20 ...the binning interval boundary value 90 corresponds to e9, and the binning interval boundary value 100 corresponds to e 10 .
[0154] In an embodiment of the present invention, if there are missing values in the features of the data to be processed, and the missing values are also feature mapped, since the method of feature mapping the missing values, the feature interpolation, and the binning interval boundary values is consistent with the method of feature mapping the feature interpolation and the binning interval boundary values in S4, they will not be repeated here.
[0155] For example, when missing values exist, the missing values can be displayed as null markers. The embedding of the missing values after feature mapping will be far away from the embedding of other data feature values, and the missing values are also represented by corresponding embeddings. The binning interval boundary values and missing values are: E = [e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, e 10 ,e 11 ], e0-e 10 Can represent the boundary value of the binning interval, e 11 Can represent missing values.
[0156] The feature mapping module 103 is also used for:
[0157] Performing feature mapping on the missing value, the feature interpolation, and the binning interval boundary value to obtain the mapping data of the data to be processed, obtaining the missing position of the missing value, filling the missing position with a preset filling parameter, and calculating the missing value probability of the filling parameter;
[0158] Generate the filled missing value according to the missing position, filling parameters and missing value probability.
[0159] In the embodiment of the present invention, data filling can be achieved by the following formula:
[0160]
[0161] Among them, L(θ) represents the missing value filled, x i represents the missing position of the i-th missing value, θ represents the filling parameter corresponding to the filled missing value, n represents the number of data feature values, and p(x i |θ) represents the probability of missing values of the filling parameter.
[0162] In one embodiment of the present invention, by filling in missing values, the data characteristic value information can be further improved, thereby further improving the data integrity and expression effect of the data characteristic value.
[0163] In an embodiment of the present invention, firstly, the data to be processed is obtained, multiple data feature values of the data to be processed are extracted, and the multiple data feature values are binned to obtain multiple binned data sequences, wherein the binned data sequences include data feature values and binning interval boundary values, and the data feature values after binning have strong robustness, and the data feature values after binning can be cross-featured, which can improve the expressiveness of the data feature values and ensure the integrity of the original data information; secondly, the feature interpolation of the multiple data feature values is calculated according to the multiple binning data sequences, and the accuracy of the subsequent information extraction can be improved by calculating the feature interpolation; finally, if there are missing values in the multiple data feature values, the missing values, the feature interpolation, and the binning interval boundary values are feature mapped to obtain the mapping data of the data to be processed, which can realize the use of different mapping data to represent different values in the binning interval, even if the two values have very small differences, they can be represented by different mapping data, and missing values can also be represented, thereby improving the expression effect of the data feature values. Therefore, the data feature mapping device proposed in the embodiment of the present invention can improve the expression effect of the data feature values.
[0164] like Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing the data feature mapping method of the present invention.
[0165] The electronic device may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a data feature mapping program.
[0166] Wherein, the memory 11 includes at least one type of medium, and the medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, local disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the data feature mapping program, etc., but also can be used to temporarily store data that has been output or is to be output.
[0167] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules (such as data feature mapping programs, etc.) stored in the memory 11, and calls data stored in the memory 11 to execute various functions of the electronic device and process data.
[0168] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The communication bus 12 is configured to realize connection and communication between the memory 11 and at least one processor 10, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0169] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3The structure shown does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0170] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0171] Optionally, the communication interface 13 may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices.
[0172] Optionally, the communication interface 13 may also include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0173] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0174] The data feature mapping program stored in the memory 11 in the electronic device is a combination of multiple computer programs. When running in the processor 10, it can achieve:
[0175] Acquire data to be processed, extract multiple data feature values of the data to be processed, and bin the multiple data feature values to obtain multiple binned data sequences, wherein the binned data sequences include data feature values and binning interval boundary values;
[0176] Calculate feature interpolation values of a plurality of the data feature values according to a plurality of the binned data sequences;
[0177] Determine whether there are missing values in the plurality of data feature values;
[0178] If there is no missing value in the plurality of data feature values, feature mapping is performed on the feature interpolation and the binning interval boundary values to obtain mapping data of the data to be processed;
[0179] If there are missing values among the plurality of data feature values, feature mapping is performed on the missing values, the feature interpolation values and the binning interval boundary values respectively to obtain mapping data of the data to be processed.
[0180] Specifically, the specific implementation method of the processor 10 for the above computer program can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0181] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable medium. The computer-readable medium can be non-volatile or volatile. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM).
[0182] The embodiment of the present invention may further provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program may implement:
[0183] Acquire data to be processed, extract multiple data feature values of the data to be processed, and bin the multiple data feature values to obtain multiple binned data sequences, wherein the binned data sequences include data feature values and binning interval boundary values;
[0184] Calculate feature interpolation values of a plurality of the data feature values according to a plurality of the binned data sequences;
[0185] Determine whether there are missing values in the plurality of data feature values;
[0186] If there is no missing value in the plurality of data feature values, feature mapping is performed on the feature interpolation and the binning interval boundary values to obtain mapping data of the data to be processed;
[0187] If there are missing values among the plurality of data feature values, feature mapping is performed on the missing values, the feature interpolation values and the binning interval boundary values respectively to obtain mapping data of the data to be processed.
[0188] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0189] In the several embodiments provided by the present invention, it should be understood that the disclosed media, devices, apparatuses and methods can be implemented in other ways. For example, the apparatus embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0190] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0191] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0192] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0193] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0194] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0195] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.
[0196] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A data feature mapping method, characterized in that: The method comprises: Acquire data to be processed, extract multiple data feature values of the data to be processed, and bin the multiple data feature values to obtain multiple binned data sequences, wherein the binned data sequences include data feature values and binning interval boundary values; Calculate feature interpolation values of a plurality of the data feature values according to a plurality of the binned data sequences; Determine whether there are missing values in the plurality of data feature values; If there is no missing value in the plurality of data feature values, feature mapping is performed on the feature interpolation and the binning interval boundary values to obtain mapping data of the data to be processed; If there are missing values among the plurality of data feature values, feature mapping is performed on the missing values, the feature interpolation values and the binning interval boundary values respectively to obtain mapping data of the data to be processed; The feature interpolation is calculated using a preset formula, which is: x=( -x) / ( - )* +(x- ) / ( - )* =[( -x) / ( - ), ( ) / ( - )] Among them, x is the data characteristic value, is the maximum binning interval boundary value of the interval where x is located, is the minimum binning interval boundary value of the interval where x is located, and the feature interpolation value is [( -x) / ( - ), ( ) / ( - )].
2. The data feature mapping method according to claim 1, characterized in that: The step of performing feature mapping on the feature interpolation and the binning interval boundary value to obtain mapping data of the data to be processed includes: Using a preset encoder to positionally encode the feature interpolation and the binning interval boundary value, respectively, to obtain a feature vector set of the data to be processed; Using a preset decoder to convert the feature vector set of the data to be processed into a feature matrix; The feature matrix is mapped into a low-dimensional space to obtain mapping data of the data to be processed.
3. The data feature mapping method according to claim 2, characterized in that: The method of using a preset encoder to positionally encode the feature interpolation and the binning interval boundary value to obtain a feature vector set of the data to be processed includes: Using a preset encoder to perform position index encoding on the feature interpolation and the binning interval boundary value respectively, to obtain a feature interpolation position index and a binning interval boundary value position index; The feature interpolation and the binning interval boundary value are respectively converted into corresponding vectors to obtain a feature interpolation vector and a binning interval boundary value vector; Combining the binning interval boundary value position index and the binning interval boundary value vector to generate a binning interval boundary value vector set; Combining the feature interpolation position index and the feature interpolation vector to generate a feature interpolation vector set; The binning interval boundary value vector set and the feature interpolation vector set are summarized to obtain a feature vector set of the data to be processed.
4. The data feature mapping method according to any one of claims 1 to 3, characterized in that: The step of binning the plurality of data feature values to obtain a plurality of binned data sequences comprises: Obtaining the maximum and minimum values among the plurality of data characteristic values, and the preset number of bins; Determine a binning interval according to the maximum value, the minimum value and the number of bins, and determine a binning interval boundary value according to the binning interval; According to the binning interval boundary value and the binning interval, multiple data feature values are subjected to equidistant binning processing to obtain multiple binning data sequences.
5. The data feature mapping method according to any one of claims 1 to 3, characterized in that: The step of calculating feature interpolation of a plurality of data feature values according to a plurality of binned data sequences comprises: Determine a binned data sequence in which a plurality of the data feature values are located, and obtain the binned interval boundary value in the binned data sequence; The feature interpolation values of the plurality of data feature values are calculated using the binning interval boundary values and a preset formula.
6. The data feature mapping method according to any one of claims 1 to 3, characterized in that: After performing feature mapping on the missing values, the feature interpolation and the binning interval boundary values respectively to obtain mapping data of the data to be processed, the method further includes: Obtaining the missing position of the missing value, filling the missing position with a preset filling parameter, and calculating the missing value probability of the filling parameter; Generate the filled missing value according to the missing position, filling parameters and missing value probability.
7. The data feature mapping method according to any one of claims 1 to 3, characterized in that: After extracting the multiple data feature values of the data to be processed, the method further includes: Data cleaning is performed on the plurality of data feature values to obtain cleaned data feature values, wherein the data cleaning includes deleting abnormal data or invalid values in the data feature values.
8. A data feature mapping device, used to implement the data feature mapping method according to any one of claims 1 to 7, characterized in that: The device comprises: A binning module is used to obtain data to be processed, extract multiple data feature values of the data to be processed, and bin the multiple data feature values to obtain multiple binning data sequences, wherein the binning data sequences include data feature values and binning interval boundary values; A feature interpolation calculation module, used for calculating feature interpolation values of a plurality of data feature values according to a plurality of binned data sequences; The feature mapping module is used to determine whether there are missing values in the multiple data feature values; if there are no missing values in the multiple data feature values, the feature interpolation and the binning interval boundary values are feature mapped respectively to obtain mapping data of the data to be processed; if there are missing values in the multiple data feature values, the missing values, the feature interpolation and the binning interval boundary values are feature mapped respectively to obtain mapping data of the data to be processed.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the data feature mapping method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the data feature mapping method according to any one of claims 1 to 7 is implemented.
