Fix timeout observations, drop the last-rx feature and evict weak paths
- Record delivery observations with the path of the attempt the ACK belongs to, and skip ambiguous ACKs, so a late direct ACK is not learned as a flood delivery. - Remove secondsSinceLastRx from the timeout model: it measured time since any companion frame, which was near zero at train and predict. - When a contact's path history is full, evict the lowest-scoring path instead of silently dropping new discoveries.
This commit is contained in:
1 parent
6bc6143c4e
commit
82dcab1d92
8 files changed
+70
-31
No files matched your search
@@ -2,7 +2,6 @@ class DeliveryObservation {
|
||||
final String contactKey;
|
||||
final int pathLength;
|
||||
final int messageBytes;
|
||||
final int secondsSinceLastRx;
|
||||
final bool isFlood;
|
||||
final int deliveryMs;
|
||||
final DateTime timestamp;
|
||||
@@ -11,7 +10,6 @@ class DeliveryObservation {
|
||||
required this.contactKey,
|
||||
required this.pathLength,
|
||||
required this.messageBytes,
|
||||
required this.secondsSinceLastRx,
|
||||
required this.isFlood,
|
||||
required this.deliveryMs,
|
||||
required this.timestamp,
|
||||
@@ -22,7 +20,6 @@ class DeliveryObservation {
|
||||
'contact_key': contactKey,
|
||||
'path_length': pathLength,
|
||||
'message_bytes': messageBytes,
|
||||
'seconds_since_last_rx': secondsSinceLastRx,
|
||||
'is_flood': isFlood,
|
||||
'delivery_ms': deliveryMs,
|
||||
'timestamp': timestamp.toIso8601String(),
|
||||
@@ -34,7 +31,6 @@ class DeliveryObservation {
|
||||
contactKey: json['contact_key'] as String,
|
||||
pathLength: json['path_length'] as int,
|
||||
messageBytes: json['message_bytes'] as int,
|
||||
secondsSinceLastRx: json['seconds_since_last_rx'] as int? ?? 0,
|
||||
isFlood: json['is_flood'] as bool? ?? false,
|
||||
deliveryMs: json['delivery_ms'] as int,
|
||||
timestamp: DateTime.parse(json['timestamp'] as String),
|
||||
|
||||
Reference in new issue
Block a user