Module topicnet.cooking_machine.models

Models and scores

Availiable models:


Availiable scores:


Internal model structure

main model attributes:

main model methods:


What do you need to create your own model?

Following this steps you should be able to code a model integrated with the library methods:

  1. New model class is inherrited from BaseModel

  2. A child class should contain methods __init__, _fit, get_phi, get_theta, save, load, clone, get_jsonable_from_parameters.

Expand source code
from .base_model import BaseModel
from .topic_model import TopicModel
from .dummy_topic_model import DummyTopicModel

from .base_score import BaseScore
from .example_score import ScoreExample
from .intratext_coherence_score import IntratextCoherenceScore

SUPPORTED_MODEL_CLASSES = (
    TopicModel,
)

Sub-modules

topicnet.cooking_machine.models.base_model
topicnet.cooking_machine.models.base_regularizer
topicnet.cooking_machine.models.base_score
topicnet.cooking_machine.models.blei_lafferty_score
topicnet.cooking_machine.models.dummy_topic_model
topicnet.cooking_machine.models.example_score
topicnet.cooking_machine.models.frozen_score
topicnet.cooking_machine.models.intratext_coherence_score
topicnet.cooking_machine.models.scores
topicnet.cooking_machine.models.scores_wrapper
topicnet.cooking_machine.models.semantic_radius_score
topicnet.cooking_machine.models.thetaless_regularizer
topicnet.cooking_machine.models.topic_model
topicnet.cooking_machine.models.topic_prior_regularizer