Absolute FilePath to the training output directory.
508766
def ModelDir(self):
        
        model_dir = self.Parameters['model_output_dir'].Value
        absolute_model_dir = os.path.abspath(model_dir)
        return FilePath(absolute_model_dir)
35955
def _bam_to_outbase(bam_file, work_dir, data):
    
    batch = dd.get_batch(data) or dd.get_sample_name(data)
    out_base = os.path.splitext(os.path.basename(bam_file))[0].split(".")[0]
    base = os.path.join(work_dir, out_base)
    return "%s-%s" % (base, batch), base
1031089
def get_filenames(is_training, data_dir):
  """"""
  if is_training:
    return [
        os.path.join(data_dir, 'train-%05d-of-01024' % i)
        for i in range(_NUM_TRAIN_FILES)]
  else:
    return [
        os.path.join(data_dir, 'validation-%05d-of-00128' % i)
        for i in range(128)]
1321895
public void generateTrainData(String inputPath, String outputPath){
		try{
			File file = new File(inputPath);
        	ArrayList<Sentence> data = new ArrayList<Sentence>();
        	if (file.isFile()){
        		System.out.println("Reading " + file.getName());
        		data = (ArrayList<Sentence>) reader.readFile(inputPath);
        	}
        	else if (file.isDirectory()){
        		String [] filenames = file.list();
        		for (String filename: filenames){
        			System.out.println("Reading " + filename);
        			ArrayList<Sentence> temp = (ArrayList<Sentence>) reader.readFile(file.getPath() + File.separator + filename);
        			data.addAll(temp);
        		}
        	}
        	
        	String result = "";
        	System.out.println(data.size() + "sentences read");
        	for (int i = 0; i < data.size(); ++i){
        		if (i % 20 == 0) System.out.println("Finished " + i + " in " + data.size() + " sentences");
        		Sentence sent = data.get(i);
        		
        		for (int j = 0; j < sent.size(); ++j){
        			//result += sent.getWordAt(j) + " ";
        			String line = "";
        			String context = tagger.getContextStr(sent, j);
        		    line = context + " ";
        			line += sent.getTagAt(j);
        			result += line + "\n";
        		}
        		result += "\n";
        	}
        	
        	BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(
        			new FileOutputStream(outputPath + ".tagged"), "UTF-8"));	        	
        	
        	writer.write(result);
        	writer.close();	     
		}
	  catch (Exception e){
        	System.out.println("Error while generating training data");
        	System.out.println(e.getMessage());
        	e.printStackTrace();
        }
	}
1032949
def path_to(self, p):
        """"""
        if os.path.isabs(p):
            return p

        return os.sep.join([self._original_dir, p])
841292
def output_path
      Pathname.new File.join(Massimo.config.output_path, url.sub(/^#{Regexp.escape(Massimo.config.base_url)}/, ''))
    end
984723
def checkOutputPath(self, output_path):
        
        if not output_path:
            # output_path = self.output_path_DEFAULT
            output_path = os.path.join(self.output_path_DEFAULT,
                                       slugify(unicode(self.title)))
        if os.path.exists(output_path):
            shutil.rmtree(output_path)
        os.makedirs(output_path)
        return output_path
871758
function getOutputDir(output) {
  var arr = output.split(path.sep);
  arr.pop();
  return arr.join(path.sep);
}
1174567
def sample_out_dir(self):
        
        if self._sample_out_dir is None:
            self._sample_out_dir = os.path.join(
                self.output_dir, self._sample_name
            )
        return self._sample_out_dir
766413
def filepath(self) -> str:
        """"""
        return os.path.join(self._dirpath, self.name + '.nc')
1196259
def _stage_output_files(self, file_mapping, dry_run=True):
        """"""
        # print ("Staging output ", file_mapping)
        if self._file_stage is None:
            return
        self._file_stage.copy_from_scratch(file_mapping, dry_run)
620267
def output_directory(self) -> str:
        

        return os.path.join(self.results_path, 'reports', self.uuid, 'latest')
1204921
def _support_directory():
    """"""
    from os.path import join, dirname, abspath
    return join(dirname(abspath(__file__)), 'support_files')
279382
def _get_mnist(directory):
  """"""
  for filename in [
      _MNIST_TRAIN_DATA_FILENAME, _MNIST_TRAIN_LABELS_FILENAME,
      _MNIST_TEST_DATA_FILENAME, _MNIST_TEST_LABELS_FILENAME
  ]:
    generator_utils.maybe_download(directory, filename, _MNIST_URL + filename)
283165
def construct_asset_path(self, asset_path, css_path, output_filename, variant=None):
        """"""
        public_path = self.absolute_path(asset_path, os.path.dirname(css_path).replace('\\', '/'))
        if self.embeddable(public_path, variant):
            return "__EMBED__%s" % public_path
        if not posixpath.isabs(asset_path):
            asset_path = self.relative_path(public_path, output_filename)
        return asset_path
815848
def on_train_end(self, **kwargs):
        ""
        if self.every=="improvement" and (self.learn.path/f'{self.learn.model_dir}/{self.name}.pth').is_file():
            self.learn.load(f'{self.name}', purge=False)
595872
def component_absolute_output_path(self, component_key):
        
        return ImpactReport.absolute_output_path(
            self.output_folder,
            self.metadata.components,
            component_key)