docstr: Returns the mean and variance of all instances as features.
docstr_tok: ["Returns","the","mean","and","variance","of","all","instances","as","features","."]
code: def get_instance_features(self) -> dict[str, list[int | float]]:
      """Returns the mean and variance of all instances as features."""
      features = {}
      for instance in self.get_instances():
          data, _ = self.get_instance_data(instance)
          features[instance] = [np.mean(data), np.var(data)]
  
      return features
  
file_path: SMAC3/examples/2_multi_fidelity/2_sgd_datasets.py
imports: from __future__ import annotations
  import itertools
  import warnings
  import numpy
  from ConfigSpace import Categorical, Configuration, ConfigurationSpace, Float
  from sklearn import datasets
  from sklearn.linear_model import SGDClassifier
  from sklearn.model_selection import StratifiedKFold, cross_val_score
  from smac import MultiFidelityFacade
  from smac import Scenario
label_desc: Use image node_id 3 for calling the DigitsDataset obj's underlying member method code with example usage: obj.get_instance_features() and returns: features