dlpy.model.Model.change_labels

Model.change_labels(label_file, id_column, label_column)

Overrides the labels already in the model

The label_file should be a csv file that has two columns: 1) id column that contains ids starting from 0 and 2) label column that contains the labels. This file should also have header columns and those should be passed to this function (i.e., id_column and label_column)

Parameters:
label_file : string

Specifies the name of the file that contains the new labels.

id_column : string

Specifies the name of the id column in label_file.

label_column : string

Specifies the name of the label column in label file.