AI Task Score & Machine Selection Algorithm
AI Task Score
AI_TASK_SCORE = 1 + min(1.0, (Σ(task_weight_i × success_i) / TASK_WEIGHT_NORM))Weighted Scoring Algorithm for Selecting Machines
final_score = (
w_stake × normalized_stake +
w_uptime × normalized_uptime +
w_latency × (1 - normalized_latency)
)
normalized_stake = (stake_i - stake_min) / (stake_max - stake_min)
normalized_uptime = (uptime_i - uptime_min) / (uptime_max - uptime_min)
normalized_latency = (latency_i - latency_min) / (latency_max - latency_min)
Top_K = sorted(machines, key=final_score, reverse=True)[:K]
probabilities = [score / sum(scores in Top_K)]
selected_machine = random.choices(Top_K, weights=probabilities, k=1)Selection Strategy: Top K + Probabilistic Sampling
Last updated

