def write_uai(self, filename):
        writer = self.__str__()
        with open(filename, 'w') as fout:
            fout.write(writer)
Write the xml data into the file.
dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/readwrite/UAI.py/UAIWriter.write_uai