Re: LibSVM should have just one input file

2017-06-11 Thread Yan Facai
Hi, yaphet. It seems that the code you pasted should be located in LibSVM, rather than SVM. Do I misunderstand? For LibSVMDataSource, 1. if numFeatures is unspecified, only one file is valid input. val df = spark.read.format("libsvm") .load("data/mllib/sample_libsvm_data.txt") 2. otherwise,

LibSVM should have just one input file

2017-06-11 Thread darion.yaphet
Hi team : Currently when we using SVM to train dataset we found the input files limit only one . the source code as following : valpath=if (dataFiles.length ==1) { dataFiles.head.getPath.toUri.toString } elseif (dataFiles.isEmpty) { thrownewIOException("No input path specified for libsvm