Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
cec56971
Commit
cec56971
authored
Feb 13, 2020
by
Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added rfc for automatic clustering based on agi data
parent
96eceb9e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
swagger.yml
.../community-detection-microservice/app/configs/swagger.yml
+11
-0
insert_agi_locations.py
...munity-detection-microservice/app/insert_agi_locations.py
+4
-1
functions.py
...ub/community-detection-microservice/app/rest/functions.py
+9
-0
No files found.
src/data-hub/community-detection-microservice/app/configs/swagger.yml
View file @
cec56971
...
...
@@ -142,6 +142,17 @@ paths:
description
:
"
Successful
operation"
schema
:
$ref
:
"
#/definitions/UserClusterGraphCollection"
/rfc/run
:
post
:
operationId
:
"
rest.functions.run_agi_clustering_and_graph_creation"
tags
:
-
"
Remote
function
calls"
summary
:
"
Insert
locations
from
AGI,
create
clusters
for
starting
time
and
location
layers,
create
graphs
for
the
location
clusters"
parameters
:
[]
responses
:
204
:
description
:
"
Successful
operation"
definitions
:
Location
:
...
...
src/data-hub/community-detection-microservice/app/insert_agi_locations.py
View file @
cec56971
...
...
@@ -6,9 +6,12 @@ if os.path.exists(modules_path):
from
db.repository
import
Repository
if
__name__
==
"__main__"
:
def
insert_locations
()
:
repo
=
Repository
()
locs
=
repo
.
get_agi_locations
()
for
l
in
locs
:
repo
.
add_location
(
l
)
if
__name__
==
"__main__"
:
insert_locations
()
src/data-hub/community-detection-microservice/app/rest/functions.py
0 → 100644
View file @
cec56971
import
insert_agi_locations
import
run_clustering
import
create_user_graphs
def
run_agi_clustering_and_graph_creation
():
insert_agi_locations
.
insert_locations
()
run_clustering
.
run_location_clustering
()
run_clustering
.
run_time_clustering
()
create_user_graphs
.
create_graphs_for_location_clusters
()
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