mirror of
https://gitlab.com/then-try-this/samplebrain.git
synced 2025-05-11 10:07:21 +00:00
commented out unused and confusing old code - fixes: #28
This commit is contained in:
parent
46ab0a131a
commit
c4499ce7c9
@ -228,6 +228,7 @@ u32 brain::rev_search(const block &target, const search_params ¶ms) {
|
||||
return furthest_index;
|
||||
}
|
||||
|
||||
/*
|
||||
// really slow - every to every comparison of blocks calculating average distance
|
||||
double brain::calc_average_diff(search_params ¶ms) {
|
||||
double diff=0;
|
||||
@ -261,6 +262,7 @@ void brain::build_synapses_thresh(search_params ¶ms, double thresh) {
|
||||
++outer_index;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
void brain::build_synapses_fixed(search_params ¶ms) {
|
||||
//m_average_error = calc_average_diff(params)*thresh;
|
||||
|
@ -62,8 +62,8 @@ public:
|
||||
u32 rev_search(const block &target, const search_params ¶ms);
|
||||
|
||||
// synaptic search
|
||||
double calc_average_diff(search_params ¶ms);
|
||||
void build_synapses_thresh(search_params ¶ms, double threshold);
|
||||
// double calc_average_diff(search_params ¶ms);
|
||||
// void build_synapses_thresh(search_params ¶ms, double threshold);
|
||||
void build_synapses_fixed(search_params ¶ms);
|
||||
u32 search_synapses(const block &target, search_params ¶ms);
|
||||
double get_current_error() { return m_current_error; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user