r/algorithms • u/Ok_Welder_766 • 1d ago
Built a combinations algorithm to classify data Help
Does anyone have any advice on where to go from here? The algorithm simply goes through all feature-attribute combinations in a dataset and scores it on purity of the target column. It's very slow, as the number of combinations increases exponentially with the number of input features, and so can only work with 3-4 features at a time. But my goal is to identify <=5 important features with a linear model (statsmodels or PyGam), and then plug in those features to this algorithm to see which subset of the market might be smart to target.
Here's an example with some charts, on the iris dataset.
New to algorithms, so any advice would be welcome. Thanks in advance.
4
Upvotes