def load_encoder(encoder_file: Path):
     encoder = DatasetEncoder.load_encoder(encoder_file)
     encoder.relevant_indices_path = DatasetEncoder.load_attribute(
         encoder, encoder_file, "relevant_indices_path")
     encoder.relevant_sequence_csv_path = DatasetEncoder.load_attribute(
         encoder, encoder_file, "relevant_sequence_csv_path")
     return encoder
 def load_encoder(encoder_file: Path):
     encoder = DatasetEncoder.load_encoder(encoder_file)
     encoder.relevant_indices_path = DatasetEncoder.load_attribute(
         encoder, encoder_file, "relevant_indices_path")
     encoder.comparison_data = UtilIO.import_comparison_data(
         encoder_file.parent)
     return encoder
Example #3
0
 def export_encoder(path: Path, encoder) -> Path:
     encoder_file = DatasetEncoder.store_encoder(encoder,
                                                 path / "encoder.pickle")
     return encoder_file
 def load_encoder(encoder_file: Path):
     encoder = DatasetEncoder.load_encoder(encoder_file)
     for attribute in ["scaler_path", "vectorizer_path"]:
         encoder = DatasetEncoder.load_attribute(encoder, encoder_file,
                                                 attribute)
     return encoder
Example #5
0
 def load_encoder(encoder_file: Path):
     encoder = DatasetEncoder.load_encoder(encoder_file)
     encoder = DatasetEncoder.load_attribute(encoder, encoder_file,
                                             "model_path")
     return encoder
Example #6
0
 def export_encoder(path: Path, encoder) -> Path:
     encoder_file = DatasetEncoder.store_encoder(encoder, path / "encoder.pickle")
     UtilIO.export_comparison_data(encoder.comparison_data, path)
     return encoder_file
Example #7
0
 def load_encoder(encoder_file: Path):
     encoder = DatasetEncoder.load_encoder(encoder_file)
     encoder.comparison = UtilIO.import_comparison_data(encoder_file.parent)
     return encoder
Example #8
0
 def load_encoder(encoder_file: Path):
     encoder = DatasetEncoder.load_encoder(encoder_file)
     return encoder