Automatminer custom pipeline with using AngularFourierSeries

I’ve been using automatminer recently and I find it very useful. When I’m in use the following function for
Automatminer custom pipeline.

class matminer.featurizers.site. AngularFourierSeries ( bins , cutoff=10.0 )

I don’t know how to define bins and their format. Could someone help me with this, thanks

My source code is as follows:
from matminer.featurizers.composition import ElementFraction
from matminer.featurizers.structure import SiteStatsFingerprint
from matminer.featurizers.site import CrystalNNFingerprint
from automatminer import get_preset_config, TPOTAdaptor, MatPipe
from xgboost import XGBRegressor, XGBClassifier
from matminer.featurizers.utils.grdf import Cosine

from automatminer import AutoFeaturizer, FeatureReducer, DataCleaner,
SinglePipelineAdaptor

autofeaturizer = AutoFeaturizer(featurizers={“structure”:[SiteStatsFingerprint(AngularFourierSeries())]})
cleaner = DataCleaner(max_na_frac=0.05)
reducer = FeatureReducer(reducers=(“corr”,))
learner = SinglePipelineAdaptor(classifier=XGBClassifier(n_estimators=500),
regressor=XGBRegressor(n_estimators=500))

Make a matpipe

pipe = MatPipe(
autofeaturizer=autofeaturizer,
cleaner=cleaner,
reducer=reducer,
learner=learner
)

Hey there,

You should use the from_preset classmethod of AngularFourierSeries.

Thanks,
Alex

Hi Alex,

thanks for the suggestion,which solved my problem. Wish you good health and all the best.