class_docstr: An abstact base class for sklearn classifier adapters for fasttext.
  
  Parameters
  ----------
  **kwargs
      Keyword arguments will be redirected to fasttext.train_supervised.
class_docstr_tok: ["An","abstact","base","class","for","sklearn","classifier","adapters","for","fasttext",".","Parameters","--","--","--","--","--","*","*","kwargs","Keyword","arguments","will","be","redirected","to","fasttext.train_supervised","."]
code: def _predict(self, X, k=1):
      # Ensure that fit had been called
      if self.model is None:
          raise NotFittedError(
              "This {} instance is not fitted yet.".format(
                  self.__class__.__name__
              )
          )
  
      # Input validation{
      self._validate_x(X)
      return self._predict_on_str_arr(self._input_col(X), k=k)
  
imports: import os
  import abc
  import numpy
  from fasttext import train_supervised
  from sklearn.base import BaseEstimator, ClassifierMixin
  from sklearn.utils.multiclass import unique_labels
  from sklearn.exceptions import NotFittedError
  from .util import temp_dataset_fpath, dump_xy_to_fasttext_format, python_fasttext_model_to_bytes, bytes_to_python_fasttext_model
label_desc: Use image node_id 12 for calling the FtClassifierABC obj's underlying member method code with example usage: obj._predict(X, k) and returns: self