Coder Social home page Coder Social logo

epod_tmp's Introduction

EPOD

1. Architecture Introduction

image-20230213194924216

  • Components: Edge devices and Edge nodes
  • Workflow:
    • Each device collect vector.
    • Each device generate fingerprints for each vector and find outliers
    • Upload fingerprint to the nearest node.
    • Nodes collect fingerprints from all its devices.
    • Interacts with all nodes on the network and derive the support devices for all its edge devices
    • Based on the information from edge node, each device ask its dependent devices for necessary vector
    • After receiving all vector, run the rest streaming detecting algorithm

2. Datasets

#1 Original Datasets

Name # vector points # Dim k r s w Size Link
GAU(gauss) 1M 1 50 0.028 5000 100000 7.74MB link
STK 1.05M 1 50 0.45 5000 100000 7.57MB link
TAO 0.58M 3 50 1.9 500 10000 10.7MB link
HPC 1M 7 50 6.5 5000 100000 28.4MB link
GAS 0.93M 10 50 2.75 5000 100000 70.7MB link
EM 1M 16 50 115 5000 100000 119MB link
FC 1M 55 50 525 500 10000 72.2MB link

#2 Extreme cases

  • Cluster the datasets, and assign the different clusters to different devices (case 1)

  • Cluster the datasets, and distribute the same cluster to different devices (case 2)

#3 Normal cases

  • Cluster the datasets, and mix a% vector of each cluster then assign the different clusters to different devices

  • Expected result:

    • No transfer between devices in case 1

    • All devices exchange vector in case 2

    • Other cases lie in between

#4 Dataset Path

original datasets: \NETS\Datasets

vector with device ID: \NETS\Datasets\DeviceId _data

vector with timestamp: \NETS\Datasets\Timestamp_data

3. How to run

注意:若每次重新准备数据,需要删除DeviceId _data和Timestamp_data下的文件夹

run Original Datasets

  • 修改 NETS\src\utils\Constants.java的参数

image-20230318190809628

  • 运行 \utils\PrepareDatasets.java (for the first time only)
  • 运行 \test\testNetwork.java

run K_means dataset and Random Data(self-generated clustering vector)

  • 生成k_means的datasets:

    • \utils\k_means_clustering.py:修改下图参数跑,每次跑要删除之前的目录不然会报错

      image-20230318201252601

  • 生成random cluster vector

    • utils\GenerateRandomClusteringData.java 修改参数生成特定的cluster
    • 现在统一命名成RC,后期可根据需要修改
    • constants.java 中的参数也要对应修改

image-20230318210024640

image-20230318205753984

  • 接着运行run Original Datasets下的指令

4 NETs 需要确认的参数

  • subdim

  • 每个维度的最大值最小值 this.maxValues, this.minValues

    • random cluster需要运行 utils\decideMaxMin.java,再修改NewNETS中的值
  • 维度的优先级:this.priorityList

epod_tmp's People

Contributors

xinyingzheng00 avatar fffffeixin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.