class_docstr: Feature importances with number of remaining non-zero features.
      
class_docstr_tok: ["Feature","importances","with","number","of","remaining","non-zero","features","."]
code: def from_names_values(cls, names, values, std=None, **kwargs):
      params = (
          zip(names, values) if std is None else zip(names, values, std)
      )
      importances = [FeatureWeight(*x) for x in params]  # type: ignore
      return cls(importances, **kwargs)
  
imports: from typing import Any, List, Tuple, Union, Optional
  import numpy
  from .base_utils import attrs
  from .formatters.features import FormattedFeatureName
label_desc: Use image node_id 2 for calling the FeatureImportances obj's underlying member method code with example usage: obj.from_names_values(cls, names, values, std) and returns: cls