Skip to content

instance_key as categorical in PointsModel #160

Description

@giovp

Unrelated to the above but related to instance_key. I think that the column specified by instance_key should never be categorical, so we should remove this line:

if not is_categorical_dtype(data[instance_key]):

Originally posted by @LucaMarconato in #158 (comment)

Activity

  1. giovp commented on Feb 28, 2023

    @giovp
    MemberAuthor

    so in this case, instance_key refers to points, not shapes. I agree it's debatable on whether we want to have it categorical. I think it might make sense in e.g. few regions but many points. I think few can be order of thousands of regions (and millions of points). wdyt? @LucaMarconato

  2. LucaMarconato commented on Feb 28, 2023

    @LucaMarconato
    Member

    Ah you are right! I had confused points and circles (have been working with napari today and they use the same name). It should be categorical I agree.

  3. locked and limited conversation to collaborators on Feb 28, 2023
  4. converted this issue into a discussion #161 on Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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