TopicNet icon indicating copy to clipboard operation
TopicNet copied to clipboard

Making-Decorrelation-and-Topic-Selection-Friends.ipynb Doesn't work in google colab from scratch

Open brothertook opened this issue 2 years ago • 0 comments

!pip install topicnet TopicNet in /usr/local/lib/python3.7/dist-packages (0.8.0) ` %%time

enable_hide_warnings()

models = decorrelating_cube(topic_model, dataset) # TODO: nice cube output?


To toggle on/off output_stderr, click here.

/usr/local/lib/python3.7/dist-packages/dill/_dill.py:1845: PicklingWarning: Cannot locate reference to <class '_ctypes.PyCFuncPtrType'>. warnings.warn('Cannot locate reference to %r.' % (obj,), PicklingWarning) /usr/local/lib/python3.7/dist-packages/dill/_dill.py:1847: PicklingWarning: Cannot pickle <class '_ctypes.PyCFuncPtrType'>: _ctypes.PyCFuncPtrType has recursive self-references that trigger a RecursionError. warnings.warn('Cannot pickle %r: %s.%s has recursive self-references that trigger a RecursionError.' % (obj, obj.module, obj_name), PicklingWarning) /usr/local/lib/python3.7/dist-packages/topicnet/cooking_machine/models/topic_model.py:427: UserWarning: Failed to save custom score "ActiveTopicNumberScore" correctly! Freezing score (saving only its value) f'Failed to save custom score "{score_object}" correctly! ' `

`enable_hide_warnings()

To toggle on/off output_stderr, click here.


TypeError Traceback (most recent call last)

in 2 3 best_model, DECORRELATION_TAU = select_best_model( ----> 4 topic_model.experiment, CRITERION, DECORRELATE_SPECIFIC 5 )

6 frames

/usr/local/lib/python3.7/dist-packages/topicnet/cooking_machine/models/scores_wrapper.py in add(self, score) 54 def add(self, score: Union[BaseScore, artm.scores.BaseScore]): 55 if isinstance(score, FrozenScore): ---> 56 raise TypeError('FrozenScore is not supposed to be added to model') 57 58 elif isinstance(score, BaseScore):

TypeError: FrozenScore is not supposed to be added to model

`

brothertook avatar Oct 14 '22 02:10 brothertook