FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
NEToolKit/NEToolKitExamples/src/utils.h at master · CBenoit/NEToolKit · GitHub
This repository was archived by the owner on Jul 1, 2021. It is now read-only.
CBenoit
/
NEToolKit
Public archive
Notifications
You must be signed in to change notification settings
Fork
2
Star
4
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
NEToolKit
/
NEToolKitExamples
/
src
/
utils.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (21 loc) · 765 Bytes
Breadcrumbs
NEToolKit
/
NEToolKitExamples
/
src
/
utils.h
Copy path
File metadata and controls
31 lines (21 loc) · 765 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
pragma
once
#
include
<
netkit/neat/species.h
>
struct
exp_stats
{
size_t
number_of_generations;
size_t
number_of_neurons;
size_t
number_of_links;
double
best_fitness_ever;
bool
success;
};
//
--- for novelty only ---
struct
xor_position
{
double
novelty_distance
(
const
xor_position& other)
const
;
std::vector<
double
> values;
};
netkit::serializer&
operator
<<(netkit::serializer& ser,
const
xor_position& xp);
netkit::deserializer&
operator
>>(netkit::deserializer& des, xor_position& xp);
//
------------------------
void
wait_user
();
void
print_species_stats
(
const
netkit::species& spec);
double
compute_standard_deviation
(
unsigned
int
number_of_values,
double
average, std::function<
double
(
size_t
)> getter);
void
print_exp_stats
(exp_stats& stats);
Back
|
FazBrowse Home
|
New Git URL