original_docstring: 
          Builds a neighbor-only Embedding object from the given JSON object.
          
docstring: Builds a neighbor-only Embedding object from the given JSON object.
docstring_tokens: Builds a neighbor - only Embedding object from the given JSON object .
code: def from_json(cls, data, label=None, parent=None):
          """
          Builds a neighbor-only Embedding object from the given JSON object.
          """
          format = data.get("_format", "expanded")
          if format != "neighbor_only":
              raise ValueError("Cannot load NeighborOnlyEmbedding from JSON with format '{}'".format(data))
          
          assert "neighbors" in data
          neighbors = Neighbors.from_json(data["neighbors"])
          metric = data.get("metric", "euclidean")
          n_neighbors = data.get("n_neighbors", 100)
          return cls(neighbors, label=label, metric=metric, n_neighbors=n_neighbors, parent=parent)
code_tokens: def from_json ( cls , data , label = None , parent = None ) : format = data . get ( "_format" , "expanded" ) if format != "neighbor_only" : raise ValueError ( "Cannot load NeighborOnlyEmbedding from JSON with format '{}'" . format ( data ) ) assert "neighbors" in data neighbors = Neighbors . from_json ( data [ "neighbors" ] ) metric = data . get ( "metric" , "euclidean" ) n_neighbors = data . get ( "n_neighbors" , 100 ) return cls ( neighbors , label = label , metric = metric , n_neighbors = n_neighbors , parent = parent )
short_docstring: Builds a neighbor-only Embedding object from the given JSON object.
short_docstring_tokens: Builds a neighbor - only Embedding object from the given JSON object .
comment: """
          Builds a neighbor-only Embedding object from the given JSON object.
          """