Skip to content

'RuntimeWarning: Mean of empty slice' during metafeature calculation #819

Closed
@RitterHannah

Description

@RitterHannah

Hello,

When building my own metafeatures using the scripts provided, the following warnings appear during 03_calculate_metafeatures:

[Memory] Calling __main__--WORKINGDIR-03_calculate_metafeatures.calculate_metafeatures...
calculate_metafeatures(254)
254
/home/XXX/.local/lib/python3.6/site-packages/numpy/lib/nanfunctions.py:1667: RuntimeWarning: Degrees of freedom <= 0 for slice.
  keepdims=keepdims)
/home/XXX/.local/lib/python3.6/site-packages/autosklearn/metalearning/metafeatures/metafeatures.py:437: RuntimeWarning: Mean of empty slice
  mean = np.nanmean(values)

Is this something to worry about or can it be ignored?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementA new improvement or feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions