mowl.visualization
mOWL TSNE
- class mowl.visualization.base.TSNE(embeddings, labels, entities=None)[source]
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.
- generate_points(epochs, workers=1, verbose=0)[source]
This method will call the
sklearn.manifold.TSNE.fit_transform()
method to generate the points for the plot.