Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer Learning Errors #1167

Open
FryLaurie opened this issue Jan 21, 2025 · 0 comments
Open

Transfer Learning Errors #1167

FryLaurie opened this issue Jan 21, 2025 · 0 comments
Assignees

Comments

@FryLaurie
Copy link

First, Transfer Learning documentation needs an update. It references

`
data = dp.Data("your_file.csv")

model_results = data_labeler.fit(x=data['samples'], y=data['labels'],
validation_split=0.2, epochs=2, labels=labels)
`

Accessing the dp.Data object directly isn't subscriptable - you need the data property of the BaseData child class to access the embedded dataframe.

eg:
data = dp.Data("your_file.csv") data_frame = data.data model_results = data_labeler.fit(x=data_frame['samples'], y=data_frame['labels'], validation_split=0.2, epochs=2, labels=labels)

Second, when running a transfer learning per documented process, the package returns the following error:

ValueError: The default_label of UNKNOWN must exist in the label mapping.

This makes sense when extending with a new label, but transfer learning doesn't work as documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants