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

Custom needs more custom handling #90

Open
Alvant opened this issue Apr 24, 2023 · 1 comment
Open

Custom needs more custom handling #90

Alvant opened this issue Apr 24, 2023 · 1 comment
Assignees

Comments

@Alvant
Copy link
Collaborator

Alvant commented Apr 24, 2023

What is the problem

There is an error if one uses custom regularizers:

# Create some custom regularizer
# regularizer = ...

topic_model._fit(
    dataset.get_batch_vectorizer(),
    num_iterations=10,
    custom_regularizers={
        regularizer.name: regularizer
    },
)

image

image
...
image

How to fix

In the file ~/lib/miniconda3/envs/topicnet/lib/python3.8/site-packages/topicnet/cooking_machine/models/topic_model.py:289, wrap meta stuff in list:

attached_rwt = pd.DataFrame(data=nd_array, columns=list(meta.topic_name), index=list(meta.token))

Environment

topicnet==0.8.0
pandas==2.0.0
protobuf==3.20.3
@Alvant
Copy link
Collaborator Author

Alvant commented Jul 14, 2024

Fixing PR: #98

@Alvant Alvant self-assigned this Jul 14, 2024
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

1 participant