Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize the evaluation of "deep" categorical fields #73

Open
vruusmann opened this issue Sep 6, 2017 · 0 comments
Open

Optimize the evaluation of "deep" categorical fields #73

vruusmann opened this issue Sep 6, 2017 · 0 comments

Comments

@vruusmann
Copy link
Member

The "depth" of a categorical field can be estimated as the number of Value child elements inside the parent DataField or DerivedField element. For example, a DataField element with ten Value child elements might be considered "shallow", and a DataField element with more than one thousand Value child elements might be considered "deep".

The "depth" information can be used to optimize the execution plan for several model types. For example, the evaluation of the RegressionModel element currently involves iteration over all the entries of the RegressionTable element. Such "linear scan" approach is highly inefficient in case of "deep" categorical fields, and should be replaced with "dictionary lookup" approach. By definition, this will result in performance increase, which is proportional to the "depth" of the categorical features at hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant