Hi,
I was wondering if I can adapt the "OneClassGMM" class to train a GMM that uses the real and attack samples by modifying the "train_projector" method as follows:
def train_projector(self, training_features, projector_file):
# training_features[0] - training features for the REAL class.
real = convert_and_prepare_features(
training_features[0]) # output is array
# training_features[1] - training features for the ATTACK class.
attack = convert_and_prepare_features(training_features[1]) # output is array
# Train the DualClassGMM machine and get normalizers:
machine, features_mean, features_std = self.train_gmm(
real=real+attack,
n_components=self.n_components,
random_state=self.random_state)
# Save the GNN machine and normalizers:
self.save_gmm_machine_and_mean_std(projector_file, machine,
features_mean, features_std)
My idea is: first to uncomment the attack... line and to add a attack samples in the real code line (real = real + attack).
I would really appreciate any help in this matter.
Best,
Guillermo