Next tuesday 25th january around 21.30 we'll be upgrading to GitLab version 14.7

Commit 9353b768 authored by Kruyff,D.L.W. (Dylan)'s avatar Kruyff,D.L.W. (Dylan)
Browse files

Added lsh to git + more documentation

parent 33ad2457
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</div> </div>
</div> </div>
<div class="button-holder"> <div class="button-holder">
<button *ngIf="show" (click)="updateQuery()" class="train-button">Query</button> <!-- <button *ngIf="show" (click)="updateQuery()" class="train-button">Query</button>-->
<button *ngIf="show" (click)="train()" class="train-button">Train</button> <button *ngIf="show" (click)="train()" class="train-button">Train</button>
</div> </div>
</div> </div>
......
...@@ -28,7 +28,7 @@ export class OverviewWindowComponent implements OnInit { ...@@ -28,7 +28,7 @@ export class OverviewWindowComponent implements OnInit {
async initializePlot() { async initializePlot() {
this.state.queryWindow = undefined; this.state.queryWindow = undefined;
this.debugClicked(); // this.debugClicked();
this.data = []; this.data = [];
for (let i = 0; i < this.state.rawData.values.length; i++) { for (let i = 0; i < this.state.rawData.values.length; i++) {
this.data.push([this.state.rawData.index[i], this.state.rawData.values[i]]); this.data.push([this.state.rawData.index[i], this.state.rawData.values[i]]);
...@@ -155,6 +155,8 @@ export class OverviewWindowComponent implements OnInit { ...@@ -155,6 +155,8 @@ export class OverviewWindowComponent implements OnInit {
return; return;
} }
this.state.querySelectionMode = false; this.state.querySelectionMode = false;
await this.debugClicked();
return;
const xyInformation = zingchart.exec('zingchart-ng-1', 'getxyinfo', { const xyInformation = zingchart.exec('zingchart-ng-1', 'getxyinfo', {
x: clickData.x, x: clickData.x,
y: clickData.y y: clickData.y
......
...@@ -12,8 +12,8 @@ export class TableOverviewComponent implements OnInit { ...@@ -12,8 +12,8 @@ export class TableOverviewComponent implements OnInit {
constructor(private state: StateService) { } constructor(private state: StateService) { }
ngOnInit(): void { ngOnInit(): void {
this.state.onNewTable.subscribe(() => this.createHistograms()); // this.state.onNewTable.subscribe(() => this.createHistograms());
this.state.onNewTableInfo.subscribe(() => this.createPrototypes()); // this.state.onNewTableInfo.subscribe(() => this.createPrototypes());
} }
createPrototypes(): void { createPrototypes(): void {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -94,6 +94,17 @@ def initialize(): ...@@ -94,6 +94,17 @@ def initialize():
print('LSH done: ' + str(time()-t0)) print('LSH done: ' + str(time()-t0))
return response return response
@app.route('/weights', methods=['POST'])
def weights():
raw_data = orjson.loads(request.data)
parameters = raw_data["labels"]
# Caculate weights
response = weights
return response
@app.route('/update', methods=['POST']) @app.route('/update', methods=['POST'])
def update(): def update():
t0 = time() t0 = time()
......
from distutils.core import setup, Extension from distutils.core import setup, Extension
import numpy.distutils.misc_util import numpy.distutils.misc_util
c_ext = Extension('_lsh', ['../../lsh-fast/_lsh.cpp', '../../lsh-fast/lsh.cpp']) c_ext = Extension('_lsh', ['../lsh-fast/_lsh.cpp', '../lsh-fast/lsh.cpp'])
setup( setup(
name='lsh', name='lsh',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment