Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LEADS
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Abd Errahmane Kiouche
LEADS
Commits
8a3a0375
Commit
8a3a0375
authored
5 years ago
by
Abd Errahmane Kiouche
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
7ee74ee5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Anomaly_Detection_Phase/cluster.h
+28
-0
28 additions, 0 deletions
src/Anomaly_Detection_Phase/cluster.h
with
28 additions
and
0 deletions
src/Anomaly_Detection_Phase/cluster.h
0 → 100644
+
28
−
0
View file @
8a3a0375
//
// Created by Abderrahmane on 9/10/2018.
//
#ifndef GRAPH_CLUSTER_H
#define GRAPH_CLUSTER_H
#include
<cstdint>
#include
<vector>
#include
<unordered_map>
#include
"graph.h"
namespace
std
{
vector
<
vector
<
double
>>
construct_centroid_vectors
(
unordered_map
<
uint32_t
,
vector
<
double
>>
&
train_graph_vectors
,
const
vector
<
vector
<
uint32_t
>>
&
clusters
);
void
detect_anomalies
(
uint32_t
&
gid
,
const
graph_vector
&
gv
,
vector
<
int
>&
cluster_map
,
vector
<
double
>&
anomaly_scores
,
const
vector
<
vector
<
double
>>
&
centroid_vectors
,
vector
<
uint32_t
>&
cluster_sizes
,
const
double
&
anomaly_threshold
,
const
vector
<
double
>&
cluster_thresholds
);
}
#endif //GRAPH_CLUSTER_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment