Skip to content

Enhancement Request, Display Int values in print statement, cast int values to GP process #13

Closed
@mpearmain

Description

@mpearmain

Is it possible to have a better method print to int values?
(Even better to be able to cast them to the GP as ints)

Simple example, with Random Forests:

RFC(n_estimators=int(n_estimators),
        min_samples_split=int(min_samples_split),
        max_features=min(max_features, 0.999),
        random_state=2)

When running it may print out:
n_estimators = 10.3456, min_samples_split = 2.35643, max_features=0.99

I would expect it to print out:
n_estimators = 10, min_samples_split = 2, max_features=0.99

Going deeper, because its floats that have been passed, it may search the 'same' space again:

n_estimators = 10.3456, min_samples_split = 2.35643, max_features=0.99
n_estimators = 10.6334, min_samples_split = 2.12329, max_features=0.99

It seems rather wasteful to search int spaces.

I say this with no idea on how this affects the underlying GP process that is being called

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions