spark

spark, function

def pure spark(r: ranvar): text
def pure spark(e: embedding): text

Returns a compact text visualization of the ranvar or embedding.

Example

table T = with
  [| as Lambda |]
  [| 1 |]
  [| 2 |]
  [| 5 |]
  [| 10 |]

T.S = spark(poisson(T.Lambda))

show table "Spark" with
  T.Lambda
  T.S

This outputs the following table:

Lambda S
1 0██▅▂▁▁▁▁▁▁▁▁▁▁▁▁15
2 0▅██▆▃▂▁▁▁▁▁▁▁▁▁▁15
5 0▁▆█▆▃▁▁▁▁▁▁▁▁▁▁▁31
10 0▁▁▂▆██▆▃▂▁▁▁▁▁▁▁31

Embedding example

e = embedding("blue cotton shirt")
show scalar "Embedding spark" with spark(e)
User Contributed Notes
0 notes + add a note