def get_bottleneck_values(self, model):
    bottleneck = model.get_layer('conv1d_5')
    extractor = Model(inputs=model.inputs, outputs=[bottleneck.output])
    features = extractor(self.X_test)
    features = np.squeeze(features, axis=2)
    df_source_info_test = pd.DataFrame({'class': self.df_source_info.iloc[self.i_test]['class'].values})
    print(f'df_source_info_test = {df_source_info_test}')
    df = pd.DataFrame(features)
    df = df.join(df_source_info_test)
    print(f'df = {df}')
    sns.set(style='ticks', color_codes=True)
    sns.pairplot(df, hue='class')
    plt.savefig('plots/autoencoder_pairplot', dpi=100)
def get_bottleneck_values(self, model):
    bottleneck = model.get_layer('conv1d_5')
    extractor = Model(inputs=model.inputs, outputs=[bottleneck.output])
    features = extractor(self.X_test)
    features = np.squeeze(features, axis=2)
    df_source_info_test = pd.DataFrame({'class': self.df_source_info.iloc[self.i_test]['class'].values})
    print(f'df_source_info_test = {df_source_info_test}')
    df = pd.DataFrame(features)
    df = df.join(df_source_info_test)
    print(f'df = {df}')
    sns.set(style='ticks', color_codes=True)
    sns.pairplot(df, hue='class')
    plt.savefig('plots/autoencoder_pairplot', dpi=100)