MCPcopy Index your code
hub / github.com/Chain123/Meta-HAR

github.com/Chain123/Meta-HAR @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
95 symbols 187 edges 7 files 23 documented · 24% 1 cross-repo links updated 4y ago★ 332 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Meta-HAR

Meta-HAR: Federated Representation Learning for Human Activity Recognition



<a href="https://dl.acm.org/doi/pdf/10.1145/3442381.3450006"><strong>Paper published in TheWebConf 2021 </strong></a>

Dataset

Details in ./data_process/readme.md

  1. For collected dataset: sh cd data_process python feature_extraction.py --in_dir 'dir stores the original txt data' --out_dir 'dir which is used to store the pickle data' The feature_extraction.py generates pickle files and the trans_dict_collect.pickle file.

  2. For processing of the HHAR dataset please refer to: https://github.com/yscacaca/HHAR-Data-Process. To run on public dataset for yourself, make the dataset to have the same format as mentioned in the ./data_process/readme.md

Run

  1. data process as mentioned above.
  2. Run Meta-HAR with default hyper-parameters.
    python Central.py   # for central model. 
    python meta-har.py  # for meta-har

Note: Configure your own data and output dirs

Others

To run other baselines: 1. Reptile: Change the norm_embed to norm_cce in the Meta-HAR and remove fine-tune. 2. Meta-HAR-CE: Use "target" instead of "target_t" in fine-tune.

TODO

Processing code for the HHAR and the USC-HAD datasets.

Contact

Chenglin Li - ch11@ualberta.ca

Core symbols most depended-on inside this repo

train
called by 8
met-har.py
get_model_weights
called by 5
reptile.py
get_model_weights
called by 5
met-har.py
assign_new_weights
called by 4
reptile.py
train
called by 4
reptile.py
test
called by 4
reptile.py
assign_new_weights
called by 4
met-har.py
load_pickle
called by 2
reptile.py

Shape

Method 52
Function 29
Class 14

Languages

Python100%

Modules by API surface

met-har.py22 symbols
utils.py16 symbols
reptile.py16 symbols
har_model.py16 symbols
data_process/feature_extraction.py9 symbols
data_loader.py8 symbols
Central.py8 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add Meta-HAR \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact