Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 <string> | |
#include <iostream> | |
#include <iomanip> | |
#include <random> | |
#include <openssl/sha.h> | |
inline std::string sha256(const std::string str) | |
{ | |
unsigned char hash[SHA256_DIGEST_LENGTH+1]; |
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 <vector> | |
#include <algorithm> | |
#include <chrono> | |
#include <random> | |
#include <cstdint> | |
#include <cassert> | |
// Banchmarking library | |
#include <hayai/hayai.hpp> |
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 <vector> | |
#include <algorithm> | |
#include <chrono> | |
#include <random> | |
#include <cstdint> | |
#include <cassert> | |
// Banchmarking library | |
#include <hayai/hayai.hpp> |
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 <fstream> | |
#include <tuple> | |
#include <vector> | |
#include <iostream> | |
int main() | |
{ | |
using vec2d = std::tuple<float, float>; | |
std::ifstream in("input.txt"); | |
float x, y; |
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
void c1() | |
{ | |
//=========Macro generated from canvas: c1/Canvas | |
//========= (Sat Nov 16 10:57:34 2019) by ROOT version 6.18/04 | |
gStyle->SetCanvasPreferGL(kTRUE); | |
TCanvas *c1 = new TCanvas("c1", "Canvas",10,570,700,500); | |
gStyle->SetOptStat(0); | |
c1->Range(-1.006644,-1.180079,1.006644,1.180079); |
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 <Etaler/Etaler.hpp> | |
#include <Etaler/Backends/CPUBackend.hpp> | |
//#include <Etaler/Backends/OpenCLBackend.hpp> | |
#include <Etaler/Algorithms/TemporalMemory.hpp> | |
#include <Etaler/Encoders/Scalar.hpp> | |
using namespace et; | |
#include <vector> | |
#include <chrono> | |
#include <random> |
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 <htm/algorithms/TemporalMemory.hpp> | |
#include <htm/encoders/ScalarEncoder.hpp> | |
using namespace htm; | |
float benchmarkTemporalMemory(const std::vector<UInt>& out_shape, const std::vector<SDR>& x, size_t num_epoch) | |
{ | |
TemporalMemory tm; | |
tm.initialize(out_shape, 16, 2, 0.21, 0.1, 1, 1024, 0.1, 0.1, 0, 42, 1, 1024, false); | |
// sp.permanences_ = sp.permanences_.cast(DType::Half); |