purged the visualizer

This commit is contained in:
2019-12-15 22:17:46 -08:00
parent 24ca380cbf
commit 27a1beff70
5 changed files with 16 additions and 92 deletions

View File

@@ -7,7 +7,6 @@ from libc.stdlib cimport malloc, realloc
from libc.string cimport memcpy
import library as nn
import server as srv
tokenizers = {}
@@ -43,16 +42,6 @@ cdef public char *greeting():
return f'The value is {3**3**3}'.encode('utf-8')
cdef public void serve():
srv.serve()
cdef public void server_update(float *emb):
embeddings = np.asarray(<float[:getvocsize(),:getemb()]>emb)
low_dim = nn.calc_TSNE(embeddings)
srv.emb_map = dict(zip(nn.inv_vocab, low_dim))
cdef public size_t getwin():
return nn.WIN