{"pub_number":"US12373733B2","doc_number":"12373733","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Facilitating selection of categorical features in machine learning","abstract_text":"Facilitating selection of the most significant set of categorical features in machine learning is provided herein. Operations of a system include determining a list of unique values of a categorical variable. The operations also include calculating respective mean values, of a target variable, for unique values of the list of unique values of the categorical variable. Further, the operations include sorting the list of unique values by the respective mean values, resulting in a sorted list. The operations also include calculating respective derivatives of the respective mean values in the sorted list considering the respective mean values as a function and a number of the respective mean values in the sorted list as an independent variable. Additionally, the operations include determining a minimum derivative value over the sorted list and outputting the minimum derivative value as a resulting variable significance value.","claims":[{"number":1,"text":"A computer-executable method, comprising: receiving, by a system comprising a processor, input data including a plurality of categorical variables and an output data including a single target numerical variable, wherein the plurality of categorical variables comprises a first categorical variable and a second categorical variable; building, by the system, a predictive model configured to: estimate significance of each categorical variable to the single target numerical variable by converting each categorical variable to each numerical variable, wherein the converting comprises: determining, by the system, a list of unique values of each categorical variable; calculating, by the system, respective mean values of the single target numerical variable for unique values in the list of unique values of each categorical variable; and sorting, by the system, the list of unique values by the respective mean values, resulting in each sorted list, wherein each sorted list corresponds to each nume","independent":true},{"number":2,"text":"The method of claim 1, wherein the determining the minimum derivative value further comprises: determining a respective slope of a respective mean value; and determining a minimum value of the respective slope of the respective mean value.","independent":false,"depends_on":[1]},{"number":3,"text":"The method of claim 1, wherein the calculating of the respective derivatives comprises: calculating the respective derivatives as a slope based on determining a ratio of a mean values change to an item number change between any two items on the sorted list.","independent":false,"depends_on":[1]},{"number":4,"text":"The method of claim 1, further comprising: calculating, by the system, a quadratic mean value of the single target numerical variable for each unique value of each categorical variable.","independent":false,"depends_on":[1]},{"number":5,"text":"The method of claim 1, further comprising: calculating, by the system, an arithmetic mean value of the single target numerical variable for each unique value of each categorical variable.","independent":false,"depends_on":[1]},{"number":6,"text":"The method of claim 1, further comprising: calculating, by the system, a geometric mean value of the single target numerical variable for each unique value of each categorical variable.","independent":false,"depends_on":[1]},{"number":7,"text":"The method of claim 1, further comprising: calculating, by the system, a weighted arithmetic mean value of the single target numerical variable for each unique value of each categorical variable.","independent":false,"depends_on":[1]},{"number":8,"text":"The method of claim 1, further comprising: calculating, by the system, a weighted arithmetic mean value of the single target numerical variable normalized by a normalization process.","independent":false,"depends_on":[1]}],"description":"TECHNICAL FIELD\nThis disclosure relates generally to the field of machine learning and, more specifically, to facilitating selection of categorical features for building machine learning models.\nBACKGROUND\nWhen building a machine learning model, it is rare that all the variables in the dataset are useful to build the model. Adding redundant variables reduces the generalization capability of the model and can also reduce the overall accuracy of the model. Furthermore, adding more and more variables to a model increases the overall complexity of the model. As per the Law of Parsimony of\n“\nOccam's Razor,\n”\nthe best explanation to a problem involves the fewest possible assumptions. Accordingly, feature selection becomes an important part of building machine learning models and unique opportunities exist related to such feature selection.\nBRIEF DESCRIPTION OF THE DRAWINGS\nVarious non-limiting embodiments are further described with reference to the accompanying drawings in which:\nFIG.\n1\nillustrates an example, non-limiting, computer-implemented method for transforming categorical variables to numerical variables in accordance with one or more embodiments described herein;\nFIG.\n2\nillustrates an example, non-limiting, diagram derived by the computer-implemented method of\nFIG.\n1\nin accordance with one or more embodiments described herein;\nFIG.\n3\nillustrates an example, non-limiting, diagram of a typical distribution of target variable Ym values over the entire range of the categorical value index N in accordance with one or more embodiments described herein;\nFIG.\n4\nillustrates an example, non-limiting, slope diagram of the function Y=F(N) on the diagram slope diagram of\nFIG.\n3\nin accordance with one or more embodiments described herein;\nFIG.\n5\nillustrates an example, non-limiting, computer-implemented method for estimating categorical variable significance in accordance with one or more embodiments described herein;\nFIG.\n6\nillustrates an example, non-limiting, computer-imple","inventors":[{"name":"James Pratt","slug":"james-pratt","city":"Round Rock","country":"US"},{"name":"Abhay Dabholkar","slug":"abhay-dabholkar","city":"Allen","country":"US"},{"name":"Vladimir Sevastyanov","slug":"vladimir-sevastyanov","city":"Fort Worth","country":"US"},{"name":"Nikhlesh Agrawal","slug":"nikhlesh-agrawal","city":"McKinney","country":"US"}],"assignees":[{"name":"AT & T Intellectual Property I, L.P.","slug":"at-t-intellectual-property-i-l-p","country":"US"}],"examiners":[],"cpc_codes":["G06F 17/11","G06F 17/18","G06F 18/2113","G06F 18/2193","G06N 20/00"],"ipc_codes":["G06F 17/11","G06F 17/18","G06F 18/21","G06F 18/2113","G06N 20/00"],"filing_date":"2021-09-07","pub_date":"2025-07-29","grant_date":"2025-07-29","expiration_date":"2041-09-07","family_members":[],"citations_made":[{"pub_number":"US20120089592A1","category":"examiner"},{"pub_number":"US20180128619A1","category":"examiner"}],"non_patent_literature":[],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":2,"npl_citations":0,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3483666,"pagerank_rank":3483666,"velocity_rank":3483666,"family_citations":0}}