Skip to content

DataFrame references the missing class AIMissingCategory #251

Open

Description

@olekscode

This method requires pharo-ai to be loaded into the image
Which is strange because DataFrame should not depend on AI
So we need to check, maybe it's the method that was accidentally committed here

dataPreProcessingEncodeWith: anEncoder
	"This method is here to speed up pharo-ai/data-preprocessing algos without coupling both projects."

	| copy cache |
	copy := self copy.
	cache := IdentityDictionary new.
	self columns doWithIndex: [ :dataSerie :columnIndex |
		| category |
		category := cache at: columnIndex ifAbsentPut: [ ((anEncoder categories at: columnIndex) collectWithIndex: [ :elem :index | elem -> index ]) asDictionary ].
		dataSerie doWithIndex: [ :element :rowIndex |
			copy at: rowIndex at: columnIndex put: (category at: element ifAbsent: [ AIMissingCategory signalFor: element ]) ] ].

	^ copy

Activity

  1. jecisc commented on Jun 7, 2023

    @jecisc
    Member

    This is my fault indeed :)

    I'll add to my todo list to fix this.

  2. olekscode commented on Apr 23, 2024

    @olekscode
    MemberAuthor

    This method should be moved to https://github.com/pharo-ai/data-preprocessing and removed from this repository

  3. added a commit that references this issue on Apr 23, 2024
    93a8103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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