ramjet.basic_models¶
Code for network architectures.
Module Contents¶
Classes¶
SanityCheckNetwork() |
A network consisting of a single fully connected layer. |
SimpleCubeCnn() |
A simple 3D CNN for TESS data cubes. |
SimpleLightcurveCnn() |
A simple 1D CNN for lightcurves. |
SimpleFfiLightcurveCnn() |
A simple 1D CNN for FFI lightcurves. |
SmallFfiLightcurveCnn() |
A simple 1D CNN for FFI lightcurves. |
SimpleLightcurveLstm() |
A simple LSTM model for lightcurves. |
SimpleLightcurveCnnPerTimeStepLabel() |
A simple 1D CNN for lightcurves. |
Conv1DTranspose(filters, kernel_size, strides=1, *args, **kwargs) |
A 1D transposed convolutional layer. |
ConvolutionalLstm() |
A convolutional LSTM network. |
ConvolutionalLstmMeanFinal() |
A simple convolutional LSTM that does not reduce to a final value, but instead takes the average of the final |
SimpleLightcurveCnnWithLstmLayers() |
A simple 1D CNN for lightcurves. |
ResnetBlock1D(layers: int, channels: int, kernel_size: int, strides=2) |
A 1D ResNet block. |
SimpleLightcurveCnnWithSkipConnections() |
A simple 1D CNN for lightcurves. |
HalfDepthSimpleLightcurveCnn() |
A simple 1D CNN for lightcurves. |
QuarterDepthSimpleLightcurveCnn() |
A simple 1D CNN for lightcurves. |
DoubleDepthSimpleLightcurveCnn() |
A simple 1D CNN for lightcurves. |
MiniDepthSimpleLightcurveCnn() |
A simple 1D CNN for lightcurves. |
ConvolutionPoolingBatchNormalizationBlock(filters: int, kernel_size: int, pooling_size: int) |
A block containing a convolution, then a max pooling, then a batch normalization. |
SimplePoolingLightcurveCnn() |
A simple CNN using max pooling to reduce the time dimension. |
SimplePoolingLightcurveCnn2() |
A simple CNN using max pooling to reduce the time dimension. |
FfiSimplePoolingLightcurveCnn2() |
A simple CNN using max pooling to reduce the time dimension. |
-
class
SanityCheckNetwork[source]¶ Bases:
tensorflow.keras.SequentialA network consisting of a single fully connected layer.
-
class
SimpleCubeCnn[source]¶ Bases:
tensorflow.keras.SequentialA simple 3D CNN for TESS data cubes.
-
class
SimpleFfiLightcurveCnn[source]¶ Bases:
tensorflow.keras.ModelA simple 1D CNN for FFI lightcurves.
-
class
SmallFfiLightcurveCnn[source]¶ Bases:
tensorflow.keras.ModelA simple 1D CNN for FFI lightcurves.
-
class
SimpleLightcurveLstm[source]¶ Bases:
tensorflow.keras.ModelA simple LSTM model for lightcurves.
-
class
SimpleLightcurveCnnPerTimeStepLabel[source]¶ Bases:
tensorflow.keras.ModelA simple 1D CNN for lightcurves.
-
class
Conv1DTranspose(filters, kernel_size, strides=1, *args, **kwargs)[source]¶ Bases:
tensorflow.keras.layers.LayerA 1D transposed convolutional layer.
-
__init__(self, filters, kernel_size, strides=1, *args, **kwargs)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
build(self, input_shape)[source]¶ Builds the layer.
Parameters: input_shape – The input tensor shape.
-
-
class
ConvolutionalLstmMeanFinal[source]¶ Bases:
tensorflow.keras.ModelA simple convolutional LSTM that does not reduce to a final value, but instead takes the average of the final outputs.
-
class
SimpleLightcurveCnnWithLstmLayers[source]¶ Bases:
tensorflow.keras.ModelA simple 1D CNN for lightcurves.
-
class
ResnetBlock1D(layers: int, channels: int, kernel_size: int, strides=2)[source]¶ Bases:
tensorflow.keras.layers.LayerA 1D ResNet block.
-
class
SimpleLightcurveCnnWithSkipConnections[source]¶ Bases:
tensorflow.keras.ModelA simple 1D CNN for lightcurves.
-
class
HalfDepthSimpleLightcurveCnn[source]¶ Bases:
tensorflow.keras.ModelA simple 1D CNN for lightcurves.
-
class
QuarterDepthSimpleLightcurveCnn[source]¶ Bases:
tensorflow.keras.ModelA simple 1D CNN for lightcurves.
-
class
DoubleDepthSimpleLightcurveCnn[source]¶ Bases:
tensorflow.keras.ModelA simple 1D CNN for lightcurves.
-
class
MiniDepthSimpleLightcurveCnn[source]¶ Bases:
tensorflow.keras.ModelA simple 1D CNN for lightcurves.
-
class
ConvolutionPoolingBatchNormalizationBlock(filters: int, kernel_size: int, pooling_size: int)[source]¶ Bases:
tensorflow.keras.layers.LayerA block containing a convolution, then a max pooling, then a batch normalization.
-
class
SimplePoolingLightcurveCnn[source]¶ Bases:
tensorflow.keras.ModelA simple CNN using max pooling to reduce the time dimension.
-
class
SimplePoolingLightcurveCnn2[source]¶ Bases:
tensorflow.keras.ModelA simple CNN using max pooling to reduce the time dimension.