| 342 | {} |
| 343 | |
| 344 | void perform_test ( |
| 345 | ) |
| 346 | { |
| 347 | print_spinner(); |
| 348 | // test with dense vectors |
| 349 | { |
| 350 | typedef matrix<double,3,1> node_vector_type; |
| 351 | typedef matrix<double,2,1> edge_vector_type; |
| 352 | typedef matrix<double,0,1> vector_type; |
| 353 | typedef dlib::graph<node_vector_type, edge_vector_type>::kernel_1a_c graph_type; |
| 354 | |
| 355 | dlib::array<graph_type> samples; |
| 356 | std::vector<std::vector<bool> > labels; |
| 357 | |
| 358 | make_data<graph_type>(samples, labels); |
| 359 | make_data<graph_type>(samples, labels); |
| 360 | make_data<graph_type>(samples, labels); |
| 361 | make_data<graph_type>(samples, labels); |
| 362 | |
| 363 | |
| 364 | test1<node_vector_type,edge_vector_type,vector_type>(samples, labels); |
| 365 | } |
| 366 | print_spinner(); |
| 367 | // test with dense vectors and sparse vectors together |
| 368 | { |
| 369 | typedef matrix<double,3,1> node_vector_type; |
| 370 | typedef matrix<double,2,1> edge_vector_type; |
| 371 | typedef std::map<unsigned long,double> vector_type; |
| 372 | typedef dlib::graph<node_vector_type, edge_vector_type>::kernel_1a_c graph_type; |
| 373 | |
| 374 | dlib::array<graph_type> samples; |
| 375 | std::vector<std::vector<bool> > labels; |
| 376 | |
| 377 | make_data<graph_type>(samples, labels); |
| 378 | make_data<graph_type>(samples, labels); |
| 379 | make_data<graph_type>(samples, labels); |
| 380 | make_data<graph_type>(samples, labels); |
| 381 | |
| 382 | |
| 383 | test1<node_vector_type,edge_vector_type,vector_type>(samples, labels); |
| 384 | } |
| 385 | print_spinner(); |
| 386 | // test with sparse vectors |
| 387 | { |
| 388 | typedef std::vector<std::pair<unsigned long,double> > vector_type; |
| 389 | typedef std::map<unsigned long, double> edge_vector_type; |
| 390 | typedef std::map<unsigned long, double> node_vector_type; |
| 391 | typedef dlib::graph<node_vector_type, edge_vector_type>::kernel_1a_c graph_type; |
| 392 | |
| 393 | dlib::array<graph_type> samples; |
| 394 | std::vector<std::vector<bool> > labels; |
| 395 | |
| 396 | make_data_sparse<graph_type>(samples, labels); |
| 397 | make_data_sparse<graph_type>(samples, labels); |
| 398 | make_data_sparse<graph_type>(samples, labels); |
| 399 | make_data_sparse<graph_type>(samples, labels); |
| 400 | |
| 401 |
nothing calls this directly
no test coverage detected