Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Custom needs more custom handling #90

@Alvant

Description

@Alvant

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

Metadata

Metadata

Assignees

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