I tried to use the NaiveBayesUpdateable classifier from Weka. My data contains both nominal and numerical attributes:
@relation cars @attribute country {FR, UK, ...} @attribute city {London, Paris, ...} @attribute car_make {Toyota, BMW, ...} @attribute price numeric %% car price @attribute sales numeric %% number of cars sold
I need to predict the number of sales (numeric!) Based on other attributes.
I understand that I cannot use the numeric attribute to classify Bayes in Weka. One of the methods is to divide the value of the numeric attribute into N intervals of length k and use the nominal attribute instead, where n is the name of the class, for example: @attribute class {1,2,3, ... N}.
But the numerical attribute that I need to predict ranges from 0 to 1,000,000. Creating 1,000,000 classes does not make sense at all. How to predict a numerical attribute using Weka or what algorithms to look for if Weka does not have tools for this task?
source share