Skip to content
Permalink
Browse files

Merge branch 'develop' of github.com:Accenture/AmpliGraph into develop

  • Loading branch information...
lukostaz committed Apr 18, 2019
2 parents 75cf6cb + b9baab7 commit ca153a2100b4f8554acbe2b9d9135335eb52583b
Showing with 13 additions and 1 deletion.
  1. +12 −0 ampligraph/utils/model_utils.py
  2. +1 −1 docs/ampligraph.utils.rst
@@ -143,6 +143,18 @@ def restore_model(model_name_path=None):
def create_tensorboard_visualizations(model, loc, labels=None):
""" Create Tensorboard visualization files.
Note: this will create all the files required by Tensorboard to visualize embeddings,
but you must run Tensorboard yourself.
Examples
--------
>>> from ampligraph.utils import create_tensorboard_visualizations, restore_model
>>> import numpy as np
>>> example_name = 'helloworld.pkl'
>>> restored_model = restore_model(model_name_path = example_name)
>>> output_path = 'model_tensorboard/'
>>> create_tensorboard_visualizations(restored_model, output_path)
Parameters
----------
model: EmbeddingModel
@@ -22,7 +22,7 @@ Models can be saved and restored from disk. This is useful to avoid re-training
Visualization
-------------

Functions to visualize embeddings.
Functions to visualize embeddings.

.. autosummary::
:toctree: generated

0 comments on commit ca153a2

Please sign in to comment.
You can’t perform that action at this time.