Transpile the predict method.

        Parameters
        ----------
        :param temp_type : string
            The kind of export type (embedded, separated, exported).

        Returns
        -------
        :return : string
            The transpiled predict method as string.

def predict(self, temp_type='separated'):
        """
        Transpile the predict method.

        Parameters
        ----------
        :param temp_type : string
            The kind of export type (embedded, separated, exported).

        Returns
        -------
        :return : string
            The transpiled predict method as string.
        """
        if temp_type == 'exported':
            exported_temp = self.temp('exported.class')
            return exported_temp.format(class_name=self.class_name,
                                        method_name=self.method_name,
                                        n_features=self.n_features)

        if temp_type == 'separated':
            separated_temp = self.temp('separated.class')
            return separated_temp.format(**self.__dict__)

        if temp_type == 'embedded':
            n_indents = 1 if self.target_language in ['java', 'js',
                                                      'php', 'ruby'] else 0
            branches = self.indent(self.create_tree(), n_indents=1)
            embedded_temp = self.temp('embedded.method', n_indents=n_indents,
                                      skipping=True)
            method = embedded_temp.format(class_name=self.class_name,
                                          method_name=self.method_name,
                                          n_classes=self.n_classes,
                                          n_features=self.n_features,
                                          branches=branches)
            embedded_temp = self.temp('embedded.class')
            return embedded_temp.format(class_name=self.class_name,
                                        method_name=self.method_name,
                                        n_classes=self.n_classes,
                                        n_features=self.n_features,
                                        method=method)