code: def import_libsvm_sparse(filename):
      
      from sklearn.datasets import load_svmlight_file
      X, y = load_svmlight_file(filename)
      return Dataset(X.toarray().tolist(), y.tolist())
docs: Imports dataset file in libsvm sparse format