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 @@
</div>
</div>
<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>
</div>
</div>
......
......@@ -28,7 +28,7 @@ export class OverviewWindowComponent implements OnInit {
async initializePlot() {
this.state.queryWindow = undefined;
this.debugClicked();
// this.debugClicked();
this.data = [];
for (let i = 0; i < this.state.rawData.values.length; i++) {
this.data.push([this.state.rawData.index[i], this.state.rawData.values[i]]);
......@@ -155,6 +155,8 @@ export class OverviewWindowComponent implements OnInit {
return;
}
this.state.querySelectionMode = false;
await this.debugClicked();
return;
const xyInformation = zingchart.exec('zingchart-ng-1', 'getxyinfo', {
x: clickData.x,
y: clickData.y
......
......@@ -12,8 +12,8 @@ export class TableOverviewComponent implements OnInit {
constructor(private state: StateService) { }
ngOnInit(): void {
this.state.onNewTable.subscribe(() => this.createHistograms());
this.state.onNewTableInfo.subscribe(() => this.createPrototypes());
// this.state.onNewTable.subscribe(() => this.createHistograms());
// this.state.onNewTableInfo.subscribe(() => this.createPrototypes());
}
createPrototypes(): void {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -94,6 +94,17 @@ def initialize():
print('LSH done: ' + str(time()-t0))
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'])
def update():
t0 = time()
......
from distutils.core import setup, Extension
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(
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