This file contains 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> | |
#include <thread> | |
#include <vector> | |
#include <unistd.h> // For sleep() | |
using namespace std; | |
void blaat(unsigned int t) { | |
cout << "Received param: " << t << endl; | |
} |
This file contains 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
import pickle | |
import numpy as np | |
nClasses = 13 | |
with open("preds.pkl", "rb") as f: | |
true, pred = pickle.load(f) | |
# Overall accuracy | |
oa = np.sum(np.count_nonzero(true == pred))/true.size |
This file contains 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
#define _USE_MATH_DEFINES | |
#include <cmath> | |
#include <complex> | |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
// Based on the excellent article from Neil Robertson |