LCS-FS commited on
Commit
6960ab5
·
verified ·
1 Parent(s): 325ca90

Upload 3 files

Browse files
huggingface_dataset_card.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+
5
+ # RAMPART-FL: A Dataset for Offline Reinforcement Learning in Federated Participant Selection
6
+
7
+ ## Dataset Summary
8
+
9
+ This repository contains a dataset package generated by the **RAMPART-FL** framework, a system for researching Reinforcement Learning (RL) based participant selection in Federated Learning (FL) for intrusion detection. The data originates from a **400-round, 25-client simulation** where an RL agent used a Multi-Criteria strategy to select clients.
10
+
11
+ This package provides two distinct files to serve different research needs:
12
+ 1. **`rampart_fl_400r_25c_multicriteria_event_log.csv`**: A detailed, event-driven log that is ideal for in-depth analysis, custom feature engineering, and understanding the step-by-step behavior of the FL process.
13
+ 2. **`rampart_fl_400r_25c_multicriteria_rl_transitions.csv`**: A pre-processed, analysis-ready dataset of `(State, Action, Reward, Next_State)` tuples that has been enriched with contextual client and reward information.
14
+
15
+ The scripts used to generate these files from the raw experimental output are available in the associated GitHub repository.
16
+
17
+ ## Associated Research
18
+
19
+ This dataset is a key contribution of a master's thesis focused on creating robust and adaptive security solutions for IoT networks using Federated Learning.
20
+
21
+ * **Thesis & Framework:** [RAMPART-FL on GitHub](https://github.com/LCS-FS/RAMPART-FL)
22
+ * **Hugging Face Dataset:** [RAMPART-FL on Hugging Face](https://huggingface.co/datasets/LCS-FS/RAMPART-FL)
23
+
24
+ ---
25
+
26
+ ## File 1: The Refined Event Log (`rampart_fl_400r_25c_multicriteria_event_log.csv`)
27
+
28
+ This file provides a detailed log of all relevant events that occurred during the simulation. It is best suited for researchers who need to perform detailed analysis beyond standard RL transition data.
29
+
30
+ The dataset is structured in a sparse, event-driven format. This means that for any given row, **only the columns relevant to its `event_type` will contain data**. All other columns in that row will be empty.
31
+
32
+ ### Event Log Columns
33
+
34
+ | Column Name | Description | Data Type |
35
+ | :--- | :--- | :--- |
36
+ | **Core Identifiers** | | |
37
+ | `elapsed_seconds_since_start` | Time in seconds since the simulation began. | Float |
38
+ | `server_round` | The FL training round number. | Integer |
39
+ | `event_type` | The type of event being logged (`selection_info`, `learning_update`, etc.). | String |
40
+ | `client_cid` | The unique identifier for the client. | Integer (Large) |
41
+ | **State, Action & Policy (`selection_info`)** | | |
42
+ | `s_client_state_tuple` | The state vector \(S\) representing the client's condition. | String |
43
+ | `s_was_selected` | The action \(A\) taken by the agent (`1` or `0`). | Integer |
44
+ | `s_available_cids_count`| The number of clients available for selection. | Integer |
45
+ | `s_client_q_value` | The Q-value of the state-action pair from the original agent. | Float |
46
+ | `s_client_selection_prob`| The selection probability from the original agent's policy. | Float |
47
+ | **Reward & Learning (`learning_update`)** | | |
48
+ | `l_state_at_selection` | The state \(S\) for which the reward is being applied. | String |
49
+ | `l_reward_for_action` | The total global reward \(R\) for the round's actions. | Float |
50
+ | `l_reward_*_component` | The different components (performance, fairness, etc.) of the total reward. | Float |
51
+ | **Client Evaluation Metrics (`client_eval_metrics`)**| | |
52
+ | `c_eval_partition_id`| The client's static data partition ID. | Integer |
53
+ | `c_eval_profile_name` | The client's hardware profile name. | String |
54
+ | `c_eval_cores` | Number of CPU cores available to the client. | Integer |
55
+ | `c_eval_f1`, `_accuracy`, etc. | The client's local evaluation performance metrics. | Float |
56
+ | `c_eval_num_samples` | Number of samples in the client's local test set. | Integer |
57
+ | **Client Fit Metrics (`client_fit_metrics`)**| | |
58
+ | `c_fit_time_seconds` | Time taken for the client's local training task. | Float |
59
+ | `c_fit_cpu_percent`| The client's average CPU usage during training. | Float |
60
+
61
+ ---
62
+
63
+ ## File 2: Enriched RL Transitions Dataset (`rampart_fl_400r_25c_multicriteria_rl_transitions.csv`)
64
+
65
+ This file provides a clean, analysis-ready dataset where each row is a complete, enriched `(State, Action, Reward, Next_State)` tuple. It is designed for direct use in most offline RL training libraries and workflows. Contextual columns (like `c_eval_f1`) will only contain data if the `action` for that row was `1`.
66
+
67
+ ### Transitions Dataset Columns
68
+
69
+ | Column | Data Type | Description |
70
+ | :--- | :--- | :--- |
71
+ | **Core Transition** | | |
72
+ | `server_round` | Integer | The server round `N` in which the state was observed and the action was taken. |
73
+ | `client_cid` | String | The unique identifier for the client. |
74
+ | `state` | String | The state vector \(S_t\) representing the client's condition at the start of round `N`. |
75
+ | `action` | Integer | The action \(A_t\) taken for the client: `1` if selected, `0` otherwise. |
76
+ | `reward` | Float | The global reward \(R_{t+1}\) received after the completion of round `N`. |
77
+ | `next_state` | String | The subsequent state vector \(S_{t+1}\) for that same client at the start of round `N+1`. |
78
+ | **Reward Components** | | |
79
+ | `l_reward_performance_component` | Float | The portion of the reward attributed to the global model's performance. |
80
+ | `l_reward_fairness_penalty_component`| Float | The portion of the reward attributed to the fairness penalty. |
81
+ | `l_reward_resource_cost_component`| Float | The portion of the reward attributed to the resource cost of selected clients. |
82
+ | **Client Context (for the round)** | | |
83
+ | `c_eval_profile_name` | String | The client's hardware profile name (e.g., `High-End Edge CPU`). |
84
+ | `c_eval_cores` | Float | Number of CPU cores available to the client (Float due to possible NaNs). |
85
+ | `c_eval_f1` | Float | The client's local F1-score from its evaluation in this round. |
86
+ | `c_eval_num_samples` | Float | Number of samples in the client's local test set. |
87
+ | `c_fit_time_seconds` | Float | Time taken for the client's local training in this round. |
88
+ | `c_fit_cpu_percent`| Float | The client's average CPU usage during training. |
rampart_fl_400r_25c_multicriteria_event_log.csv ADDED
The diff for this file is too large to render. See raw diff
 
rampart_fl_400r_25c_multicriteria_rl_transitions.csv ADDED
The diff for this file is too large to render. See raw diff