-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
336 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
class Augmentor(): | ||
"""Class used to augment a dataset. | ||
This class takes :class:`AstronomicalObject`s as input and generates new | ||
:class:`AstronomicalObject`s with the following transformations applied: | ||
- Drop random observations. | ||
- Drop large blocks of observations. | ||
- For galactic observations, adjust the brightness (= distance). | ||
- For extragalactic observations, adjust the redshift. | ||
- Add noise. | ||
The augmentor needs to have some reasonable idea of the properties of the | ||
survey that it is being applied to. If there is a large dataset that the | ||
classifier will be used on, then that dataset can be used directly to | ||
estimate the properties of the survey. | ||
This class needs to be subclassed to implement survey specific methods. | ||
These methods are: | ||
- TODO | ||
""" | ||
def __init__(self): | ||
pass | ||
|
||
def augment_metadata(self, reference_object): | ||
"""Generate new metadata for the augmented object. | ||
This method needs to be implemented in survey-specific subclasses of | ||
this class. | ||
Parameters | ||
========== | ||
reference_object : :class:`AstronomicalObject` | ||
The object to use as a reference for the augmentation. | ||
Returns | ||
======= | ||
augmented_metadata : dict | ||
The augmented metadata | ||
""" | ||
return NotImplementedError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.