class_docstr: Fixed size vector of length 86 containing raw fractional elemental
  compositions in the compound. The 86 chosen elements are based on the
  original implementation at https://github.com/NU-CUCIS/ElemNet.
  
  Returns a vector containing fractional compositions of each element
  in the compound.
  
  References
  ----------
  .. [1] Jha, D., Ward, L., Paul, A. et al. Sci Rep 8, 17593 (2018).
      https://doi.org/10.1038/s41598-018-35934-y
  
  Examples
  --------
  >>> import deepchem as dc
  >>> comp = "Fe2O3"
  >>> featurizer = dc.feat.ElemNetFeaturizer()
  >>> features = featurizer.featurize([comp])
  >>> type(features[0])
  <class 'numpy.ndarray'>
  >>> features[0].shape
  (86,)
  >>> round(sum(features[0]))
  1
  
  Note
  ----
  This class requires Pymatgen to be installed.
docstr: Calculate 86 dimensional vector containing fractional compositions of
  each element in the compound.
  
  Parameters
  ----------
  datapoint: pymatgen.core.Composition object
      Composition object.
  
  Returns
  -------
  feats: np.ndarray
      86 dimensional vector containing fractional compositions of elements.
docstr_tok: ["Calculate","86","dimensional","vector","containing","fractional","compositions","of","each","element","in","the","compound",".","Parameters","--","--","--","--","--","datapoint",":","pymatgen.core.Composition","object","Composition","object",".","Returns","--","--","--","-","feats",":","np.ndarray","86","dimensional","vector","containing","fractional","compositions","of","elements","."]
code: def _featurize(
      self, datapoint: PymatgenComposition, **kwargs
  ) -> Optional[np.ndarray]:
      """
      Calculate 86 dimensional vector containing fractional compositions of
      each element in the compound.
  
      Parameters
      ----------
      datapoint: pymatgen.core.Composition object
          Composition object.
  
      Returns
      -------
      feats: np.ndarray
          86 dimensional vector containing fractional compositions of elements.
      """
      if "composition" in kwargs and datapoint is None:
          datapoint = kwargs.get("composition")
          raise DeprecationWarning(
              'Composition is being phased out as a parameter, please pass "datapoint" instead.'
          )
  
      fractions = datapoint.fractional_composition.get_el_amt_dict()
      return self.get_vector(fractions)
  
file_path: deepchem/deepchem/feat/material_featurizers/elemnet_featurizer.py
imports: import numpy
  from typing import DefaultDict, Optional
  from deepchem.utils.typing import PymatgenComposition
  from deepchem.feat import MaterialCompositionFeaturizer
label_desc: Use image node_id 2 for calling the ElemNetFeaturizer obj's underlying member method code with example usage: obj._featurize(datapoint) and returns: self