def export_coreml(self, filename):
        """
        Export the model in Core ML format.

        Parameters
        ----------
        filename: str
          A valid filename where the model can be saved.

        Examples
        --------
        >>> model.export_coreml("MyModel.mlmodel")
        """
        from turicreate.extensions import _linear_regression_export_as_model_asset
        from turicreate.toolkits import _coreml_utils
        display_name = "linear regression"
        short_description = _coreml_utils._mlmodel_short_description(display_name)
        context = {"class": self.__class__.__name__,
                   "version": _turicreate.__version__,
                   "short_description": short_description,
                   'user_defined':{
                    'turicreate_version': _turicreate.__version__
                   }
                  }
        _linear_regression_export_as_model_asset(self.__proxy__, filename, context)