-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
43 lines (31 loc) · 1.07 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include<iostream>
#include<tuple>
#include<model.h>
#include<sampling.h>
#include<data.h>
using namespace rbm;
int main(void){
Model calc_rbm(4, 2);
Sampling sampler;
// DataSet data_set = sampler.create_data_set(calc_rbm, 10, 1);
DataSet data_set = sampler.create_data_set(calc_rbm, 100, 1);
for(const auto& item: data_set){
std::cout << item.transpose() << std::endl;
}
// std::cout << "Hello World" << std::endl;
// std::cout << calc_rbm.visible_dim << " " << calc_rbm.hidden_dim << std::endl;
// Sampling sampler;
// DataSet sample = sampler.create_data_set(calc_rbm, 5, 5);
// for(const auto& item: sample){
// std::cout<<item.transpose() << std::endl;
// }
// std::cout<<"####可視変数(4次元)####" << std::endl;
// auto [data1, data2] = sampler.block_gibbs_sampling(sample, calc_rbm, 5);
// for(const auto& item: data1){
// std::cout<<item.transpose() << std::endl;
// }
// std::cout<<"####隠れ変数(2次元)####" << std::endl;
// for(const auto& item: data2){
// std::cout<<item.transpose() << std::endl;
// }
}