An open source data classification method
Through the open source data classification method and the backtracking and filtering technology of the tree classification diagram, the problem of inaccurate classification caused by multiple types of data in data type classification is solved, and accurate classification and management of data are achieved.
Patent Information
- Application Number
- CN202410180057.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-02-18
AI Technical Summary
During the data type classification process, some data may contain multiple types of data, resulting in random division and inaccurate data division.
An open source data classification method is used to obtain the data target address and determine the number of addresses. If it is not one, go back to the tree classification diagram to determine the fork address, calculate the proportion of forks, and select the fork address with the largest value. Divide, and filter and refine when necessary to ensure the accuracy of data division.
By analyzing the correlation between data addresses and determining the most appropriate addresses for data division, inaccurate data division is reduced and the accuracy of data management is improved.
Smart Images

Figure CN117972590B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data storage technology, and in particular to an open source data classification method. Background Art
[0002] Open source data refers to data sets that are provided to the public for free use. They are usually released publicly by individuals, teams or organizations, and anyone can download, use, modify and distribute them for free. These data sets may include various types of data, such as text, images, audio, video, etc. In order to facilitate the management of open source data, data sets need to be classified. Common classification methods include classification according to data type, classification according to data source, and classification according to data usage.
[0003] In the related technology, when using data types to classify and process open source data, multiple major categories are set, such as building materials, musical instruments, etc., and then several subcategories are set in each major category. By continuously adding subcategories to subcategories, a tree-like classification diagram is realized to effectively divide the open source data.
[0004] With respect to the above-mentioned related technologies, the inventors believe that in the process of data segmentation, there may be a situation where multiple types of data exist in some data. At this time, the data will be randomly divided into one of the data sets, resulting in inaccurate segmentation of some data. Summary of the invention
[0005] In order to reduce the situation where data is not accurately divided, the present application provides an open source data classification method.
[0006] In a first aspect, the present application provides an open source data classification method, which adopts the following technical solution:
[0007] An open source data classification method, including:
[0008] Get the data target address;
[0009] Counting the data target addresses to determine the number of target addresses;
[0010] Determine whether the number of target addresses is one;
[0011] If the number of target addresses is one, the current data is divided according to the number of target addresses;
[0012] If the number of target addresses is not one, the data backtracking address is determined by continuously backtracking to the upper level in the preset tree classification diagram according to the data target address, and when the data backtracking addresses corresponding to different data target addresses overlap, the backtracking is stopped and the corresponding data backtracking address is defined as a data fork address;
[0013] In the data fork address, count according to the data target address backtracking to determine the number of forks, and calculate according to the number of forks and the number of target addresses to determine the fork ratio;
[0014] Determine the fork ratio with the largest value according to the preset sorting rules, and define the data target address corresponding to the fork ratio as the comparison target address;
[0015] In comparing the target addresses, a unique actual target address is determined according to a preset selection rule, and the current data is divided according to the actual target address.
[0016] By adopting the above technical solution, when dividing and classifying data, the addresses where the data can be divided are obtained, and all addresses are analyzed to determine the most likely address for data division, thereby reducing the situation where data division is inaccurate.
[0017] Optionally, after the fork ratio is determined, the open source data classification method also includes:
[0018] Determine whether there are at least two data fork addresses with the largest and identical fork ratios;
[0019] If there are not at least two data fork addresses with the largest and identical fork ratios, the comparison target address is determined based on the unique data fork address;
[0020] If there are at least two data fork addresses with the largest and identical fork ratios, the corresponding data fork addresses are defined as data candidate addresses, and the number of forks corresponding to all fork ratios with the largest values is summed up to determine the number of comprehensive addresses;
[0021] Perform difference calculation based on the number of comprehensive addresses and the number of target addresses to determine the number of legacy addresses;
[0022] Determine whether the number of legacy addresses is zero;
[0023] If the number of legacy addresses is zero, the self-comparison signal is output;
[0024] If the number of legacy addresses is not zero, the data target addresses corresponding to the number of legacy addresses are defined as data comparison addresses, and a backtracking process is performed based on the data comparison addresses and the data candidate addresses to determine the data encounter addresses corresponding to the data candidate addresses;
[0025] Determine similar parameters according to the data encounter addresses and data candidate addresses, and calculate based on all similar parameters to determine the selection parameters;
[0026] A selection parameter with the largest value is determined according to the sorting rule, and a comparison target address is determined according to the data candidate address corresponding to the selection parameter.
[0027] By adopting the above technical solution, when there are multiple data fork addresses that meet the requirements, the data fork addresses that meet the requirements can be screened and processed to select the most appropriate data fork address for use.
[0028] Optionally, after the selection parameters are determined, the open source data classification method also includes:
[0029] Determine whether there are at least two data candidate addresses with the same and largest selection parameter values;
[0030] If there are not at least two data candidate addresses with the same and largest selection parameter values, the comparison target address is determined according to the unique data candidate address;
[0031] If there are at least two candidate data addresses with the same and largest selection parameter values, then the closest parameter with the largest value is determined according to the sorting rule among the similar parameters determined by each candidate data address, and the similar parameter is defined as the nearest parameter;
[0032] A large ratio parameter is determined by calculating according to all the recent parameters in a single data candidate address, and a large ratio parameter with the largest value is determined according to a sorting rule, and a comparison target address is determined according to the data candidate address corresponding to the large ratio parameter.
[0033] By adopting the above technical solution, when there are multiple data candidate addresses that meet the requirements, the most appropriate data candidate address can be determined for use according to the distance of the data association.
[0034] Optionally, after the self-comparison signal is output, the open source data classification method also includes:
[0035] Get the data candidate address at the candidate address level in the tree classification diagram;
[0036] The data candidate address with the lowest candidate address level is defined as a shared bottom layer address;
[0037] Determine whether there is only one shared underlying address;
[0038] If there is only a unique shared underlying address, the comparison target address is determined according to the unique shared underlying address;
[0039] If there is more than one unique shared underlying address, then the depth parameter is determined in the shared underlying address according to the corresponding data target address;
[0040] A refinement parameter is determined by calculation according to all the in-depth parameters in a single shared bottom layer address, and a refinement parameter with the largest value is determined according to a sorting rule, and a comparison target address is determined according to the shared bottom layer address corresponding to the refinement parameter.
[0041] By adopting the above technical solution, a more appropriate comparison target address is determined according to the specific degree to which the data can be refined.
[0042] Optionally, the step of determining a unique actual target address according to a preset selection rule in comparing the target addresses includes:
[0043] Get the comparison target address in the comparison address level in the tree classification diagram;
[0044] The comparison target address with the lowest comparison address level is defined as the comparison bottom address;
[0045] Determine whether there is only one comparison bottom-level address;
[0046] If there is only a unique comparison bottom-level address, the unique comparison bottom-level address is determined as the actual target address;
[0047] If there is not only a unique comparison bottom layer address, then in the data set corresponding to the comparison bottom layer address, the storage data whose data target address is consistent with the data target address of the current data is defined as similar data;
[0048] Counting is performed according to similar data to determine the similar number, and the similar number with the largest value is determined according to the sorting rule, and the corresponding comparison bottom layer address is determined as the actual target address according to the similar number.
[0049] By adopting the above technical solution, a unique and most suitable actual target address can be selected from a plurality of comparison target addresses for data division.
[0050] Optionally, after the similar quantity is determined, the open source data classification method also includes:
[0051] Determine whether there are at least two similar maximum and consistent comparison underlying addresses;
[0052] If there are not at least two comparable underlying addresses with the largest and consistent similarity numbers, the actual target address is determined based on the unique similarity number;
[0053] If there are at least two similar and consistent lower-level addresses, then the number of overlapping addresses is determined in the data set corresponding to the lower-level addresses according to the data target address of the stored data and the data target address of the current data;
[0054] The overlap ratio is determined by calculation based on the number of overlapped addresses and the number of target addresses, and the overlap ratio with the largest value is determined based on the sorting rule, and the overlap ratio is defined as the representative ratio, and the storage quantity of the corresponding storage data is determined based on the representative ratio;
[0055] The filter parameter is determined by calculation based on the representative ratio and the storage quantity, and the filter parameter with the largest value is determined based on the sorting rule, and the comparison bottom-level address corresponding to the filter parameter is determined as the actual target address.
[0056] By adopting the above technical solution, when there are multiple comparative bottom-level addresses that meet the requirements, a unique and most suitable actual target address can be selected for data division according to the association of data in each data set.
[0057] In a second aspect, the present application provides an open source data classification system, which adopts the following technical solutions:
[0058] An open source data classification system, including:
[0059] An acquisition module is used to obtain a data target address;
[0060] A processing module, connected to the acquisition module and the judgment module, for storing and processing information;
[0061] A judgment module, connected with the acquisition module and the processing module, for judging the information;
[0062] The processing module counts according to the data target addresses to determine the number of target addresses;
[0063] The judging module judges whether the number of target addresses is one;
[0064] If the determination module determines that the number of target addresses is one, the processing module divides the current data according to the number of target addresses;
[0065] If the determination module determines that the number of target addresses is not one, the processing module continuously backtracks to a higher level in a preset tree classification diagram according to the data target addresses to determine the data backtracking address, and when the data backtracking addresses corresponding to different data target addresses overlap, the backtracking is stopped and the corresponding data backtracking address is defined as a data fork address;
[0066] The processing module counts the data fork address according to the data target address backtracking to determine the number of forks, and calculates the fork ratio according to the number of forks and the number of target addresses;
[0067] The processing module determines the fork ratio with the largest value according to a preset sorting rule, and defines the data target address corresponding to the fork ratio as the comparison target address;
[0068] The processing module determines a unique actual target address according to a preset selection rule in comparing the target addresses, and divides the current data according to the actual target address.
[0069] By adopting the above technical solution, when dividing and classifying data, the acquisition module obtains the addresses where the data can be divided, and the processing module analyzes all addresses to determine the most likely address for data division, thereby reducing the situation where data division is inaccurate.
[0070] In summary, the present application includes at least one of the following beneficial technical effects:
[0071] When dividing data, the association relationship of the addresses to which the data can be assigned can be used to determine more appropriate addresses for data division, thereby reducing the situation where the data is divided inaccurately;
[0072] In the process of data division, confirmation analysis can be performed on similar data already in the data set to facilitate the division and classification of the current data. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 It is a flowchart of the open source data classification method.
[0074] Figure 2 It is a flow chart of the data fork address screening method.
[0075] Figure 3 It is a flow chart of a method for screening data candidate addresses.
[0076] Figure 4 It is a flow chart of the shared underlying address analysis method.
[0077] Figure 5 is a flow chart of a method for determining an actual target address.
[0078] Figure 6 is a flowchart comparing the underlying address screening methods.
[0079] Figure 7 It is a module flow chart of the open source data classification method. DETAILED DESCRIPTION
[0080] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-7 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0081] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0082] An embodiment of the present application discloses an open source data classification method. When classifying data, the category address that can be assigned to the current data is used to determine which address is most suitable for the current data, so that the current data can be divided into the most suitable address, thereby reducing the situation where the data is inaccurately divided and classified.
[0083] Reference Figure 1 ,The method flow of the open source data classification method includes the following steps:
[0084] Step S100: Obtain data target address.
[0085] The data target address is the address to which the current data can be summarized. For example, there is image data of soap, which is annotated with fonts such as toiletries and household items. When classifying the current data, the address can be determined based on soap, toiletries, or household items. At this time, it is obvious that household items are the wrong address. This application is to judge the error situation in order to reduce the occurrence of data division errors. Different data correspond to different numbers of data target addresses. The correspondence between the specific data and the data target address can be determined by the staff in advance through deep learning of neural networks.
[0086] Step S101: Counting data target addresses to determine the number of target addresses.
[0087] The number of target addresses is the total number of data target addresses owned by the data currently required to be classified.
[0088] Step S102: Determine whether the number of target addresses is one.
[0089] The purpose of the judgment is to find out whether inaccurate division will occur when the data is divided.
[0090] Step S1021: If the number of target addresses is one, divide the current data according to the number of target addresses.
[0091] When the number of target addresses is one, it means that there is only one data target address that matches the current data. In this case, the current data can be divided according to the data target addresses.
[0092] Step S1022: If the number of target addresses is not one, then the data target addresses are continuously traced back to the upper level in the preset tree classification diagram to determine the data backtracking address, and when the data backtracking addresses corresponding to different data target addresses overlap, the backtracking is stopped and the corresponding data backtracking address is defined as the data fork address.
[0093] When the number of target addresses is not one, it means that the current data can be divided into different positions. At this time, there may be classification errors, which require further analysis; the tree classification diagram is a node diagram formed by the staff according to the set data division rules. For example, the upper node of the tree classification diagram is daily necessities, and the lower nodes that can be extended from the nodes of daily necessities include toiletries, household items, cooking supplies, etc. The lower nodes can continue to be extended in each lower node to form a tree classification diagram; the data backtracking address is the node address obtained when the data target address is traced back from the lower node to the upper node. For example, when the data target address of the current data is toiletries, the first data backtracking address obtained is daily necessities; when the data backtracking addresses corresponding to different data target addresses overlap, it means that in the process of data division, the data has a classification deviation at the data backtracking address. At this time, the data backtracking address is defined as a data fork address to achieve the distinction between different data backtracking addresses.
[0094] Step S103: Count the data fork address according to the data target address backtracking situation to determine the number of forks, and calculate according to the number of forks and the number of target addresses to determine the fork ratio.
[0095] The number of forks is the total number of data target addresses when tracing back to the data fork address and achieving overlap, and the fork ratio is the value obtained by dividing the number of forks by the number of target addresses.
[0096] Step S104: determining the fork ratio with the largest value according to a preset sorting rule, and defining the data target address corresponding to the fork ratio as the comparison target address.
[0097] The sorting rule is a method set by the staff to sort the size of values, such as the bubble sort method. The sorting rule can be used to determine the proportion of forks with the largest values, that is, the current data is likely to be at the data target address corresponding to the data fork address. At this time, the comparison target address is defined to distinguish different data target addresses, which is convenient for subsequent analysis steps.
[0098] Step S105: Determine a unique actual target address according to a preset selection rule in comparing the target addresses, and divide the current data according to the actual target address.
[0099] The selection rule is a method set by the staff to determine a unique item among multiple selection items, such as a random selection method. The specific method can be set by the staff according to the actual situation to determine a unique actual target address among the compared target addresses to divide and classify the current data, thereby reducing the situation where the current data is inaccurately divided.
[0100] Reference Figure 2 After the fork ratio is determined, the open source data classification method also includes:
[0101] Step S200: Determine whether there are at least two data fork addresses with the largest and identical fork ratio values.
[0102] The purpose of the judgment is to find out whether there are multiple data fork addresses that meet the requirements and need to be screened and analyzed again.
[0103] Step S2001: If there are not at least two data fork addresses with the largest and identical fork ratio values, a comparison target address is determined according to the unique data fork address.
[0104] When there are not at least two data fork addresses with the largest and identical fork ratio values, it means that there is only one data fork address that meets the requirements. In this case, the corresponding comparison target address can be determined based on the data fork address.
[0105] Step S2002: If there are at least two data fork addresses with the same maximum fork ratio, the corresponding data fork addresses are defined as data candidate addresses, and the number of forks corresponding to all the fork ratios with the largest values is summed up to determine the number of comprehensive addresses.
[0106] When there are at least two data fork addresses with the largest and identical fork ratio values, it means that there are multiple data fork addresses that meet the requirements and need to be further screened; at this time, data candidate addresses are defined to distinguish different data fork addresses, and the comprehensive address quantity is the total number of data target addresses corresponding to all data candidate addresses.
[0107] Step S201: performing a difference calculation based on the number of integrated addresses and the number of target addresses to determine the number of legacy addresses.
[0108] The number of legacy addresses is the total number of data target addresses that are not at the corresponding data candidate addresses, and is determined by subtracting the number of comprehensive addresses from the number of target addresses.
[0109] Step S202: Determine whether the number of legacy addresses is zero.
[0110] The purpose of the judgment is to find out whether the current data fork address can be distinguished by the remaining data target addresses.
[0111] Step S2021: If the number of remaining addresses is zero, output a self-comparison signal.
[0112] When the number of legacy addresses is zero, it means that the current data fork address cannot be distinguished by the remaining data target addresses. At this time, a self-comparison signal is output to identify the current situation, so as to facilitate subsequent processing of the situation.
[0113] Step S2022: If the number of legacy addresses is not zero, the data target addresses corresponding to the number of legacy addresses are defined as data comparison addresses, and a backtracking process is performed based on the data comparison addresses and the data candidate addresses to determine the data encounter addresses corresponding to each data candidate address.
[0114] When the number of legacy addresses is not zero, it means that the current data fork address can be distinguished by the remaining data target addresses. At this time, these data target addresses are defined as data comparison addresses for identification to facilitate subsequent analysis; the data encounter address is the data alternative address and the address that the data comparison address will encounter after backtracing in the tree classification diagram.
[0115] Step S203: Determine similar parameters according to each data encounter address and the data candidate address, and perform calculations based on all similar parameters to determine selection parameters.
[0116] The similarity parameter is a parameter that reflects the degree of association between the data candidate address and the data comparison address. The larger the value, the closer the degree of association. There is a corresponding number of nodes between the data meeting address and the data candidate address. The similarity parameter can be determined by the number of nodes. The smaller the number of nodes, the larger the similarity parameter. The relationship between the similarity parameter and the number of nodes is determined in advance by the staff. The selection parameter is the value obtained by adding all the similarity parameters determined for a data candidate address.
[0117] Step S204: determining a selection parameter with the largest value according to the sorting rule, and determining a comparison target address according to the data candidate address corresponding to the selection parameter.
[0118] The data candidate address with the greatest correlation with the remaining addresses can be determined through the sorting rule. At this time, the data candidate address is used to determine the comparison target address so as to make the data division more accurate.
[0119] Reference Figure 3 After the selection parameters are determined, the open source data classification method also includes:
[0120] Step S300: Determine whether there are at least two candidate data addresses with the same and largest selection parameter values.
[0121] The purpose of the judgment is to find out whether there are multiple data candidate addresses that meet the requirements.
[0122] Step S3001: If there are not at least two candidate data addresses with the same and largest selection parameter values, a comparison target address is determined according to the unique candidate data address.
[0123] When there are not at least two candidate data addresses with the same and largest selection parameter values, it means that there is only one candidate data address that meets the requirements. In this case, the comparison target address can be determined based on the candidate data address.
[0124] Step S3002: If there are at least two candidate data addresses with the same and largest selection parameter values, then determine the closest parameter with the largest value among the similar parameters determined for each candidate data address according to a sorting rule, and define the similar parameter as the nearest parameter.
[0125] When there are at least two data candidate addresses with the same and largest selection parameter values, it means that there are multiple data candidate addresses that meet the requirements and need further analysis; define the nearest parameter to determine the address with the highest degree of association for subsequent analysis.
[0126] Step S301: Calculate a large ratio parameter in a single data candidate address according to all recent parameters, determine the large ratio parameter with the largest value according to a sorting rule, and determine a comparison target address according to the data candidate address corresponding to the large ratio parameter.
[0127] The large ratio parameter is obtained by adding all the nearest parameters in a single data candidate address, that is, the number of nearest parameters multiplied by the nearest parameter; the large ratio parameter with the largest value can be determined through the sorting rules. At this time, the data candidate address has a strong correlation with the remaining data. The comparison target address is determined based on the data candidate address to improve the accuracy of data division; when there are multiple large ratio parameters with the largest value, the comparison target address can be determined by randomly selecting the data candidate address that meets the requirements through a random algorithm.
[0128] Reference Figure 4 , after the self-comparison signal output, the open source data classification method also includes:
[0129] Step S400: Obtain the candidate address level of the data candidate address in the tree classification diagram.
[0130] The alternative address level is the data level of the data alternative address in the tree classification diagram, that is, the top of the tree classification diagram is the first level, the next node generated from the top is the second level, and so on to obtain the data level of each node.
[0131] Step S401: define the data candidate address with the lowest candidate address level as a shared bottom-level address.
[0132] The lowest level of candidate addresses is interpreted as being at the bottom of the tree classification diagram. A shared bottom-level address is defined to determine the candidate addresses of the data at the bottom, which is convenient for subsequent analysis. The lower the shared bottom-level address, the clearer the data is classified, and the better the corresponding classification effect.
[0133] Step S402: Determine whether there is only one shared bottom layer address.
[0134] The purpose of the judgment is to find out whether there is only one shared underlying address that meets the requirements.
[0135] Step S4021: If there is only a unique shared underlying address, determine the comparison target address according to the unique shared underlying address.
[0136] When there is only a unique shared underlying address, it means that there is only a unique address that meets the requirements. At this time, the comparison target address can be determined based on the unique shared underlying address, which can achieve a better data classification effect.
[0137] Step S4022: If there is not only one shared bottom layer address, then determine the depth parameter in the shared bottom layer address according to the corresponding data target address.
[0138] When there is not only a unique shared underlying address, it means that there are multiple addresses that meet the requirements and further analysis is required; the in-depth parameter is a parameter that reflects the distance between the data target address at the layer below the shared underlying address and the shared underlying address.
[0139] Step S403: Calculate in a single shared bottom layer address according to all the in-depth parameters to determine a refinement parameter, determine a refinement parameter with the largest value according to a sorting rule, and determine a comparison target address according to the shared bottom layer address corresponding to the refinement parameter.
[0140] The refinement parameter is a parameter that reflects the degree of refinement of data classification. It is obtained by adding all the in-depth parameters. The refinement parameter with the largest value can be determined through the sorting rules, which means that the corresponding data target address is determined more clearly at this time. At this time, the comparison target address is determined according to the corresponding shared underlying address to achieve better data classification effect.
[0141] Reference Figure 5 The step of determining a unique actual target address according to a preset selection rule in comparing the target addresses includes:
[0142] Step S500: Obtain the comparison address level of the comparison target address in the tree classification diagram.
[0143] The comparison address level is the data level of the comparison target address in the tree classification diagram.
[0144] Step S501: define the comparison target address with the lowest comparison address level as the comparison bottom-level address.
[0145] Define the comparison bottom layer address to distinguish different comparison target addresses for subsequent analysis.
[0146] Step S502: Determine whether there is only one comparison bottom layer address.
[0147] The purpose of the judgment is to find out whether there is only one address that is most clearly classified.
[0148] Step S5021: If there is only a unique comparison bottom-level address, the unique comparison bottom-level address is determined as the actual target address.
[0149] When there is only a unique comparative bottom-level address, it means that there is only a unique address that is most clearly classified. In this case, the actual target address is determined based on the unique comparative bottom-level address.
[0150] Step S5022: If there is not only a unique comparison bottom-level address, then in the data set corresponding to the comparison bottom-level address, the storage data whose data target address is consistent with the data target address of the current data is defined as similar data.
[0151] When there is not only a unique comparison bottom-level address, it means that there are multiple comparison bottom-level addresses that meet the requirements and further analysis is required; similar data is defined to determine the data that has been classified before, so as to facilitate the determination of the classification of the current data.
[0152] Step S503: Count the similar data to determine the similar number, and determine the similar number with the largest value according to the sorting rule, and determine the corresponding comparison bottom-level address as the actual target address according to the similar number.
[0153] The similarity number is the total number of similar data in the data set corresponding to each comparison bottom-level address. The similarity number with the largest value can be determined through the sorting rules, that is, the comparison bottom-level address corresponding to the similarity number is most suitable for the current data. At this time, the comparison bottom-level address is determined as the actual target address to make the data division more accurate.
[0154] Reference Figure 6 , after the similar quantity is determined, the open source data classification method also includes:
[0155] Step S600: Determine whether there are at least two similar and consistent bottom-level addresses for comparison.
[0156] The purpose of the judgment is to find out whether there are multiple comparative bottom-level addresses that meet the requirements.
[0157] Step S6001: If there are not at least two comparable underlying addresses with the largest and consistent similarity numbers, the actual target address is determined based on the unique similarity number.
[0158] When there are not at least two similar and consistent lower-level comparison addresses, it means that there is only one lower-level comparison address that meets the requirements. In this case, the only lower-level comparison address can be determined as the actual target address.
[0159] Step S6002: If there are at least two similar and consistent lower-level addresses, the number of overlapping addresses is determined in the data set corresponding to the lower-level addresses according to the data target address of the stored data and the data target address of the current data.
[0160] When there are at least two similar largest and consistent comparison bottom-level addresses, it means that there are multiple comparison bottom-level addresses that meet the requirements and further analysis is needed; the number of overlapping addresses is the number of addresses when the data target address of the data currently required to be stored overlaps with the data target address of the stored data in the data set corresponding to the comparison bottom-level address.
[0161] Step S601: Calculate the overlap ratio based on the number of overlapped addresses and the number of target addresses, and determine the overlap ratio with the largest value based on the sorting rules, and define the overlap ratio as the representative ratio, and determine the storage quantity of the corresponding storage data based on the representative ratio.
[0162] The overlap ratio is the value obtained by dividing the number of overlapping addresses by the number of target addresses. The overlap ratio with the largest value can be determined through the sorting rules, that is, the stored data has the highest similarity with the current data. At this time, the representative ratio is defined to determine the situation, and the storage quantity is determined to facilitate subsequent analysis.
[0163] Step S602: Calculate and determine the screening parameter according to the representative ratio and the storage quantity, and determine the screening parameter with the largest value according to the sorting rule, and determine the comparison bottom-level address corresponding to the screening parameter as the actual target address.
[0164] The filtering parameter is a parameter that reflects the degree of suitability between the current data and the data set. The larger the parameter, the more suitable it is. The filtering parameter is determined by multiplying the representative proportion by the storage quantity. The sorting rule is used to determine the filtering parameter with the largest value, so as to determine the most suitable actual target address for the current data to be classified.
[0165] Reference Figure 7 Based on the same inventive concept, an embodiment of the present invention provides an open source data classification system, including:
[0166] An acquisition module is used to obtain a data target address;
[0167] A processing module, connected to the acquisition module and the judgment module, for storing and processing information;
[0168] A judgment module, connected with the acquisition module and the processing module, for judging the information;
[0169] The processing module counts according to the data target addresses to determine the number of target addresses;
[0170] The judging module judges whether the number of target addresses is one;
[0171] If the determination module determines that the number of target addresses is one, the processing module divides the current data according to the number of target addresses;
[0172] If the determination module determines that the number of target addresses is not one, the processing module continuously backtracks to a higher level in a preset tree classification diagram according to the data target addresses to determine the data backtracking address, and when the data backtracking addresses corresponding to different data target addresses overlap, the backtracking is stopped and the corresponding data backtracking address is defined as a data fork address;
[0173] The processing module counts the data fork address according to the data target address backtracking to determine the number of forks, and calculates the fork ratio according to the number of forks and the number of target addresses;
[0174] The processing module determines the fork ratio with the largest value according to a preset sorting rule, and defines the data target address corresponding to the fork ratio as the comparison target address;
[0175] The processing module determines a unique actual target address according to a preset selection rule in comparing the target addresses, and divides the current data according to the actual target address;
[0176] A fork address screening module, used to screen and process multiple data fork addresses that meet the requirements;
[0177] The candidate address screening module is used to screen multiple data candidate addresses that meet the requirements;
[0178] The bottom layer address analysis module performs shared bottom layer address analysis for the case where there are no redundant data target addresses;
[0179] A target address determination module, used for determining a unique actual target address;
[0180] The bottom layer address screening module is used to screen multiple bottom layer addresses that meet the requirements.
[0181] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
Claims
1. An open source data classification method, characterized in that: include: Acquire a data target address, wherein the data is image data, and the data target address is an address to which the current data can be summarized; Counting the data target addresses to determine the number of target addresses; Determine whether the number of target addresses is one; If the number of target addresses is one, the current data is divided according to the number of target addresses; If the number of target addresses is not one, the data backtracking address is determined by continuously backtracking to the upper level in the preset tree classification diagram according to the data target address, and when the data backtracking addresses corresponding to different data target addresses overlap, the backtracking is stopped and the corresponding data backtracking address is defined as a data fork address; In the data fork address, count according to the data target address backtracking to determine the number of forks, and calculate according to the number of forks and the number of target addresses to determine the fork ratio; Determine the fork ratio with the largest value according to the preset sorting rules, and define the data target address corresponding to the fork ratio as the comparison target address; Determine a unique actual target address according to a preset selection rule in comparing the target addresses, and divide the current data according to the actual target address; The steps of determining a unique actual target address according to a preset selection rule in comparing the target addresses include: Get the comparison target address in the comparison address level in the tree classification diagram; The comparison target address with the lowest comparison address level is defined as the comparison bottom address; Determine whether there is only one comparison bottom-level address; If there is only a unique comparison bottom-level address, the unique comparison bottom-level address is determined as the actual target address; If there is not only a unique comparison bottom layer address, then in the data set corresponding to the comparison bottom layer address, the storage data whose data target address is consistent with the data target address of the current data is defined as similar data; Counting is performed according to similar data to determine the similar number, and the similar number with the largest value is determined according to the sorting rule, and the corresponding comparison bottom layer address is determined as the actual target address according to the similar number.
2. The open source data classification method according to claim 1, characterized in that: After the fork ratio is determined, the open source data classification method also includes: Determine whether there are at least two data fork addresses with the largest and identical fork ratios; If there are not at least two data fork addresses with the largest and identical fork ratios, the comparison target address is determined based on the unique data fork address; If there are at least two data fork addresses with the largest and identical fork ratios, the corresponding data fork addresses are defined as data candidate addresses, and the number of forks corresponding to all fork ratios with the largest values is summed up to determine the number of comprehensive addresses; Perform difference calculation based on the number of comprehensive addresses and the number of target addresses to determine the number of legacy addresses; Determine whether the number of legacy addresses is zero; If the number of legacy addresses is zero, a self-comparison signal is output, wherein the self-comparison signal is used to identify a situation where the current data fork address cannot be distinguished by the remaining data target addresses; If the number of legacy addresses is not zero, the data target addresses corresponding to the number of legacy addresses are defined as data comparison addresses, and a backtracking process is performed based on the data comparison addresses and the data candidate addresses to determine the data encounter addresses corresponding to the data candidate addresses; Determine the similarity parameter according to each data encounter address and the data candidate address, and calculate according to all the similarity parameters to determine the selection parameter, wherein the similarity parameter is a parameter reflecting the degree of association between the data candidate address and the data comparison address, and the selection parameter is a value obtained by adding all the similarity parameters determined by one data candidate address; A selection parameter with the largest value is determined according to the sorting rule, and a comparison target address is determined according to the data candidate address corresponding to the selection parameter.
3. The open source data classification method according to claim 2, characterized in that: After the selection parameters are determined, the open source data classification method also includes: Determine whether there are at least two data candidate addresses with the same and largest selection parameter values; If there are not at least two data candidate addresses with the same and largest selection parameter values, the comparison target address is determined according to the unique data candidate address; If there are at least two candidate data addresses with the same and largest selection parameter values, then the closest parameter with the largest value is determined according to the sorting rule among the similar parameters determined by each candidate data address, and the similar parameter is defined as the nearest parameter; A large ratio parameter is determined based on all the most recent parameters in a single data candidate address, and a large ratio parameter with the largest value is determined based on a sorting rule, and a comparison target address is determined based on the data candidate address corresponding to the large ratio parameter, wherein the large ratio parameter is obtained by adding all the most recent parameters in a single data candidate address.
4. The open source data classification method according to claim 2, characterized in that: After the self-comparison signal output, the open source data classification method also includes: Get the data candidate address at the candidate address level in the tree classification diagram; The data candidate address with the lowest candidate address level is defined as a shared bottom layer address; Determine whether there is only one shared underlying address; If there is only a unique shared underlying address, the comparison target address is determined according to the unique shared underlying address; If there is more than one shared bottom layer address, a depth parameter is determined in the shared bottom layer address according to the corresponding data target address, wherein the depth parameter is a parameter reflecting the distance between the data target address at the level below the shared bottom layer address and the shared bottom layer address; A refinement parameter is determined based on all the depth parameters in a single shared underlying address, and the refinement parameter with the largest value is determined based on the sorting rules, and the comparison target address is determined based on the shared underlying address corresponding to the refinement parameter, wherein the refinement parameter is a parameter reflecting the degree of refinement of data classification, and is obtained by adding all the depth parameters.
5. The open source data classification method according to claim 1, characterized in that: After similar quantities are determined, open source data classification methods also include: Determine whether there are at least two similar maximum and consistent comparison underlying addresses; If there are not at least two comparable underlying addresses with the largest and consistent similarity numbers, the actual target address is determined based on the unique similarity number; If there are at least two similar and consistent lower-level addresses, then the number of overlapping addresses is determined in the data set corresponding to the lower-level addresses according to the data target address of the stored data and the data target address of the current data; The overlap ratio is determined by calculation based on the number of overlapped addresses and the number of target addresses, and the overlap ratio with the largest value is determined based on the sorting rule, and the overlap ratio is defined as the representative ratio, and the storage quantity of the corresponding storage data is determined based on the representative ratio; The filter parameters are determined by calculation based on the representative ratio and the storage quantity, and the filter parameter with the largest value is determined based on the sorting rules, and the comparison bottom-level address corresponding to the filter parameter is determined as the actual target address, where the filter parameter is a parameter that reflects the degree of suitability between the current data and the data set.
6. An open source data classification system, characterized in that: include: An acquisition module, used for acquiring a data target address, wherein the data is image data, and the data target address is an address to which the current data can be summarized; A processing module, connected to the acquisition module and the judgment module, for storing and processing information; A judgment module, connected with the acquisition module and the processing module, for judging the information; The processing module counts according to the data target addresses to determine the number of target addresses; The judging module judges whether the number of target addresses is one; If the determination module determines that the number of target addresses is one, the processing module divides the current data according to the number of target addresses; If the determination module determines that the number of target addresses is not one, the processing module continuously backtracks to a higher level in a preset tree classification diagram according to the data target addresses to determine the data backtracking address, and when the data backtracking addresses corresponding to different data target addresses overlap, the backtracking is stopped and the corresponding data backtracking address is defined as a data fork address; The processing module counts the data fork address according to the data target address backtracking to determine the number of forks, and calculates the fork ratio according to the number of forks and the number of target addresses; The processing module determines the fork ratio with the largest value according to a preset sorting rule, and defines the data target address corresponding to the fork ratio as the comparison target address; The processing module determines a unique actual target address according to a preset selection rule in comparing the target addresses, and divides the current data according to the actual target address; The steps of the processing module determining a unique actual target address according to a preset selection rule in comparing the target addresses include: The acquisition module acquires the comparison target address at the comparison address level in the tree classification diagram; The processing module defines the comparison target address with the lowest comparison address level as the comparison bottom-level address; The judgment module judges whether there is only one comparison bottom-level address; If the determination module determines that there is only a unique comparative bottom-level address, the processing module determines the unique comparative bottom-level address as the actual target address; If the judging module judges that there is not only a unique comparison bottom-level address, the processing module defines the storage data whose data target address is consistent with the data target address of the current data in the data set corresponding to the comparison bottom-level address as similar data; The processing module counts the similar data to determine the similar number, determines the similar number with the largest value according to the sorting rule, and determines the corresponding comparison bottom layer address as the actual target address according to the similar number.
