A data screening method, device, equipment and medium
By determining the data screening intervals based on the number and weight of the initial screening intervals, and using standardized processing and probability distribution functions, the problem of inaccurate data screening in the existing technology is solved, and more accurate and consistent data screening results are achieved.
Patent Information
- Application Number
- CN202210990092.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-18
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-08-18
AI Technical Summary
The existing technology is based on fuzzy mathematical theory in data screening. It is difficult to obtain an accurate probability distribution type when the sample size is small, and sample statistical information is not fully utilized, resulting in inaccurate screening results.
By obtaining sample information, determine the upper limit and lower limit of each initial screening interval based on the number and weight of the initial screening interval, use standardization processing and probability distribution functions to determine the initial screening interval, and then determine the designated information value and target screening domain , to achieve accurate screening of sample information.
It improves the accuracy and consistency of data screening, meets the needs of users, and ensures the accuracy and generality of screening results.
Smart Images

Figure CN115329280B_ABST
Abstract
Description
Background Art
[0002] At present, the research on data screening in related technologies is basically based on fuzzy mathematics theory, and the membership function is subjectively preset and fine-tuned based on experience. However, this method is difficult to obtain the probability distribution type that truly conforms to the variable when the sample size is small. And the sample statistical information is not fully utilized. For data screening, most of them set the same weight for all screening ranges, making the data screening results not general, resulting in inaccurate data screening results. Summary of the invention
[0003] The embodiments of the present application provide a data screening method, device, equipment and medium for improving the accuracy of data screening.
[0004] In a first aspect, the present application provides a data screening method, the method comprising:
[0005] Acquire sample information, wherein the sample information is an attribute value of an object associated with the user, and the attribute value obeys a normal distribution;
[0006] Determining an upper limit value and a lower limit value of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening intervals; wherein the number of the initial screening intervals is set according to the sample information; wherein the weight is set according to the sample information;
[0007] For any initial screening interval, determining a designated information value of the any initial screening interval according to the upper limit value, the lower limit value and the weight of the any initial screening interval; the designated information value represents sample information with the largest attribute value in the any initial screening interval;
[0008] Determine the target screening domain corresponding to any one of the initial screening intervals according to the specified information value;
[0009] The sample information is screened according to the target screening domain to obtain target information.
[0010] In this application, the user sets the number of initial screening intervals and the weight of each initial screening interval based on the sample information. The target screening domain can be ultimately determined based on the weight set by the user, and the sample information can be screened based on the target screening domain, thereby meeting the user's needs and improving the accuracy of data screening.
[0011] In some possible embodiments, determining the upper limit value and the lower limit value of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening intervals includes:
[0012] Based on the number of the initial screening intervals and the weights of the initial screening intervals, the initial screening intervals are standardized to obtain an upper limit value and a lower limit value of the standardized processing;
[0013] The upper limit value and the lower limit value of the initial screening interval are obtained according to the upper limit value of the normalization processing, the lower limit value of the normalization processing, and the probability distribution function of the initial screening interval.
[0014] In the present application, the upper and lower limits of the initial screening intervals are determined according to the number of initial screening intervals and the weights of the initial screening intervals, so that the obtained initial screening intervals better meet user needs, thereby improving the accuracy of subsequent data screening.
[0015] In some possible embodiments, based on the number of the initial screening intervals and the weight of the initial screening intervals, the initial screening intervals are normalized to obtain an upper limit value and a lower limit value of the normalization processing, including:
[0016] The initial screening interval is standardized by using a standardized processing formula, wherein the standardized processing formula is:
[0017]
[0018] Among them, A S is the sth initial screening interval, is the upper limit value of the normalization process, is the lower limit value of the standardization process; ω s is the weight of the sth initial screening interval; f(x) is the probability density function of the sth initial screening interval; D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval.
[0019] In some possible embodiments, obtaining the upper limit value and the lower limit value of the initial screening interval according to the integral upper limit and the integral lower limit of the integral processing and the probability distribution function of the initial screening interval includes:
[0020] Substitute the integral upper limit and the integral lower limit of the integral processing into the probability distribution function to obtain the upper limit and the lower limit of the initial screening interval; wherein the probability distribution function is:
[0021]
[0022] The upper limit of the initial screening interval is obtained as: The lower limit of the initial screening interval is obtained as follows:
[0023] Among them: A S is the sth initial screening interval, max(A S ) is the upper limit of the sth initial screening interval, min(A S ) is the lower limit of the sth initial screening interval; ω i is the weight of the i-th initial screening interval; f(x) is the probability density function of the s-th initial screening interval; Φ(x) is the probability distribution function of the s-th initial screening interval; D is the standard deviation in the s-th initial screening interval, and E is the mean of the s-th initial screening interval.
[0024] In the present application, the upper limit and the lower limit of the initial screening interval are determined by a standardized processing formula and a probability distribution function, so that the obtained initial screening interval is more accurate.
[0025] In some possible embodiments, determining the specified information value of any one of the initial screening intervals according to the upper limit value, the lower limit value of any one of the initial screening intervals and the weight of any one of the initial screening intervals includes:
[0026] Determining a probability average line of any one of the initial screening intervals according to the upper limit value, the lower limit value and the weight of any one of the initial screening intervals;
[0027] Determine the number of intersections between the probability average line and the probability density function of any one of the initial screening intervals;
[0028] The designated information value of any one of the initial screening intervals is determined according to the number of intersections.
[0029] In the present application, the designated information value is determined according to the number of intersections between the probability average line and the probability density function of the initial screening interval, so that the determined designated information value is more accurate.
[0030] In some possible embodiments, determining the designated information value of any one of the initial screening intervals according to the number of intersections includes:
[0031] If the number of intersection points is one point, determining the specified information value according to the first specified information determination formula;
[0032] If the number of intersection points is two, the specified information value is the mean of any one of the initial screening intervals;
[0033] The first specified information is determined by the formula:
[0034]
[0035] Where: max T (A S ) is the specified information value, A S is the sth initial screening interval, avg is the probability average line of the sth initial screening interval, f -1 (avg) is the inverse function of the probability average line of the sth initial screening interval, D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval.
[0036] In the present application, the designated information value is determined by the first designated information determination formula and the mean value of the initial screening interval, thereby ensuring the accuracy of the determined designated information value.
[0037] In some possible embodiments, determining the target screening domain corresponding to any one of the initial screening intervals according to the specified information value includes:
[0038] Determine a range to which the designated information value belongs based on the sample information with the smallest attribute value in the sample information, the sample information with the largest attribute value in the sample information, and the designated information value;
[0039] Determine a target screening domain formula based on the belonging range;
[0040] Substitute the specified information value into the target screening domain formula to obtain the target screening domain corresponding to any one of the initial screening intervals.
[0041] In the present application, the target screening domain corresponding to the initial screening interval is determined based on the range to which the specified information value belongs, thereby ensuring the accuracy of the target screening domain.
[0042] In a second aspect, the present application provides a data screening device, the device comprising:
[0043] An acquisition module, used to acquire sample information, wherein the sample information is an attribute value of an object associated with a user, and the attribute value obeys a normal distribution;
[0044] An initial screening interval determination module, used to determine the upper limit value and the lower limit value of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening intervals; wherein the number of the initial screening intervals is set according to the sample information; wherein the weight is set according to the sample information;
[0045] a designated information value determination module, configured to determine, for any initial screening interval, a designated information value of the any initial screening interval according to the upper limit value, the lower limit value and the weight of the any initial screening interval; the designated information value represents sample information with the largest attribute value in the any initial screening interval;
[0046] A target screening domain determination module, configured to determine a target screening domain corresponding to any one of the initial screening intervals according to the specified information value;
[0047] The target information determination module is used to filter the sample information according to the target screening domain to obtain target information.
[0048] In some possible embodiments, when the initial screening interval determination module determines the upper limit value and the lower limit value of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening intervals, it is configured as follows:
[0049] Based on the number of the initial screening intervals and the weights of the initial screening intervals, the initial screening intervals are standardized to obtain an upper limit value and a lower limit value of the standardized processing;
[0050] The upper limit value and the lower limit value of the initial screening interval are obtained according to the upper limit value of the normalization processing, the lower limit value of the normalization processing, and the probability distribution function of the initial screening interval.
[0051] In some possible embodiments, when the initial screening interval determination module performs a normalization process on the initial screening interval based on the number of the initial screening intervals and the weight of the initial screening intervals to obtain an upper limit value and a lower limit value of the normalization process, the module is configured as follows:
[0052] The initial screening interval is standardized by using a standardized processing formula, wherein the standardized processing formula is:
[0053]
[0054] Among them, A S is the sth initial screening interval, is the upper limit value of the normalization process, is the lower limit value of the standardization process; ω s is the weight of the sth initial screening interval; f(x) is the probability density function of the sth initial screening interval; D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval.
[0055] In some possible embodiments, when the designated information value determination module determines the designated information value of any one of the initial screening intervals according to the upper limit value, the lower limit value and the weight of any one of the initial screening intervals, the designated information value of any one of the initial screening intervals is configured as follows:
[0056] Determining a probability average line of any one of the initial screening intervals according to the upper limit value, the lower limit value and the weight of any one of the initial screening intervals;
[0057] Determine the number of intersections between the probability average line and the probability density function of any one of the initial screening intervals;
[0058] The designated information value of any one of the initial screening intervals is determined according to the number of intersections.
[0059] In some possible embodiments, when the designated information value determination module determines the designated information value of any one of the initial screening intervals according to the number of intersections, it is configured as follows:
[0060] If the number of intersection points is one point, determining the specified information value according to the first specified information determination formula;
[0061] If the number of intersection points is two, the specified information value is the mean of any one of the initial screening intervals;
[0062] The first specified information is determined by the formula:
[0063]
[0064] Where: max T (A S ) is the specified information value, A S is the sth initial screening interval, avg is the probability average line of the sth initial screening interval, f -1 (avg) is the inverse function of the probability average line of the sth initial screening interval, D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval.
[0065] In some possible embodiments, when the target screening domain determination module determines the target screening domain corresponding to any one of the initial screening intervals according to the specified information value, it is configured as follows:
[0066] Determine a range to which the designated information value belongs based on the sample information with the smallest attribute value in the sample information, the sample information with the largest attribute value in the sample information, and the designated information value;
[0067] Determine a target screening domain formula based on the belonging range;
[0068] Substitute the specified information value into the target screening domain formula to obtain the target screening domain corresponding to any one of the initial screening intervals.
[0069] In a third aspect, the present application provides an electronic device, including:
[0070] A memory for storing program instructions;
[0071] The processor is used to call the program instructions stored in the memory, and execute the steps included in any one of the methods in the first aspect according to the obtained program instructions.
[0072] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes any one of the methods described in the first aspect.
[0073] In a fifth aspect, the present application provides a computer program product, comprising: a computer program code, when the computer program code is run on a computer, the computer executes any one of the methods described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 A schematic diagram of an application scenario of a data screening method provided in an embodiment of the present application;
[0075] Figure 2 A schematic diagram of a data screening process provided in an embodiment of the present application;
[0076] Figure 3 A schematic diagram of a flow chart of determining an initial screening interval in a data screening method provided in an embodiment of the present application;
[0077] Figure 4 A schematic diagram of a flow chart of determining a specified information value of a data screening method provided in an embodiment of the present application;
[0078] Figure 5 A schematic diagram of a process for determining a target screening domain in a data screening method provided in an embodiment of the present application;
[0079] Figure 6 A schematic diagram of a device for a data screening method provided in an embodiment of the present application;
[0080] Figure 7 A schematic diagram of an electronic device for a data screening method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0081] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0082] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
[0083] In the technical solution of this application, the collection, dissemination, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0084] Before introducing a data screening method provided in an embodiment of the present application, for ease of understanding, the following professional terms of the embodiment of the present application are first explained:
[0085] 1. Fuzzy sets and membership functions
[0086] A fuzzy subset A on the domain U is: All have μ A (x)∈[0,1] corresponds to it, where μ A (x) is called the membership function of the fuzzy subset A, or the membership degree of x to the fuzzy subset A.
[0087] By mapping:
[0088]
[0089] Determine a fuzzy subset A of the universe U.
[0090] The membership function is a quantitative description of fuzzy concepts. Correctly determining the membership function is the basis for using fuzzy set theory to solve practical problems. Typical fuzzy distributions include step type, exponential type, normal type, linear type, power function type, sine type, etc.
[0091] 2. Alpha cut
[0092] The membership function μ corresponding to all elements x in the domain U A A set whose values of (x) are not less than α is called the α-cut set of the fuzzy set A.
[0093] Among them, α is the confidence level (threshold). A fuzzy set can be converted into a normal set using the α cutoff.
[0094] 3. Normal Distribution
[0095] If the random variable X has expectation μ and variance σ 2 The normal distribution is denoted as X~N(μ,σ 2 ), then its probability density function is expressed as:
[0096] After introducing the professional terms, for ease of understanding, the following background technology of the embodiments of the present application is explained:
[0097] The inventor has found that the current research on data screening in the relevant technology is basically based on fuzzy mathematics theory, and the membership function is subjectively preset and fine-tuned based on experience. On the one hand, this method is too subjective and arbitrary, and the accuracy is very poor. Especially when the sample size is small, it is difficult to obtain a probability distribution type that truly conforms to the variable. On the other hand, the sample statistical information is not fully utilized. For data screening, the most fundamental membership function selection problem in the relevant technology, there are studies on the automatic matching method of membership function based on the normal distribution probability density function. This method makes full use of sample information, thereby obtaining a more reasonable membership function. However, this method assumes that the probabilities of different fuzzy intervals are equal, which is equivalent to studying a very special situation, and the research on the maximum point of the membership function is not general. Therefore, the screening results of the data are not general, resulting in inaccurate screening results of the obtained data.
[0098] In view of this, the present application proposes a data screening method, device, electronic device and storage medium for solving the above problems. The inventive concept of the present application can be summarized as follows: obtaining sample information, wherein the sample information is the attribute value of an object associated with a user, and the attribute value obeys a normal distribution; determining the upper limit value and the lower limit value of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening interval; wherein the number of initial screening intervals is set according to the sample information; wherein the weight is set according to the sample information; for any initial screening interval, determining the specified information value of any initial screening interval according to the upper limit value, the lower limit value and the weight of any initial screening interval; the specified information value represents the sample information with the largest attribute value in any initial screening interval; determining the target screening domain corresponding to any initial screening interval according to the specified information value; screening the sample information according to the target screening domain to obtain the target information.
[0099] For ease of understanding, a data screening method provided by an embodiment of the present application is described in detail below with reference to the accompanying drawings:
[0100] like Figure 1 The figure shows an application scenario diagram of a data screening method in an embodiment of the present application. The figure includes: a server 10, a storage device 20, and a terminal device 30; wherein:
[0101] The server 10 first obtains sample information from the memory 20, wherein the sample information is the attribute value of the object associated with the user, and the attribute value obeys a normal distribution; the server 10 determines the upper limit and lower limit of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening interval; wherein the number of initial screening intervals is set by the user in the terminal device 30 according to the sample information; wherein the weight is set according to the sample information; for any initial screening interval, according to the upper limit and lower limit of any initial screening interval and the weight of any initial screening interval, determine the specified information value of any initial screening interval; the specified information value represents the sample information with the largest attribute value in any initial screening interval; determine the target screening domain corresponding to any initial screening interval according to the specified information value; filter the sample information according to the target screening domain to obtain the target information.
[0102] The description in this application only details a single server, storage, and terminal device, but those skilled in the art should understand that the servers, storages, and terminal devices shown are intended to represent the operations of the servers, storages, and terminal devices involved in the technical solution of this application, and do not imply any restrictions on the number, type, or location of servers, storages, and terminal devices. It should be noted that if additional modules are added to the illustrated environment or individual modules are removed from it, the underlying concepts of the example embodiments of this application will not be changed.
[0103] It should be noted that the memory in the embodiment of the present application may be, for example, a cache system, a hard disk storage, a memory storage, etc. In addition, the data screening method proposed in the present application is not only applicable to Figure 1 The application scenario shown is also applicable to any device with data screening requirements.
[0104] like Figure 2 FIG. 1 is a schematic diagram of the overall process of a data screening method provided in an embodiment of the present application, wherein:
[0105] In step 201: obtaining sample information, wherein the sample information is the attribute value of an object associated with the user, and the attribute value obeys a normal distribution;
[0106] In step 202: determining the upper limit and lower limit of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening intervals; wherein the number of initial screening intervals is set according to the sample information; wherein the weight is set according to the sample information;
[0107] In step 203: for any initial screening interval, according to the upper limit value, the lower limit value and the weight of any initial screening interval, the designated information value of any initial screening interval is determined; the designated information value represents the sample information with the largest attribute value in any initial screening interval;
[0108] In step 204: determining a target screening domain corresponding to any initial screening interval according to the specified information value;
[0109] In step 205: the sample information is screened according to the target screening domain to obtain the target information.
[0110] In this application, the user sets the number of initial screening intervals and the weight of each initial screening interval based on the sample information. The target screening domain can be ultimately determined based on the weight set by the user, and the sample information can be screened based on the target screening domain, thereby meeting the user's needs and improving the accuracy of data screening.
[0111] For ease of understanding, the following Figure 2 The steps are described in detail:
[0112] In the embodiments of the present application, the sample information is the attribute value of the object associated with the user, and the attribute value obeys the normal distribution. For example: the height of all students in a class, the income of all employees in a company, etc. The present application does not limit the specific types of sample information, and data that conforms to the normal distribution can be used as sample information in the present application.
[0113] In some embodiments, when determining the upper limit and lower limit of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening intervals, it can be implemented as follows: Figure 3 Steps shown:
[0114] In step 301: based on the number of initial screening intervals and the weights of the initial screening intervals, the initial screening intervals are standardized to obtain an upper limit value and a lower limit value of the standardized processing;
[0115] In this application, the normalization processing formula is shown in Formula 1:
[0116]
[0117] Among them: A S is the sth initial screening interval, is the upper limit of the normalization process, is the lower limit of the standardization process; ω s is the weight of the sth initial screening interval; f(x) is the probability density function of the sth initial screening interval; D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval.
[0118] For example, the sample information is the height of students in a class. The user determines to divide the sample information of student height into five initial screening intervals according to the needs, namely, below 140 cm, 140 cm-150 cm, 150 cm-160 cm, 160 cm-170 cm, and above 170 cm; and determines the weights corresponding to each initial screening interval as: ω1, ω2, ω3, ω4, ω5. If the second initial screening interval is standardized, then in the above formula 1, A S A2,ω s is ω2, D is the standard deviation in the second initial screening interval, and E is the mean of the second initial screening interval.
[0119] In step 302: the upper limit value and the lower limit value of the initial screening interval are obtained according to the upper limit value of the normalization processing, the lower limit value of the normalization processing and the probability distribution function of the initial screening interval.
[0120] In this application, the probability distribution function is shown in Formula 2:
[0121]
[0122] Where: f(x) is the probability density function of the sth initial screening interval; Φ(x) is the probability distribution function of the sth initial screening interval.
[0123] Substituting the upper limit and lower limit of formula 1 into formula 2 respectively, we can get formula 3 and formula 4:
[0124]
[0125]
[0126] According to formula 3 and formula 4, formula 5 and formula 6 can be obtained respectively:
[0127]
[0128]
[0129] In summary, the upper limit of the initial screening interval is max(A S ), the lower limit is min(A S ).
[0130] In particular, according to Formula 5 and Formula 6, it can be obtained that: when s=1, that is, when the initial screening interval is the first initial screening interval of the sample information, min(A S )=-∞;When s=x, that is, the initial screening interval is the last initial screening interval of the sample information, max(A S )=+∞;When s is equal to other values, min(A S )=max(A S -1 ).
[0131] In the present application, the upper and lower limits of the initial screening intervals are determined based on the number of initial screening intervals and the weights of the initial screening intervals, so that the obtained initial screening intervals are more in line with user needs, thereby improving the accuracy of subsequent data screening, and the upper and lower limits of the initial screening intervals are determined by standardized processing formulas and probability distribution functions, so that the obtained initial screening intervals are more accurate.
[0132] In some possible embodiments, the specified information value of any initial screening interval is determined according to the upper limit value, the lower limit value and the weight of any initial screening interval, which can be specifically implemented as follows: Figure 4 The steps shown, where:
[0133] In step 401: determining the probability average line of any initial screening interval according to the upper limit value, the lower limit value and the weight of any initial screening interval;
[0134] In the embodiment of the present application, Formula 7 may be used to determine the probability average line of the initial screening interval:
[0135]
[0136] Where: avg(A S ) is the probability average line of the sth initial screening interval, ω s is the weight of the sth initial screening interval, max(A S ) is the upper limit of the sth initial screening interval, min(A S ) is the lower limit of the sth initial screening interval.
[0137] Continuing with the example of the height of students in a class, if the probability average line of the second initial screening interval is determined, then in the above formula 7, A S A2,ω s is ω2, max(A S ) is max(A2), min(A S ) is min(A2).
[0138] In step 402: determining the number of intersections between the probability average line and the probability density function of any initial screening interval;
[0139] In step 403: the designated information value of any initial screening interval is determined according to the number of intersection points.
[0140] According to the definition of the maximum point in the relevant technology: fuzzy interval A S The mean probability line y = avg(A S ) intersects with the normal distribution probability density function. If there is only one intersection point, the horizontal coordinate of this intersection point is A S The maximum value point of the membership function; if there are two intersection points, the interval formed by the horizontal coordinates of the two intersection points is the new fuzzy interval, and this process is repeated until there is only one intersection point, and the horizontal coordinate of this intersection point is A S The maximum point of the membership function.
[0141] It can be obtained that when there are two intersection points, the sample mean E must fall within the horizontal coordinate interval of the two intersection points, and because the sample satisfies the normal distribution, the two intersection points must be symmetrical about the x=E axis. In the initial screening interval of this application, the intersection is performed again according to the definition of the maximum point in the related art, and the new two intersection points must also be symmetrical, and the last intersection point must be the mean E. Therefore, the definition of the maximum point in the related art can be used to derive the definition of the specified information value in this application.
[0142] Specified information value definition: A of the initial screening interval S The mean probability line y = avg(A S ) intersects with the normal distribution probability density function. If there is only one intersection point, the horizontal coordinate of this intersection point is A S The specified information value of the target screening domain; if there are two intersection points, the mean of the sample information is used as A S The specified information value of the target filter field.
[0143] It can be seen that according to the above definition, the specified information value of any initial screening interval is determined according to the number of intersections, including the following two cases:
[0144] 1) If the number of intersection points is one point, the designated information value is determined according to the first designated information determination formula;
[0145] 2) If the number of intersection points is two, the specified information value is the mean of any initial screening interval;
[0146] The first specified information determination formula is shown in Formula 8:
[0147]
[0148] Where: max T (A S ) is the specified information value, A S is the sth initial screening interval, avg is the probability average line of the sth initial screening interval, f -1 (avg) is the inverse function of the probability average line of the sth initial screening interval, D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval.
[0149] For example, if we continue to use the sample information of the height of students in a class as an example, and determine the specified information value of the second initial screening interval, then in the above formula 8, A S is A2, avg is the probability average line of the second initial screening interval, f -1 (avg) is the inverse function of the probability average line of the second initial screening interval, D is the standard deviation in the second initial screening interval, and E is the mean of the second initial screening interval.
[0150] In the present application, the designated information value is determined by the first designated information determination formula and the mean value of the initial screening interval, thereby ensuring the accuracy of the determined designated information value.
[0151] In the present application, after determining the designated information value, when determining the target screening domain corresponding to any initial screening interval according to the designated information value, it can be implemented as follows: Figure 5 The steps shown, where:
[0152] In step 501: based on the sample information with the smallest attribute value in the sample information, the sample information with the largest attribute value in the sample information, and the designated information value, determine the range to which the designated information value belongs;
[0153] In step 502: determining a target filter domain formula based on the belonging range;
[0154] In step 503: the specified information value is substituted into the target screening domain formula to obtain the target screening domain corresponding to any initial screening interval.
[0155] For example, for sample information, the sample information is divided into t initial screening intervals, namely: A1, A2…A s …,A t-1 ,A t , and the specified information value corresponding to each initial screening interval is: max T (A1),max T (A2)…,max T (A s )…max T (A t-1 ),max T (A t ), the sample information with the smallest attribute value is U min The sample information with the largest attribute value is U max In this application, the sine and cosine functions are used to determine the target screening domain corresponding to the initial screening interval.
[0156] In this application, the target screening domain formula and the range corresponding to each target screening domain are shown in Formula 9:
[0157]
[0158]
[0159] Among them, A i (x) is the target screening domain of the i-th initial screening interval, x is the specified information value of the i-th initial screening interval, U min is the sample information with the smallest attribute value, U maxIt is the sample information with the largest attribute value.
[0160] According to formula 9, when i=1, formula 9 can be derived into formula 10:
[0161]
[0162] According to formula 9, when i=2, formula 9 can be derived as formula 11:
[0163]
[0164] According to formula 9, when i=t-1, formula 9 can be derived into formula 12:
[0165]
[0166]
[0167] According to formula 9, when i=t, formula 9 can be derived into formula 13:
[0168]
[0169] In summary, the target screening domain corresponding to each initial screening interval can be finally determined according to the number and weight of the initial screening intervals set by the user. Since the number and weight of the initial screening intervals are set by the user according to needs, filtering the sample information according to the obtained target screening domain can make the obtained screening results more in line with user needs.
[0170] like Figure 6 As shown, based on the same inventive concept, a data screening device 600 is proposed, the device comprising:
[0171] An acquisition module 6001 is used to acquire sample information, wherein the sample information is an attribute value of an object associated with a user, and the attribute value obeys a normal distribution;
[0172] An initial screening interval determination module 6002 is used to determine the upper limit value and the lower limit value of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening intervals; wherein the number of the initial screening intervals is set according to the sample information; wherein the weight is set according to the sample information;
[0173] The designated information value determination module 6003 is used to determine, for any initial screening interval, the designated information value of the any initial screening interval according to the upper limit value, the lower limit value and the weight of the any initial screening interval; the designated information value represents the sample information with the maximum attribute value in the any initial screening interval;
[0174] A target screening domain determining module 6004 is used to determine a target screening domain corresponding to any one of the initial screening intervals according to the specified information value;
[0175] The target information determination module 6005 is used to filter the sample information according to the target screening domain to obtain target information.
[0176] In some possible embodiments, when the initial screening interval determination module determines the upper limit value and the lower limit value of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening intervals, it is configured as follows:
[0177] Substituting the number of the initial screening intervals and the weight of the initial screening intervals into the standardization processing formula;
[0178] According to the standardized processing formula and probability distribution function, the upper limit and lower limit of the initial screening interval are obtained.
[0179] In some possible embodiments, the normalization processing formula is:
[0180]
[0181] The probability distribution function is:
[0182]
[0183] Among them: A S is the sth initial screening interval, max(A S ) is the upper limit of the sth initial screening interval, min(A S ) is the lower limit of the sth initial screening interval; ω s is the weight of the sth initial screening interval; f(x) is the probability density function of the sth initial screening interval; D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval; ω i is the weight of the i-th initial screening interval.
[0184] In some possible embodiments, when the designated information value determination module determines the designated information value of any one of the initial screening intervals according to the upper limit value, the lower limit value and the weight of any one of the initial screening intervals, the designated information value of any one of the initial screening intervals is configured as follows:
[0185] Determining a probability average line of any one of the initial screening intervals according to the upper limit value, the lower limit value and the weight of any one of the initial screening intervals;
[0186] Determine the number of intersections between the probability average line and the probability density function of any one of the initial screening intervals;
[0187] The designated information value of any one of the initial screening intervals is determined according to the number of intersections.
[0188] In some possible embodiments, when the designated information value determination module determines the designated information value of any one of the initial screening intervals according to the number of intersections, it is configured as follows:
[0189] If the number of intersection points is one point, determining the specified information value according to the first specified information determination formula;
[0190] If the number of intersection points is two, the specified information value is the mean of any one of the initial screening intervals;
[0191] The first specified information is determined by the formula:
[0192]
[0193] Where: max T (A S ) is the specified information value, A S is the sth initial screening interval, avg is the probability average line of the sth initial screening interval, f -1 (avg) is the inverse function of the probability average line of the sth initial screening interval, D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval.
[0194] In some possible embodiments, when the target screening domain determination module determines the target screening domain corresponding to any one of the initial screening intervals according to the specified information value, it is configured as follows:
[0195] Determine a range to which the designated information value belongs based on the sample information with the smallest attribute value in the sample information, the sample information with the largest attribute value in the sample information, and the designated information value;
[0196] Determine a target screening domain formula based on the belonging range;
[0197] Substitute the specified information value into the target screening domain formula to obtain the target screening domain corresponding to any one of the initial screening intervals.
[0198] After introducing the data screening method and device according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.
[0199] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0200] In some possible implementations, the electronic device according to the present application may include at least one processor and at least one memory. The memory stores program code, and when the program code is executed by the processor, the processor executes the steps of the data screening method according to various exemplary implementations of the present application described above in this specification.
[0201] Refer to the following Figure 7 The electronic device 130 according to this embodiment of the present application is described. Figure 7 The electronic device 130 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0202] like Figure 7 As shown, the electronic device 130 is in the form of a general electronic device. The components of the electronic device 130 may include but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).
[0203] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0204] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .
[0205] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0206] The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 130, and / or communicate with any device that enables the electronic device 130 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 135. Furthermore, the electronic device 130 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 136. As shown, the network adapter 136 communicates with other modules for the electronic device 130 via a bus 133. It should be understood that although Figure 7 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0207] In some possible implementations, various aspects of a data screening method provided by the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of a data screening method according to various exemplary implementations of the present application described above in this specification.
[0208] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0209] The program product for data screening of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on an electronic device. However, the program product of the present application is not limited to this. In this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0210] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0211] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0212] The program code for performing the operations of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as "C" language or similar programming languages. The program code can be executed entirely on the user electronic device, partially on the user device, as an independent software package, partially on the user electronic device and partially on the remote electronic device, or entirely on the remote electronic device or server. In the case of a remote electronic device, the remote electronic device can be connected to the user electronic device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (for example, using an Internet service provider to connect through the Internet).
[0213] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0214] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0215] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0216] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0217] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0218] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0219] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A data screening method, characterized in that: The method comprises: The server obtains sample information from the storage, wherein the sample information is an attribute value of an object associated with the user, and the attribute value obeys a normal distribution; The server receives the number of initial screening intervals from the terminal device; wherein the number of initial screening intervals is set by the user in the terminal device according to the sample information; The server determines the upper limit and the lower limit of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening interval; wherein the weight is set by the user in the terminal device according to the sample information; The server determines, for any initial screening interval, a probability average line of the any initial screening interval according to the upper limit value, the lower limit value and the weight of the any initial screening interval; determines the number of intersections of the probability average line and the probability density function of the any initial screening interval; if the number of intersections is one point, the server determines the designated information value according to the first designated information determination formula; if the number of intersections is two points, the server determines the designated information value as the mean value of the any initial screening interval; the designated information value represents the sample information with the largest attribute value in the any initial screening interval; wherein the first designated information determination formula is: max T (A S ) is the specified information value, A S is the sth initial screening interval, avg is the probability average line of the sth initial screening interval, f -1 (avg) is the inverse function of the probability average line of the sth initial screening interval, D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval; The server determines the target screening domain corresponding to any one of the initial screening intervals according to the specified information value; The server filters the sample information according to the target screening domain to obtain target information.
2. The method according to claim 1, characterized in that The server determines the upper limit value and the lower limit value of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening intervals, including: The server performs a normalization process on the initial screening interval based on the number of the initial screening intervals and the weight of the initial screening intervals to obtain an upper limit value and a lower limit value of the normalization process; The server obtains the upper limit value and the lower limit value of the initial screening interval according to the upper limit value of the normalization processing, the lower limit value of the normalization processing, and the probability distribution function of the initial screening interval.
3. The method according to claim 2, characterized in that The server performs standardization processing on the initial screening interval based on the number of the initial screening intervals and the weight of the initial screening intervals to obtain an upper limit value and a lower limit value of the standardization processing, including: The initial screening interval is standardized by using a standardized processing formula, wherein the standardized processing formula is: Among them, A S is the sth initial screening interval, is the upper limit value of the normalization process, is the lower limit value of the standardization process; ω s is the weight of the sth initial screening interval; f(x) is the probability density function of the sth initial screening interval; D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval.
4. The method according to claim 2, characterized in that: The server obtains the upper limit value and the lower limit value of the initial screening interval according to the upper limit value of the normalization processing, the lower limit value of the normalization processing, and the probability distribution function of the initial screening interval, including: The server brings the upper limit value of the normalization process and the lower limit value of the normalization process into the probability distribution function to obtain the upper limit value and the lower limit value of the initial screening interval; wherein the probability distribution function is: The upper limit of the initial screening interval is obtained as: The lower limit of the initial screening interval is obtained as: Among them: A S is the sth initial screening interval, max(A S ) is the upper limit of the sth initial screening interval, min(A S ) is the lower limit of the sth initial screening interval; ω i is the weight of the i-th initial screening interval; f(x) is the probability density function of the s-th initial screening interval; Φ(x) is the probability distribution function of the s-th initial screening interval; D is the standard deviation in the s-th initial screening interval, and E is the mean of the s-th initial screening interval.
5. The method according to claim 1, characterized in that The server determines the target screening domain corresponding to any one of the initial screening intervals according to the specified information value, including: The server determines the range to which the specified information value belongs based on the sample information with the smallest attribute value in the sample information, the sample information with the largest attribute value in the sample information, and the specified information value; The server determines a target screening domain formula based on the belonging range; The server brings the specified information value into the target screening domain formula to obtain the target screening domain corresponding to any one of the initial screening intervals.
6. A data screening device, characterized in that: The device is applied to a server, and comprises: An acquisition module is used to acquire sample information, wherein the sample information is an attribute value of an object associated with a user, and the attribute value obeys a normal distribution; and receive the number of initial screening intervals from a terminal device; wherein the number of initial screening intervals is set by the user in the terminal device according to the sample information; An initial screening interval determination module, used to determine the upper limit and lower limit of each initial screening interval of the sample information according to the number of initial screening intervals and the weight of the initial screening intervals; wherein the weight is set by the user in the terminal device according to the sample information; A designated information value determination module is used to determine, for any initial screening interval, the probability average line of the any initial screening interval according to the upper limit value, the lower limit value and the weight of the any initial screening interval; determine the number of intersections between the probability average line and the probability density function of the any initial screening interval; if the number of intersections is one point, the server determines the designated information value according to a first designated information determination formula; if the number of intersections is two points, the server determines the designated information value as the mean value of the any initial screening interval; the designated information value represents the sample information with the largest attribute value in the any initial screening interval; wherein the first designated information determination formula is: max T (A S ) is the specified information value, A S is the sth initial screening interval, avg is the probability average line of the sth initial screening interval, f -1 (avg) is the inverse function of the probability average line of the sth initial screening interval, D is the standard deviation in the sth initial screening interval, and E is the mean of the sth initial screening interval; A target screening domain determination module, configured to determine a target screening domain corresponding to any one of the initial screening intervals according to the specified information value; The target information determination module is used to filter the sample information according to the target screening domain to obtain target information.
7. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps included in any one of the methods of claims 1-5 according to the obtained program instructions.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 5.
9. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 5.
