A data display method, device, equipment and storage medium
By calculating the information entropy and position information error of the data to be displayed, its diversity is judged and appropriately processed, the problem of unpredictability before data sequence display in the recommendation system is solved, and the user experience and data display stability is improved.
Patent Information
- Application Number
- CN202111564372.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2041-12-20
AI Technical Summary
The existing recommendation system cannot directly judge the diversity of data before displaying the data sequence, resulting in a decrease in user experience and it is difficult to ensure continuous and stable diversified recommendations.
By obtaining the data sequence to be displayed, the information entropy and position information error are calculated, and if the preset diversity conditions are met, the data sequence will be displayed. Otherwise, an early warning prompt will be generated, and data renumbering and binning will be performed to improve diversity.
Improve the accuracy and stability of data display, ensure that data diversity meets the conditions and displays it in a timely manner, and reduces the cost of error detection and repair time.
Smart Images

Figure CN114255105B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of data processing, and in particular to a data display method, device, equipment and storage medium. Background Art
[0002] With the continuous development of the Internet, Internet users are becoming more and more dependent on the Internet when purchasing goods or searching for information. When purchasing goods and searching for information, personalized recommendations for users often affect their final decisions.
[0003] Taking product recommendations as an example, when building a recommendation system, merchants pay more attention to the diversity of the recommendation sequences displayed to users, so that they can diversify when recommending products to users, rather than recommending only a few products, which causes similar products to cluster, causing users to become aesthetically fatigued and lose their sense of freshness, thus reducing user experience. Currently, multi-dimensional user features are often used to expand the scope of recommendations to ensure the diversity of recommended content. However, due to the particularity of the recommendation system, it is difficult to make a correct or incorrect judgment based on the output results. User feedback is required to evaluate the effectiveness of the recommendation. Therefore, the recommendation results cannot be predicted, and it is difficult to ensure that the recommendation system can continuously and stably display diversified recommendation data. Summary of the invention
[0004] The present invention provides a data display method, device, equipment and storage medium, so as to judge the diversity of the data sequence to be displayed before displaying the data to the user, so as to ensure that the displayed data meets the diverse needs, improve the stability and diversity of the data display, save labor costs, and ensure the timeliness of error discovery.
[0005] In a first aspect, an embodiment of the present invention provides a data display method, including:
[0006] Acquire a sequence of data to be displayed, where the sequence of data to be displayed includes at least three data to be displayed;
[0007] Determine at least one information entropy corresponding to the data sequence to be displayed and a position information error corresponding to the data sequence to be displayed according to the serial number and characteristic information of each data to be displayed;
[0008] If each information entropy and position information error meets the preset diversity display conditions, the data sequence to be displayed is displayed.
[0009] Furthermore, the data to be displayed includes at least one kind of characteristic information, and according to the serial number and characteristic information of each data to be displayed, at least one information entropy corresponding to the sequence of data to be displayed is determined, including:
[0010] Generate a feature set corresponding to the feature type according to feature information of the same feature type extracted from each data to be displayed;
[0011] Preprocess each feature set according to the variable type of feature information corresponding to each feature set;
[0012] According to the occurrence frequency of each feature information in each processed feature set, the information entropy corresponding to each feature set is determined, and each information entropy is determined as the information entropy corresponding to the data sequence to be displayed.
[0013] Furthermore, each feature set is preprocessed according to the variable type of the feature information corresponding to each feature set, including:
[0014] If the variable type of the corresponding feature information in the feature set is a continuous variable, each feature information is binned to convert the corresponding feature information in the feature set into a discrete variable.
[0015] Further, according to the serial number and characteristic information of each data to be displayed, determining the position information error corresponding to the data sequence to be displayed includes:
[0016] The feature information of each data to be displayed is sorted by importance, and the feature information with the highest importance is determined as the target feature information;
[0017] Divide the data to be displayed according to the target feature information, and form a target data set with the same target feature information;
[0018] Renumber the data to be displayed in each target data set;
[0019] The position information error corresponding to the sequence of data to be displayed is determined according to the serial number of each data to be displayed in each target data set and the new serial number of each data to be displayed after renumbering.
[0020] Further, determining the position information error corresponding to the sequence of data to be displayed according to the number of each data to be displayed in each target data set and the new number of each data to be displayed after renumbering, includes:
[0021] According to the serial number of each data to be displayed in each target data set, determine the actual position index table corresponding to each target data set;
[0022] Determine the reference position index table corresponding to each target data set according to the new number of each data to be displayed after renumbering;
[0023] Determine the linear error between the actual position index table and the reference position index table corresponding to the same target data set;
[0024] The position information error corresponding to the data sequence to be displayed is determined according to the average value of each linear error.
[0025] Furthermore, after determining at least one information entropy corresponding to the data sequence to be displayed and a position information error corresponding to the data sequence to be displayed according to the serial number and feature information of each data to be displayed, the method further includes:
[0026] If the information entropy or position information error does not meet the preset diversity display conditions, an early warning prompt is generated and an early warning is issued.
[0027] Furthermore, the determination of the preset diversity display conditions includes:
[0028] Randomly extracting a preset number of groups of sample data sequences from the full database containing the data to be displayed;
[0029] Determine the information entropy corresponding to each feature information in each sample data sequence, and the position information error corresponding to each sample data sequence;
[0030] The information entropy corresponding to the same feature information is averaged to determine the average feature information entropy corresponding to each feature information;
[0031] The errors of each position information are averaged to determine the average position information error;
[0032] The error greater than the average feature information entropy and the average position information error is determined as the preset diversity display condition;
[0033] The number of sample data in each sample data sequence is the same as the number of data to be displayed in the to-be-displayed data sequence.
[0034] In a second aspect, an embodiment of the present invention further provides a data display device, including:
[0035] A data sequence acquisition module is used to acquire a data sequence to be displayed, wherein the data sequence to be displayed includes at least three data to be displayed;
[0036] An error determination module, used to determine at least one information entropy corresponding to the data sequence to be displayed and a position information error corresponding to the data sequence to be displayed according to the serial number and characteristic information of each data to be displayed;
[0037] The data display module is used to display the data sequence to be displayed if each information entropy and position information error meets the preset diversity display conditions.
[0038] In a third aspect, an embodiment of the present invention further provides a data display device, the data display device comprising: a storage device and one or more processors;
[0039] A storage device for storing one or more programs;
[0040] When one or more programs are executed by one or more processors, the one or more processors implement the data display method of the first aspect as described above.
[0041] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the data display method of the first aspect described above.
[0042] An embodiment of the present invention provides a data display method, device, equipment and storage medium. The method obtains a data sequence to be displayed, wherein the data sequence to be displayed includes at least three data to be displayed; according to the number and characteristic information of each data to be displayed, at least one information entropy corresponding to the data sequence to be displayed and a position information error corresponding to the data sequence to be displayed are determined; if each information entropy and position information error meets a preset diversity display condition, the data sequence to be displayed is displayed. By adopting the above technical scheme, after obtaining the data sequence to be displayed, the information entropy corresponding to each feature information of each data to be displayed and the position information error determined according to the number of each data to be displayed are determined, so as to determine the diversity of the features therein according to the information entropy, and determine the diversity of the arrangement of the data to be displayed in the data sequence to be displayed according to the position information error. When each information entropy and the position information error meet the preset diversity display conditions, the data sequence to be displayed is displayed, which solves the problem that the existing recommendation system cannot pre-judge the diversity of the displayed data sequence before displaying the data sequence. At the same time, when judging the display diversity of the data sequence, the influence of the data arrangement in the data sequence on the display diversity is taken into account, thereby ensuring the diversity of the displayed data sequence, improving the accuracy and stability of the data display, and ensuring the timeliness of problem discovery when the diversity is not met. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 is a flow chart of a data display method in Embodiment 1 of the present invention;
[0045] Figure 2 is a flow chart of a data display method in Embodiment 2 of the present invention;
[0046] Figure 3This is an example flow chart of determining the position information error corresponding to the sequence of data to be displayed according to the number of each data to be displayed in each target data set and the new number of each data to be displayed after renumbering in the second embodiment of the present invention;
[0047] Figure 4 is an example diagram of a process for determining a preset diversity display condition in Embodiment 2 of the present invention;
[0048] Figure 5 It is a structural schematic diagram of a data display device in Embodiment 3 of the present invention;
[0049] Figure 6 It is a structural schematic diagram of a data display device in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical scheme and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be clear that the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are only examples of devices and methods consistent with some aspects of the present invention as detailed in the attached claims.
[0052] In the description of the present invention, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. In addition, in the description of the present invention, unless otherwise specified, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0053] Embodiment 1
[0054] Figure 1A flowchart of a data display method provided in Embodiment 1 of the present invention. This embodiment can be applied to the case where the diversity of a data sequence to be displayed is judged before displaying the data sequence so as to display a data sequence that meets the diversity requirements. The method can be executed by a data display apparatus, which can be implemented by software and / or hardware. The data display apparatus can be configured on a data display device, which can be a computer device, which can be composed of two or more physical entities or one physical entity.
[0055] like Figure 1 As shown, a data display method provided in Embodiment 1 of the present invention specifically includes the following steps:
[0056] S101: Obtain a data sequence to be displayed.
[0057] The sequence of data to be displayed includes at least three data to be displayed.
[0058] In this embodiment, the data to be displayed can be specifically understood as data that needs to be displayed, which can be data corresponding to physical objects such as articles, or data corresponding to non-physical objects such as application software. Exemplarily, the data to be displayed can be vehicles, network applications, real estate, and retail goods, etc., which are not limited in this embodiment of the present invention. The sequence of data to be displayed can be specifically understood as a set of data to be displayed generated after arranging multiple data to be displayed in a certain order according to the obtained user preferences. Furthermore, each data to be displayed constituting the sequence of data to be displayed should belong to the same type of data, and the type of characteristic information they have is basically the same. Exemplarily, if each data to be displayed in the sequence of data to be displayed is a vehicle, then each data to be displayed can be a vehicle of different brands, different prices, and different mileages, but the type of characteristics they have is basically the same.
[0059] Specifically, when making product recommendations, the recommendation system built by the merchant will determine the data to be displayed corresponding to multiple products based on user preferences, and arrange the data to be displayed in a certain order to generate a data sequence to be displayed. In order to reflect the impact of the data arrangement order in the data sequence on the diversity of data display, the data sequence to be displayed should include at least three data to be displayed. When the data to be displayed has not yet been displayed to the user, the data sequence to be displayed needs to be obtained to determine whether its diversity meets the display requirements.
[0060] S102: Determine at least one information entropy corresponding to the data sequence to be displayed and a position information error corresponding to the data sequence to be displayed according to the serial number and feature information of each data to be displayed.
[0061] In this embodiment, the number can be specifically understood as the number of the data to be displayed in the sequence of data to be displayed, which can be used to indicate the position information of the corresponding data to be displayed in the sequence of data to be displayed. The characteristic information can be specifically understood as different types of characteristics of the data to be displayed. For example, assuming that the data to be displayed is a vehicle, the characteristic information therein can specifically include vehicle brand, vehicle price, vehicle mileage, vehicle model and vehicle operation mode, etc., which is not limited in this embodiment of the present invention. Information entropy can be specifically understood as a quantitative quantification of information, which is used to describe the value of the uncertainty of the information source in multiple information, that is, the average amount of information after excluding redundancy from a large amount of information. The position information error can be specifically understood as the error between the position corresponding to the continuous arrangement of the same type of data to be displayed and its actual position in the sequence of data to be displayed, which can also be understood as a value used to characterize whether the same type of data to be displayed in the sequence of data to be displayed is continuously arranged, resulting in a reduction in the diversity of the sequence of data to be displayed. Further, the data to be displayed includes at least one characteristic information.
[0062] Specifically, since each data to be displayed has multiple feature information, the information entropy for the same feature information is determined for the data to be displayed with the same type of feature information, and then multiple information entropies corresponding to all feature information of the data to be displayed are obtained. At the same time, the most important feature information is selected from the feature information of each data to be displayed, and each data to be displayed is classified based on it, and the same type of data to be displayed is continuously arranged and its corresponding position is determined. According to the corresponding position of each data to be displayed when it is continuously arranged and its actual position in the data sequence to be displayed, the position information error of the data sequence to be displayed is determined.
[0063] S103: If each information entropy and position information error satisfies a preset diversity display condition, then the data sequence to be displayed is displayed.
[0064] In this embodiment, the preset diversity display condition can be specifically understood as a pre-set condition for determining the data information contained in the corresponding data sequence to be displayed based on information entropy and position information error, and whether the arrangement of each data to be displayed meets the diversity requirements of the display.
[0065] Specifically, it is determined whether the information entropy corresponding to each feature information in the data sequence to be displayed meets the preset diversity display conditions, and at the same time, it is determined whether the position information error meets the preset diversity display conditions. If both are satisfied, it can be considered that the data information displayed to the outside by the data sequence to be displayed has sufficient diversity, and the homogeneity of each data to be displayed is not serious, which will not cause aesthetic fatigue and reduced freshness for users viewing the data sequence to be displayed.
[0066] The embodiment of the present invention obtains a sequence of data to be displayed, wherein the sequence of data to be displayed includes at least three data to be displayed; according to the number and feature information of each data to be displayed, at least one information entropy corresponding to the sequence of data to be displayed and the position information error corresponding to the sequence of data to be displayed are determined; if each information entropy and the position information error both meet the preset diversity display condition, the sequence of data to be displayed is displayed. By adopting the above technical scheme, after the sequence of data to be displayed is obtained, the information entropy corresponding to each feature information of each data to be displayed and the position information error determined according to the number of each data to be displayed are determined, so as to determine the diversity of the features therein according to the information entropy, and determine the diversity of the arrangement of the data to be displayed in the sequence of data to be displayed according to the position information error. When each information entropy and the position information error both meet the preset diversity display condition, the sequence of data to be displayed is displayed, which solves the problem that the existing recommendation system cannot pre-judge the diversity of the displayed data sequence before displaying the data sequence. At the same time, when judging the display diversity of the data sequence, the influence of the data arrangement in the data sequence on the display diversity is considered, so as to ensure the diversity of the displayed data sequence, improve the accuracy and stability of the data display, and ensure the timeliness of problem discovery when the diversity is not satisfied.
[0067] Embodiment 2
[0068] Figure 2 The flowchart of a data display method provided in the second embodiment of the present invention is that the technical scheme of the embodiment of the present invention is further optimized on the basis of the above-mentioned optional technical schemes. According to the feature information of the same feature type in each data to be displayed, the corresponding feature set is determined, and the information entropy corresponding to the feature information is determined according to the frequency of occurrence of each feature information in the feature set. At the same time, the feature information of each data to be displayed is sorted by importance, and the feature information with the highest importance is determined as the target feature information. Then, each data to be displayed is divided according to the target feature information and the target data set obtained after the division is renumbered, so as to determine the position information error corresponding to the data sequence to be displayed according to the new number of the data to be displayed in each target data set and the corresponding position information error. By determining whether each information entropy and position information error meet the preset diversity display conditions, the data sequence to be displayed is displayed when it meets the conditions, and a warning prompt is generated for warning when it does not meet the conditions, so that the data sequence to be displayed is tested for diversity before being displayed to the user, thereby improving the accuracy and stability of data display, and timely warning the data sequence to be displayed when the diversity is not met, ensuring the timeliness of problem discovery and reducing the time cost of repair.
[0069] like Figure 2 As shown, a data display method provided in Embodiment 2 of the present invention specifically includes the following steps:
[0070] S201: Obtain a data sequence to be displayed.
[0071] The sequence of data to be displayed includes at least three data to be displayed.
[0072] S202: Generate a feature set corresponding to the feature type according to feature information of the same feature type extracted from each piece of data to be displayed.
[0073] In this embodiment, the feature type can be specifically understood as a category formed by classifying each feature according to its properties. Features of the same feature type should have certain common properties. For example, assuming that the data to be displayed is a vehicle, if the feature type is a brand, the feature information corresponding to the feature type in different data to be displayed can be Audi, BMW, Volkswagen and Rolls-Royce, etc., but the common property of each feature information is that the above feature information is information describing the vehicle brand. The feature set can be specifically understood as a collection of multiple feature information with the same properties.
[0074] Specifically, since one piece of data to be displayed has feature information of multiple different feature types, feature information of the same feature type in each piece of data to be displayed may be extracted, and the extracted feature information may be combined to generate a feature set corresponding to the above feature type.
[0075] For example, assuming that the data to be displayed is a vehicle, the characteristic information corresponding to one piece of data to be displayed may include the vehicle brand, vehicle price, and vehicle mileage, etc. Taking five pieces of data to be displayed as an example, the characteristic information of each piece of data to be displayed is shown in Table 1 below:
[0076] Table 1
[0077] vehicle Vehicle Brand Vehicle price (ten thousand yuan) Vehicle mileage (km) A Audi 45 60 B public 23 870 C public 16 122 D Audi 35 1689 E public 19 25
[0078] For the vehicle brand feature types in the above-mentioned data to be displayed, the feature information extracted from each data to be displayed is: Audi, Volkswagen, Volkswagen, Audi and Volkswagen, and the feature set corresponding to the vehicle brand generated is [Audi, Volkswagen, Volkswagen, Audi, Volkswagen].
[0079] S203 . Preprocess each feature set according to the variable type of feature information corresponding to each feature set.
[0080] In this embodiment, the variable type can be specifically understood as a type divided according to whether the variable value of the variable is continuous, and can include two types: continuous variables and discrete variables. A continuous variable can be specifically understood as a variable with an infinite number of values between any two values, and a discrete variable can be specifically understood as a variable with countable values between any two values.
[0081] Specifically, since the data involved in the calculation of information entropy are all discrete, it is necessary to preprocess the feature information contained in each feature set according to the variable type of the feature information corresponding to each feature set, so that the data contained in each feature set is discrete data.
[0082] Furthermore, each feature set is preprocessed according to the variable type of the feature information corresponding to each feature set, specifically including the following steps:
[0083] 1) Determine whether the variable type corresponding to the feature information in the feature set is a continuous variable; if so, execute step 2); otherwise, do not process the feature information in the feature set.
[0084] 2) Each feature information is binned to convert the corresponding feature information in the feature set into discrete variables.
[0085] In this embodiment, the binning process can be specifically understood as a process of converting a continuous value into a discrete value, that is, dividing a continuous value into several segments, and the value of each segment is regarded as a category.
[0086] Continuing with the above example, when the feature information is the vehicle brand, the variable type corresponding to the feature information can be considered as a discrete variable, and it can be used to determine the information entropy corresponding to the feature set without processing it; when the feature information is the vehicle price, since the values used to represent the vehicle price are all floating-point values, that is, its variable type is a continuous variable, the feature set corresponding to the vehicle price needs to be binned to divide it into multiple discrete values. It should be clear that the number of segments for the continuous variable during binning can be determined according to the amount of data in the feature set, without ensuring that the number of discrete values after binning is the same as the number of feature information in the feature set, so as to reduce the amount of calculation in data processing.
[0087] S204: Determine the information entropy corresponding to each feature set according to the occurrence frequency of each feature information in each processed feature set, and determine each information entropy as the information entropy corresponding to the data sequence to be displayed.
[0088] Specifically, since the feature information for the same feature type in different data to be displayed may be the same, the frequency of occurrence of the same feature information in the corresponding feature set can be determined from each processed feature set, and then the frequency of occurrence of each feature information in the feature set is substituted into the information entropy formula to obtain the information entropy corresponding to the feature type, and the information entropy corresponding to each feature type is collectively used as the information entropy corresponding to the data sequence to be displayed.
[0089] Furthermore, the information entropy formula can be specifically expressed by the following formula:
[0090]
[0091] Among them, H(x) is the information entropy corresponding to the feature information of feature type x, n is the number of types of feature information contained in the feature set of feature type x, and p i (x) is the probability of occurrence of the i-th feature information in the feature set.
[0092] Continuing with the above example, if the feature type x is the vehicle brand, then the probability p1(x) of the first feature information in the feature set, that is, "Audi", is 0.4, and the probability p2(x) of the second feature information in the feature set, that is, "Volkswagen", is 0.6. Therefore, the information entropy corresponding to the feature information whose feature type is the vehicle brand is
[0093] S205: sort the feature information of each piece of data to be displayed by importance, and determine the feature information with the highest importance as the target feature information.
[0094] Specifically, the importance of each feature information corresponding to the data to be displayed is determined based on the historical display data, and each feature information is sorted from high to low or from low to high according to the importance. The feature information with the highest importance can be considered as the feature information that has the greatest impact on the sorting of the display data. Based on this, the feature information with the highest importance is determined as the target feature information to divide the data to be displayed according to it.
[0095] S206 , dividing each to-be-displayed data according to the target characteristic information, and forming a target data set from the to-be-displayed data having the same target characteristic information.
[0096] Specifically, since the target characteristic information is characteristic information possessed by each data to be displayed, and the target characteristic information has the greatest influence on the order of the data to be displayed in the sequence of data to be displayed, the data to be displayed having the same target characteristic information can be divided into a group, and each group of data to be displayed constitutes a target data set, and the data to be displayed belonging to the same target data set can be considered to be similar data.
[0097] S207: Renumber the data to be displayed in each target data set.
[0098] Specifically, multiple data to be displayed in each target data set are numbered consecutively from 0 to n with an interval of 1, so as to determine whether they are arranged consecutively in the sequence of data to be displayed according to the new number and the number of each data to be displayed in the sequence of data to be displayed, thereby affecting the diversity of the sequence of data to be displayed.
[0099] For example, assuming that the sequence of data to be displayed contains 10 data to be displayed, the numbers of the data to be displayed can be numbers from 1 to 10 with an interval of 1. If the target data set contains three data to be displayed with numbers 2, 4 and 8 in the sequence of data to be displayed, the three data to be displayed are renumbered, and the new numbers of the three data to be displayed can be continuous numbers from 0 to 2 with an interval of 1, and the new number set can be expressed as [0, 1, 2].
[0100] Furthermore, if the target data set contains only one data to be displayed, its arrangement in the data sequence to be displayed will not affect the diversity of the data sequence to be displayed, and does not need to be considered when determining the position information error of the data sequence to be displayed, so the target data set can be directly deleted.
[0101] S208: Determine the position information error corresponding to the sequence of data to be displayed according to the serial number of each data to be displayed in each target data set and the new serial number of each data to be displayed after renumbering.
[0102] Specifically, for a target data set, the difference between the serial number of the data to be displayed at the same position and the new serial number is determined, and the difference values of the data to be displayed are summed up to determine the position information error of the target data set, and then the position information errors of all target data sets in the data sequence to be displayed are summed up and averaged as the position information error corresponding to the data sequence to be displayed.
[0103] Further, Figure 3 The flowchart of the second embodiment of the present invention is a flowchart of determining the position information error corresponding to the sequence of data to be displayed according to the number of each data to be displayed in each target data set and the new number of each data to be displayed after renumbering, as shown in FIG. Figure 3 As shown, the specific steps include:
[0104] S2081. Determine the actual position index table corresponding to each target data set according to the serial number of each to-be-displayed data in each target data set.
[0105] Specifically, the position of each data to be displayed in the target data set in the sequence of data to be displayed is determined as its actual position, that is, the number of each data to be displayed in the sequence of data to be displayed is used as the index of its appearance in the sequence of data to be displayed, and the indexes corresponding to the numbers of all data to be displayed in a target data set are listed in sequence to form an actual position index table corresponding to the target data set.
[0106] Continuing with the above example, if the data to be displayed included in the target data set are numbered 2, 4, and 8 in the sequence of data to be displayed, the actual position index table corresponding to the target data set can be expressed as [2 48].
[0107] S2082: Determine a reference position index table corresponding to each target data set according to the new numbers of each to-be-displayed data after renumbering.
[0108] Specifically, each data to be displayed in the target data set is renumbered to construct a new data sequence, and the position in the new data sequence is determined as its reference position, and the number of each data to be displayed in the new data sequence is determined as the index at which it appears in the new data sequence. The indexes corresponding to the new numbers of all data to be displayed in a target data set are listed in sequence to form a reference position index table corresponding to the target data set.
[0109] Continuing with the above example, for the data to be displayed that are numbered 2, 4 and 8 respectively, they are renumbered so that the interval between the new numbers of the data to be displayed is 1, then the reference position index table corresponding to the target data set can be expressed as [0 1 2].
[0110] S2083. Determine the linear error between the actual position index table and the reference position index table corresponding to the same target data set.
[0111] For example, suppose there are m data to be displayed in a target data set, ap j Indicates the number of the jth data in the target data set in the reference position index table, ap j,0 Indicates the number of the first element in the benchmark position index table of the target dataset, benchmark j Indicates the number of the jth data in the target data set in the actual position index table. Assuming that the data sequence to be displayed is divided into n target data sets, through pl i represents the linear error of the i-th target data set in the data sequence to be displayed, then the linear error determination formula can be expressed by the following formula:
[0112]
[0113] S2084. Determine the position information error corresponding to the data sequence to be displayed according to the average value of each linear error.
[0114] Continuing with the above example, assuming that the position information error of the data sequence to be displayed can be represented by PS-loss, the PS-loss can be determined according to the average value of the linear errors of the n target data sets in the data sequence to be displayed. The specific determination method is shown in the following formula:
[0115]
[0116] It should be clarified that there is no order of precedence between the information entropy determination performed in steps S202-S204 and the position information error determination performed in steps S205-S208. They can be performed simultaneously or in different orders. The embodiment of the present invention only takes the order of S202-S208 as an example and does not limit the specific implementation order.
[0117] S209, determining whether each information entropy and position information error satisfies a preset diversity display condition, if so, executing step S210, if not, executing step S211.
[0118] Specifically, by comparing each information entropy and position information error with the preset diversity display conditions in turn, if all information entropies and position information errors meet the preset diversity display conditions, it is considered that the data sequence to be displayed meets the diversity requirements of the display, and step S210 is executed at this time; otherwise, it can be considered that there is homogeneous data aggregation in the data sequence to be displayed, and if it is directly displayed, it will cause aesthetic fatigue and a decrease in freshness for users who receive the data sequence to be displayed, and step S211 is executed at this time.
[0119] Further, Figure 4 This is an example diagram of a process for determining a preset diversity display condition provided in the second embodiment of the present invention, such as Figure 4 As shown, the specific steps include:
[0120] S301: randomly extracting a preset number of groups of sample data sequences from the full database containing the data to be displayed.
[0121] The number of sample data in each sample data sequence is the same as the number of data to be displayed in the to-be-displayed data sequence.
[0122] In this embodiment, the full database can be specifically understood as a database including all the data to be displayed, that is, all the data to be displayed in the sequence of data to be displayed are extracted from the full database.
[0123] Specifically, a preset number of data sequences are extracted from the full database, and the above multiple data sequences are determined as sample data sequences, that is, the situation of the data sequence to be displayed that may appear can be simulated by randomly extracting the sample data sequence, so as to estimate the probability and position information of the occurrence of discrete values in each feature information in the data sequence to be displayed according to the features and numbers corresponding to each sample data in each sample data sequence, thereby completing the determination of the preset diversity display conditions. Furthermore, the preset number can be predetermined according to the actual data volume and other influencing factors, and the embodiment of the present invention does not limit this.
[0124] S302: Determine the information entropy corresponding to each feature information in each sample data sequence, and the position information error corresponding to each sample data sequence.
[0125] Specifically, the information entropy corresponding to each feature information in each sample data sequence and the position information error corresponding to each sample data sequence are determined by the method for determining the information entropy and the position information error in steps S203-S208.
[0126] S303: average the information entropies corresponding to the same feature information to determine the average feature information entropy corresponding to each feature information.
[0127] Specifically, since the sample data in the entire database all have different types of feature information, the information entropies corresponding to multiple identical feature information can be extracted from the information entropies corresponding to different feature information determined according to different groups of sample data sequences, and then the average value of each information entropy can be determined as the average feature information entropy corresponding to the feature information.
[0128] S304: average the position information errors to determine an average position information error.
[0129] Specifically, since the corresponding position information error of each group of sample data sequences can be determined, the position information error of each sample data sequence can be understood as a quantitative value of the impact of the order of the sample data in the sample data sequence on the display diversity. Therefore, the position information errors of multiple groups of sample data sequences can be averaged to determine the position information error that should be present when diversity is not considered.
[0130] S305: Determine a value greater than the average feature information entropy and the average position information error as a preset diversity display condition.
[0131] Specifically, the diversity display condition can be understood as the minimum condition for displaying diversity, and the determined average position information error and average feature information entropy can be understood as the information entropy that each feature information should correspond to when displaying without considering diversity, and the position information error corresponding to each sample data arrangement, so it can be determined as the preset diversity display condition that is greater than each average feature information entropy and average position information error. Further, that is, if the data sequence to be displayed can be displayed directly, it is required that the information entropy corresponding to each feature information is greater than the corresponding average feature information entropy, and its position information error is greater than the average position information error.
[0132] S210: Display the data sequence to be displayed.
[0133] S211. Generate an early warning prompt and issue an early warning.
[0134] Specifically, the reason why diversity is not satisfied can be determined based on the part of the data sequence to be displayed that does not satisfy the preset diversity display conditions. That is, if the information entropy corresponding to a certain feature information is less than the average feature information entropy in the preset diversity display conditions, it can be considered that there is a problem with the display concentration of the feature information in the data sequence to be displayed, which affects the diversity of the data sequence to be displayed. At this time, a corresponding early warning prompt is generated and an early warning is issued to complete the adjustment of the data sequence to be displayed in a targeted manner.
[0135] The technical solution of the embodiment of the present invention is to extract multiple groups of sample data sequences from the full database containing each data to be displayed, and then determine the average feature information entropy and average position information error corresponding to each feature information according to the information entropy corresponding to each feature information in the sample data sequence and the position information error corresponding to each sample data sequence, and then construct a preset diversity display condition. According to the feature information of the same feature type in the data to be displayed, the corresponding feature set is determined, and the information entropy corresponding to the feature information is determined according to the frequency of occurrence of each feature information in the feature set. At the same time, the feature information of each data to be displayed is sorted by importance, and the feature information with the highest importance is determined as the target feature information, and then the data to be displayed is divided according to the target feature information and the target data set obtained after the division is renumbered, so as to determine the position information error corresponding to the data sequence to be displayed according to the new number of the data to be displayed in each target data set and the corresponding position information error. By presetting diversity display conditions, multiple information entropies and position information errors of the data sequence to be displayed are judged to determine whether the data sequence to be displayed meets the diversity requirements for external display. If the requirements are not met, the type of requirements that are not met is accurately located, and corresponding warning conditions are generated for warning. This allows the data sequence to be displayed to be tested for diversity before being displayed to users, thereby improving the accuracy and stability of data display. When the diversity is not met, a warning is issued to the data sequence to be displayed in a timely manner, ensuring the timeliness of problem discovery and reducing the time cost of repair.
[0136] Embodiment 3
[0137] Figure 5 This is a structural diagram of a data display device provided in Embodiment 3 of the present invention. The data display device includes: a data sequence acquisition module 41, an error determination module 42 and a data display module 43.
[0138] Among them, the data sequence acquisition module 41 is used to obtain the data sequence to be displayed, and the data sequence to be displayed includes at least three data to be displayed; the error determination module 42 is used to determine at least one information entropy corresponding to the data sequence to be displayed and the position information error corresponding to the data sequence to be displayed according to the number and characteristic information of each data to be displayed; the data display module 43 is used to display the data sequence to be displayed if each information entropy and position information error meets the preset diversity display condition.
[0139] The technical solution of the embodiment of the present invention, after obtaining the data sequence to be displayed, determines the information entropy corresponding to each feature information of each data to be displayed, and the position information error determined according to the number of each data to be displayed, so as to determine the diversity of the features therein according to the information entropy, and determine the diversity of the arrangement of the data to be displayed in the data sequence to be displayed according to the position information error. When each information entropy and the position information error meet the preset diversity display conditions, the data sequence to be displayed is displayed, which solves the problem that the existing recommendation system cannot pre-judge the diversity of the displayed data sequence before displaying the data sequence. At the same time, when judging the display diversity of the data sequence, the influence of the data arrangement in the data sequence on the display diversity is taken into account, thereby ensuring the diversity of the displayed data sequence, improving the accuracy and stability of the data display, and ensuring the timeliness of problem discovery when the diversity is not met.
[0140] Optionally, the data to be displayed includes at least one kind of characteristic information, and the error determination module 42 includes:
[0141] The information entropy determination unit is used to generate a feature set corresponding to the feature type based on feature information of the same feature type extracted from each data to be displayed; pre-process each feature set according to the variable type of the feature information corresponding to each feature set; determine the information entropy corresponding to each feature set according to the frequency of occurrence of each feature information in each processed feature set, and determine each information entropy as the information entropy corresponding to the data sequence to be displayed.
[0142] The information error determination unit is used to sort the feature information of each data to be displayed according to the importance, and determine the feature information with the highest importance as the target feature information; divide the data to be displayed according to the target feature information, and form the data to be displayed with the same target feature information into a target data set; renumber the data to be displayed in each target data set; and determine the position information error corresponding to the data sequence to be displayed according to the number of each data to be displayed in each target data set and the new number of each data to be displayed after renumbering.
[0143] Furthermore, each feature set is preprocessed according to the variable type of the feature information corresponding to each feature set, including:
[0144] If the variable type of the corresponding feature information in the feature set is a continuous variable, each feature information is binned to convert the corresponding feature information in the feature set into a discrete variable.
[0145] Further, determining the position information error corresponding to the sequence of data to be displayed according to the number of each data to be displayed in each target data set and the new number of each data to be displayed after renumbering, includes:
[0146] According to the serial number of each data to be displayed in each target data set, determine the actual position index table corresponding to each target data set;
[0147] Determine the reference position index table corresponding to each target data set according to the new number of each data to be displayed after renumbering;
[0148] Determine the linear error between the actual position index table and the reference position index table corresponding to the same target data set;
[0149] The position information error corresponding to the data sequence to be displayed is determined according to the average value of each linear error.
[0150] Furthermore, the data display device further includes:
[0151] The early warning module is used to generate an early warning prompt and issue an early warning if the information entropy or position information error does not meet the preset diversity display conditions.
[0152] A condition determination module is used to randomly extract a preset number of groups of sample data sequences from the full database containing each data to be displayed; determine the information entropy corresponding to each feature information in each sample data sequence, and the position information error corresponding to each sample data sequence; average the information entropies corresponding to the same feature information to determine the average feature information entropy corresponding to each feature information; average the position information errors to determine the average position information error; determine the value greater than the average feature information entropy and the average position information error as a preset diversity display condition; wherein the number of sample data in each sample data sequence is the same as the number of data to be displayed in the data sequence to be displayed.
[0153] The data display device provided in the embodiment of the present invention can execute the data display method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0154] Embodiment 4
[0155] Figure 6 This is a structural diagram of a data display device provided in Embodiment 4 of the present invention. The data display device includes: a processor 50, a storage device 51, a display screen 52, an input device 53, and an output device 54. The number of processors 50 in the data display device can be one or more. Figure 6 A processor 50 is taken as an example. The number of the storage device 51 in the data display device can be one or more. Figure 6 A storage device 51 is taken as an example. The processor 50, storage device 51, display screen 52, input device 53 and output device 54 of the data display device can be connected by a bus or other means. Figure 6In the embodiment, the data display device can be a computer, a notebook or a smart tablet.
[0156] The storage device 51, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the data display device described in any embodiment of the present application (for example, data sequence acquisition module 41, error determination module 42 and data display module 43). The storage device 51 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; the data storage area may store data created according to the use of the device, etc. In addition, the storage device 51 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 51 may further include a memory remotely arranged relative to the processor 50, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0157] The display screen 52 may be a display screen 52 with a touch function, which may be a capacitive screen, an electromagnetic screen or an infrared screen. Generally speaking, the display screen 52 is used to display data according to the instructions of the processor 50, and is also used to receive a touch operation acting on the display screen 52 and send a corresponding signal to the processor 50 or other devices.
[0158] The input device 53 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the display device. It can also be a camera for acquiring images and a sound pickup device for acquiring audio data. The output device 54 can include audio devices such as speakers. It should be noted that the specific composition of the input device 53 and the output device 54 can be set according to actual conditions.
[0159] The processor 50 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the storage device 51, that is, realizes the above-mentioned data display method.
[0160] The computer device provided above can be used to execute the data display method provided in any of the above embodiments, and has corresponding functions and beneficial effects.
[0161] Embodiment 5
[0162] Embodiment 5 of the present invention further provides a storage medium including computer executable instructions, wherein the computer executable instructions are used to execute a data display method when executed by a computer processor, the method comprising:
[0163] Acquire a sequence of data to be displayed, where the sequence of data to be displayed includes at least three data to be displayed;
[0164] Determine at least one information entropy corresponding to the data sequence to be displayed and a position information error corresponding to the data sequence to be displayed according to the serial number and characteristic information of each data to be displayed;
[0165] If each information entropy and position information error meets the preset diversity display conditions, the data sequence to be displayed is displayed.
[0166] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention, whose computer executable instructions are not limited to the method operations described above, can also execute related operations in the data display method provided by any embodiment of the present invention.
[0167] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0168] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0169] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A data display method, characterized in that: include: Acquire a sequence of data to be displayed, wherein the sequence of data to be displayed includes at least three data to be displayed; Determine, according to the serial number and characteristic information of each of the data to be displayed, at least one information entropy corresponding to the data sequence to be displayed, and a position information error corresponding to the data sequence to be displayed; If each of the information entropy and the position information error satisfies a preset diversity display condition, then displaying the data sequence to be displayed; The step of determining the position information error corresponding to the sequence of data to be displayed according to the serial number and characteristic information of each data to be displayed includes: Sorting the importance of the feature information of each piece of data to be displayed, and determining the feature information with the highest importance as the target feature information; Dividing the data to be displayed according to the target characteristic information, and forming a target data set from the data to be displayed having the same target characteristic information; Renumbering the data to be displayed in each of the target data sets; The position information error corresponding to the sequence of data to be displayed is determined according to the serial number of each data to be displayed in each target data set and the new serial number of each data to be displayed after renumbering.
2. The method according to claim 1, characterized in that: The data to be displayed includes at least one kind of characteristic information, and determining at least one information entropy corresponding to the sequence of data to be displayed according to the serial number and the characteristic information of each data to be displayed includes: Generating a feature set corresponding to the feature type according to feature information of the same feature type extracted from each of the data to be displayed; Preprocessing each of the feature sets according to the variable type of the feature information corresponding to each of the feature sets; According to the occurrence frequency of each feature information in each processed feature set, the information entropy corresponding to each feature set is determined, and each information entropy is determined as the information entropy corresponding to the data sequence to be displayed.
3. The method according to claim 2, characterized in that The preprocessing of each feature set according to the variable type of feature information corresponding to each feature set includes: If the variable type of the corresponding feature information in the feature set is a continuous variable, each feature information is binned to convert the corresponding feature information in the feature set into a discrete variable.
4. The method according to claim 1, characterized in that: The determining the position information error corresponding to the sequence of data to be displayed according to the serial number of each data to be displayed in each target data set and the new serial number of each data to be displayed after renumbering, comprises: Determine the actual position index table corresponding to each target data set according to the serial number of each to-be-displayed data in each target data set; Determine a reference position index table corresponding to each target data set according to the new number of each to-be-displayed data after renumbering; Determine the linear error between the actual position index table and the reference position index table corresponding to the same target data set; The position information error corresponding to the to-be-displayed data sequence is determined according to the average value of each of the linear errors.
5. The method according to claim 1, characterized in that After determining at least one information entropy corresponding to the data sequence to be displayed and a position information error corresponding to the data sequence to be displayed according to the serial number and feature information of each of the data to be displayed, the method further includes: If the information entropy or the position information error does not meet the preset diversity display condition, a warning prompt is generated and a warning is issued.
6. The method according to any one of claims 1 to 5, characterized in that: The determination of the preset diversity display conditions includes: Randomly extracting a preset number of groups of sample data sequences from the full database containing the data to be displayed; Determine the information entropy corresponding to each feature information in each of the sample data sequences, and the position information error corresponding to each of the sample data sequences; The information entropy corresponding to the same feature information is averaged to determine the average feature information entropy corresponding to each feature information; averaging the position information errors to determine an average position information error; Determining a value greater than the average feature information entropy and the average position information error as a preset diversity display condition; The number of sample data in each of the sample data sequences is the same as the number of data to be displayed in the to-be-displayed data sequence.
7. A data display device, characterized in that: include: A data sequence acquisition module, used to acquire a data sequence to be displayed, wherein the data sequence to be displayed includes at least three data to be displayed; an error determination module, configured to determine at least one information entropy corresponding to the data sequence to be displayed and a position information error corresponding to the data sequence to be displayed according to the serial number and characteristic information of each of the data to be displayed; A data display module, configured to display the data sequence to be displayed if each of the information entropy and the position information error satisfies a preset diversity display condition; The error determination module includes an information error determination unit, which is used to sort the feature information of each data to be displayed by importance, and determine the feature information with the highest importance as the target feature information; Divide the data to be displayed according to the target feature information, and form a target data set with the same target feature information; Renumber the data to be displayed in each target data set; The position information error corresponding to the sequence of data to be displayed is determined according to the serial number of each data to be displayed in each target data set and the new serial number of each data to be displayed after renumbering.
8. A data display device, characterized in that: The data display device includes: a storage device and one or more processors; The storage device is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the data presentation method according to any one of claims 1 to 6.
9. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the data presentation method according to any one of claims 1 to 6.
