Hi all,
I am learning Mahout. It seems to me most the examples load dataset from
files using command line. I know Baynes classifier can work with HBase.
Is there any way to build the dataset from scratch in Java Code?
for example, there is a User class having four attributes: ID(data type is
long or String), age {int}, weight (double), and diabetes {boolean} .
There are 100 user objects in my memory, is there way I can convert them
into any type of dataset that classifier algorithm can handle.
I noticed there are vector class and InMemoryDataStore, but I don't how to
use them. If someone can give any hint or write down some pseudo code, that
would very helpful.
Thanks,
Yuan