This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def accuracy_multilabel(pred, ground_truth): | |
n = len(pred) | |
score = 0.0 | |
for i in range(0,n): | |
d = {} | |
for label in pred[i]: | |
d[label] = 1 | |
for label in ground_truth[i]: | |
if label in d: | |
d[label] = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int getServersCount(float prob, float load) | |
{ | |
long double B = 1.0; | |
int m = 1; | |
while(true) { | |
B = 1 + B*m/load; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* The Single-Server Queue System */ | |
/* External definitions for single-server queue system */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include "rand.h" /* header file for random-number generator. */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = [ | |
{ | |
"Module": "BT1101", | |
"Title": "Introduction to Business Analytics\nModular Credits = 4", | |
"Sem I,\n 1 Aug - 3 Dec 2016": "OH Hyelim\nGrp 1: Thu 900-1200 RMI-SR1\nExam: 29 NOV 2016 Evening", | |
"Sem II,\n 9 Jan - 6 May 2017": "-" | |
}, | |
{ | |
"Module": "BT2101", | |
"Title": "IT and Decision Making\nModular Credits = 4", |