def load(filename, multiprocessing=False, n_proc=None): """ A static method for loading a saved LdaCgsMulti model. :param filename: Name of a saved model to be loaded. :type filename: string :returns: m : LdaCgsMulti object :See Also: :class:`numpy.load` """ if multiprocessing and platform.system() != 'Windows': return load_lda(filename, LdaCgsMulti) else: if platform.system() == 'Windows': warnings.warn("""Multiprocessing is not implemented on Windows. Defaulting to sequential algorithm.""", RuntimeWarning) return load_lda(filename, LdaCgsSeq)
def load(filename): """ A static method for loading a saved LdaCgsMulti model. :param filename: Name of a saved model to be loaded. :type filename: string :returns: m : LdaCgsMulti object :See Also: :class:`numpy.load` """ if platform.system() == 'Windows': raise NotImplementedError("""LdaCgsMulti is not implemented on Windows. Please use LdaCgsSeq.""") return load_lda(filename, LdaCgsMulti)
def load(filename): return load_lda(filename, LdaCgsSeq)