I have run the liblinear to modeling a model file.
The python code is here:
y, x = svm_read_problem(vector_file)
prob = problem(y, x)
param = parameter('-s 2 -c 1')
m = train(prob, param)
save_model(model_file, m)
The problem is that when the vector_file is about 247MB, the total cost of memory when running liblinear is about 3.08GB. Why does it cost so much?
And In my project, the vector_file will be as large as 2GB, how can I use liblinear to train the problem, then I can get a model file?