update docstrings and random cleanups (#387)

* fixing docstrings and small nits; up to fileds

* finished adding and fixing docstrings
This commit is contained in:
evonneng authored and GitHub committed 2022-09-10 23:09:44 -07:00
1 parent bd5967461d
commit d50c71ac43
52 files changed
+846 -646

No files matched your search

+10 -6
View File
@@ -25,7 +25,11 @@ from nerfactory.datamanagers.structs import DatasetInputs
@dataclass
class DataParser:
"""A dataset."""
"""A dataset.
Args:
config: datasetparser config containing all information needed to instantiate dataset
"""
def __init__(self, config: cfg.DataParserConfig):
super().__init__()
@@ -33,23 +37,23 @@ class DataParser:
@abstractmethod
def _generate_dataset_inputs(self, split: str = "train") -> DatasetInputs:
"""Returns the dataset inputs for the given split.
"""Abstract method that returns the dataset inputs for the given split.
Args:
split: Which dataset split to generate.
split: Which dataset split to generate (train/test).
Returns:
DatasetInputs
DatasetInputs containing data for the specified dataset and split
"""
def get_dataset_inputs(self, split: str = "train") -> DatasetInputs:
"""Returns the dataset inputs for the given split.
Args:
split: Which dataset split to generate.
split: Which dataset split to generate (train/test).
Returns:
DatasetInputs
DatasetInputs containing data for the specified dataset and split
"""
dataset_inputs = self._generate_dataset_inputs(split)
return dataset_inputs