Skip to content

C++ python type converstion  #835

@aamir-gmail

Description

@aamir-gmail

TypeError: Unable to convert function return value to a Python type! The signature was
(self: htm.bindings.encoders.RDSE, arg0: float) -> htm::SparseDistributedRepresentation.

I am running anaconda 3.7 ( I complied from sources ) by running setup.py , I am running ubuntu 20.04 LTS x64

here is the code

parameter1 = RDSE_Parameters()
parameter1.size = 160
parameter1.sparsity = 0.02
parameter1.resolution = 0.66
rsc1 = RDSE(parameter1)
for val in df['feature_class'].values.astype(np.int32):
rsc1.encode(val)
where val is integer 32 of ranhe 1 to 3

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