Use the reset_labels() method to reset all labels for the feature group.
There are no parameters for this function.
Example setup
>>> from teradataml import DataSource, Entity, Feature, FeatureGroup, load_example_data
>>> load_example_data("dataframe", "admissions_train")
Example: Reset all labels in the feature group
Create a DataFrame.
>>> df = DataFrame("admissions_train")
Create the features.
>>> masters_feature = Feature("masters", df.masters)
>>> gpa_feature = Feature("gpa", df.gpa)
>>> stats_feature = Feature("stats", df.stats)
>>> admitted_feature = Feature("admitted", df.admitted)
Create an entity.
>>> entity = Entity("id", df.id)
Create a data source.
>>> data_source = DataSource("admissions_source", df)
Create a feature group.
>>> fg = FeatureGroup('Admissions',
... features=[masters_feature, gpa_feature, stats_feature, admitted_feature],
... entity=entity,
... data_source=data_source)
Set the 'admitted' feature as label.
>>> fg.set_labels('admitted')
True
Remove the labels from the feature group.
>>> fg.reset_labels()
True
Get the labels from the feature group.
>>> fg.labels
[]