You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from niaaml.preprocessing.feature_selection import SelectKBest
from niaaml.preprocessing.feature_transform import Normalizer
"""
This example presents how to export a pipeline object into a text file in a user-friendly form. A text file cannot be loaded back into a Python program in
the form of a Pipeline object.
"""
# instantiate a Pipeline object with AdaBoost classifier, SelectKBest feature selection algorithm and Normalizer as feature transformation algorithm
pipeline = Pipeline(
feature_selection_algorithm=SelectKBest(),
feature_transform_algorithm=Normalizer(),
classifier=AdaBoost(),
)
# export the object to a file in a user-friendly form