About the function of 'Featurize_many' via Spyder IDE

I put in the enteries(composition objects) to calculate. No error report, but it runs whole night and nothing return. The interactive window give the tips: HBox(children=(FloatProgress(value=0.0, description=‘MultipleFeaturizer’, max=2.0, style=ProgressStyle(descrip…

Could you please helo me to check the problem with this test code via python?

import re, numpy as np, os, sys, pandas
from pymatgen import Composition
from pymatgen.core.composition import Composition
import data_utils
import magpie
from matminer.featurizers.base import MultipleFeaturizer
from matminer.featurizers import composition as cf
from matminer.utils.conversions import str_to_composition
from sklearn.model_selection import train_test_split
from sklearn.model_selection import KFold
import pandas as pd

comp=Composition(“Fe2O3”)
comp2=Composition(“NaCl”)
entries=list([comp,comp2])

feature_calculators = MultipleFeaturizer([cf.IonProperty(fast=True),cf.Stoichiometry()],iterate_over_entries=True,)

feature_calculators.featurize_many(entries, ignore_errors=True, return_errors=True,
pbar=True)

Hi,

I tried running your code (I had to change it slightly as I don’t have the data_utils package installed), however, the code ran absolutely fine.

The code I ran was:

from pymatgen.core.composition import Composition
from matminer.featurizers.base import MultipleFeaturizer
from matminer.featurizers import composition as cf

comp = Composition("Fe2O3")
comp2 = Composition("NaCl")
entries = list([comp, comp2])

feature_calculators = MultipleFeaturizer([cf.IonProperty(fast=True),cf.Stoichiometry()],iterate_over_entries=True,)

feature_calculators.featurize_many(entries, ignore_errors=True, return_errors=True, pbar=True)

And the output was:

[[True,
  0.47692216400686216,
  0.11446131936164691,
  nan,
  2,
  0.7211102550927979,
  0.6542132620377179,
  0.6150303314869644,
  0.6048951994087753,
  0.6010324601930125,
  nan],
 [True,
  0.7115475428918885,
  0.17788688572297212,
  nan,
  2,
  0.7071067811865476,
  0.6299605249474366,
  0.5743491774985174,
  0.5520447568369062,
  0.5358867312681466,
  nan]]

The code took approximately 10 seconds to run.

Best,
Alex