Skip to content

Issues running spectralis example #6

Description

@jamc1996

Hello,

I'm trying to run the spectralis example but I encountered some problems.

First when I followed the README instructions I couldn't run spectralis with error message:

RuntimeError: The grpc package installed is at version 1.62.3, but the generated code in grpc_service_pb2_grpc.py depends on grpcio>=1.66.1. Please upgrade your grpc module to grpcio>=1.66.1 or downgrade your generated code using grpcio-tools<=1.62.3.

I couldn't downgrade successfully so I created an environment with python 3.8 instead of python 3.7 which solved that problem but led to the following error when spectralis loads the model:

ValueError: node array from the pickle has an incompatible dtype:
- expected: {'names': ['left_child', 'right_child', 'feature', 'threshold', 'impurity', 'n_node_samples', 'weighted_n_node_samples', 'missing_go_to_left'], 'formats': ['<i8', '<i8', '<i8', '<f8', '<f8', '<i8', '<f8', 'u1'], 'offsets': [0, 8, 16, 24, 32, 40, 48, 56], 'itemsize': 64}
- got     : [('left_child', '<i8'), ('right_child', '<i8'), ('feature', '<i8'), ('threshold', '<f8'), ('impurity', '<f8'), ('n_node_samples', '<i8'), ('weighted_n_node_samples', '<f8')]

Thanks for your help in advance!

Best wishes,
John.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions