def METHOD_NAME(self):
    """
    Function to handle the ok button being clicked. Closes this
    window.
    :return: True when the window has closed.
    """
    file_path = QtWidgets.QFileDialog. \
        getExistingDirectory(self,
                             "Open Directory",
                             "",
                             QtWidgets.QFileDialog.ShowDirsOnly |
                             QtWidgets.QFileDialog.DontResolveSymlinks)
    if file_path:
        self.ml_model.save_ml_model(self.params, f'{file_path}/', self.scaling)