我試圖使用Weka的NaiveBayesUpdateable分類器。我的數據包含名義和數字屬性:Java,Weka:如何預測數字屬性?
@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
我需要根據其他屬性預測銷售數量(數字!)。
我明白我不能在Weka中使用貝葉斯分類的數值屬性。一種技術是將數值屬性的值拆分爲長度爲k的N個區間,並使用名義屬性(其中n是一個類名稱),如下所示:@attribute class {1,2,3,... N}。
我需要預測的數值屬性的範圍是從0到1 000 000.創建1 000 000個類別根本沒有意義。如何使用Weka預測數字屬性,或者在Weka沒有用於此任務的工具的情況下查找哪些算法?
可能重複的[Java,Weka:NaiveBayesUpdateable:無法處理數字類](http://stackoverflow.com/questions/15956537/java-weka-naivebayesupdateable-cannot-handle-numeric-class)。雖然它可能是相反的,因爲這是一個更好的問題。 – demongolem 2016-12-11 03:05:07