private void setupDirs() throws IOException {
   fs = baseDir.getFileSystem(conf);
   createDirIfNotExist(baseDir);
   createDirIfNotExist(basisPath);
   createDirIfNotExist(singularVectorPath);
 }