sourced.ml.core.models.model_converters.base¶
Module Contents¶
-
class
sourced.ml.core.models.model_converters.base.Model2Base(num_processes: int = 0, log_level: int = logging.DEBUG, overwrite_existing: bool = True)[source]¶ Bases:
sourced.ml.core.utils.pickleable_logger.PickleableLoggerBase class for model -> model conversions.
-
convert(self, models_path: List[str], destdir: str)[source]¶ Performs the model -> model conversion. Runs the conversions in a pool of processes.
Parameters: - models_path – List of Models path.
- destdir – The directory where to store the models. The directory structure is preserved.
Returns: The number of converted files.
-