photometric_database.cube_database¶
Code for representing a dataset of TESS data cubes for binary classification.
Module Contents¶
-
class
CubeDatabase(positive_data_directory: str, negative_data_directory: str, positive_to_negative_data_ratio: float = None)[source]¶ A representing a dataset of TESS data cubes for binary classification.
-
__init__(self, positive_data_directory: str, negative_data_directory: str, positive_to_negative_data_ratio: float = None)[source]¶
-
load_and_preprocess_numpy_file(self, file_path: tf.Tensor, label: int)[source]¶ Loads numpy files from the tensor alongside labels.
-
static
augment_cube(cube: np.ndarray)[source]¶ Augments the data with random rotations and flipping.
-