Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vig
Sublinear Algorithms for VA
pseudo
Commits
706ae3c3
Commit
706ae3c3
authored
Jul 20, 2020
by
Kruyff,D.L.W. (Dylan)
Browse files
Don't show labeled windows in samples
parent
84f4d646
Changes
2
Hide whitespace changes
Inline
Side-by-side
AngularApp/prototype/src/app/labeling-window/labeling-window.component.ts
View file @
706ae3c3
...
...
@@ -43,6 +43,7 @@ export class LabelingWindowComponent implements OnInit {
public
getTopKSimilar
()
{
this
.
labels
=
[];
let
abort
=
false
;
if
(
!
this
.
windowSimilarity
)
{
return
;
}
...
...
@@ -51,15 +52,19 @@ export class LabelingWindowComponent implements OnInit {
const
keys
=
Object
.
keys
(
this
.
windowSimilarity
).
map
(
a
=>
Number
(
a
)).
sort
((
a
,
b
)
=>
b
-
a
);
for
(
const
key
of
keys
)
{
const
windows
=
this
.
windowSimilarity
[
key
];
const
nrOfWindows
=
windows
.
length
;
if
(
nrOfWindows
>=
k
)
{
const
temp
=
windows
.
slice
(
0
,
k
).
map
((
index
)
=>
({
index
,
frequency
:
100
*
key
/
this
.
service
.
nrOfTables
}));
topk
=
topk
.
concat
(
temp
);
for
(
const
index
of
windows
)
{
if
(
this
.
service
.
labels
[
index
]
!==
undefined
)
{
continue
;
}
topk
.
push
({
index
,
frequency
:
100
*
key
/
this
.
service
.
nrOfTables
});
k
-=
1
;
if
(
k
<
1
)
{
abort
=
true
;
break
;
}
}
if
(
abort
)
{
break
;
}
else
{
k
-=
nrOfWindows
;
const
temp
=
windows
.
map
(
index
=>
({
index
,
frequency
:
100
*
key
/
this
.
service
.
nrOfTables
}));
topk
=
topk
.
concat
(
temp
);
}
}
this
.
topk
=
topk
;
...
...
Flaskserver/.idea/workspace.xml
View file @
706ae3c3
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"556080ba-825c-4b55-a92a-867a4df4fb32"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/app.component.html"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/app.component.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/app.module.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/app.module.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/cache.service.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/cache.service.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/labeling-window/labeling-window.component.css"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/labeling-window/labeling-window.component.css"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/labeling-window/labeling-window.component.html"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/labeling-window/labeling-window.component.html"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/labeling-window/labeling-window.component.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/labeling-window/labeling-window.component.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/table-overview/table-overview.component.css"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../AngularApp/prototype/src/app/table-overview/table-overview.component.css"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/main.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/main.py"
afterDir=
"false"
/>
</list>
<list
default=
"true"
id=
"556080ba-825c-4b55-a92a-867a4df4fb32"
name=
"Default Changelist"
comment=
""
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment