Visualize ontology entities
mOWL TSNE
- class mowl.visualization.base.TSNE(embeddings, labels, entities=None)
Bases:
Visualizer
Wrapper for
sklearn.manifold.TSNE
- Parameters
embeddings (dict or
gensim.models.keyedvectors.KeyedVectors
) – Embeddings dictionarylabels (dict of {str: str}) – Dictionary containing label information of the entities
entities (list of str) – List of entities to consider for computing the TSNE. If None, then all the entitites in the embeddings dictionary will be considered.