Skip to content

refit in Python does not support weights #3038

@jtilly

Description

@jtilly

Summary

The refit method in Python does not support weights (or in fact anything other than data and labels). This is because here, the training data set gets created using:

train_set = Dataset(data, label, silent=True)

It would be great if refit accepted additional arguments (or kwargs) specifically for the Dataset call.

Passing in the train_set directly would also be an option. But since we need to predict first, we would also need to pass the training data in as data frame, which is not so nice.

Motivation

I'm using re-fit in an application where weights are very important.

I'm happy to open a PR if this sounds useful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions