Data Augmentation
Data Augmentation
We have azimuthal symmetry within our data, that is, if we rotate the data about the z (beam) axis, the result conserves the physics. We can then "create" copies of any event by rotating it around beam axis by random angles between [0,2π].
Bases: BaseEstimator, TransformerMixin
Parameters
target_size: (int) Which is the number of point of the second dimension
Return
augmented_data: (np.array) Increased shape of array by the number of augmented events for class 3 and 4
Source code in scripts/ml_preprocessing_steps.py
transform(X, y=None)
Adding more data by creating copies with azimuthal symmetry around z-axis
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
X
|
array
|
data array |
required |
y
|
None
|
Defaults to None |
None
|
Returns:
| Type | Description |
|---|---|
array
|
augmented data array |