mirror of
https://gitlab.com/then-try-this/samplebrain.git
synced 2025-05-12 10:37:20 +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;
|
return furthest_index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
// really slow - every to every comparison of blocks calculating average distance
|
// really slow - every to every comparison of blocks calculating average distance
|
||||||
double brain::calc_average_diff(search_params ¶ms) {
|
double brain::calc_average_diff(search_params ¶ms) {
|
||||||
double diff=0;
|
double diff=0;
|
||||||
@ -261,6 +262,7 @@ void brain::build_synapses_thresh(search_params ¶ms, double thresh) {
|
|||||||
++outer_index;
|
++outer_index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
void brain::build_synapses_fixed(search_params ¶ms) {
|
void brain::build_synapses_fixed(search_params ¶ms) {
|
||||||
//m_average_error = calc_average_diff(params)*thresh;
|
//m_average_error = calc_average_diff(params)*thresh;
|
||||||
|
@ -62,8 +62,8 @@ public:
|
|||||||
u32 rev_search(const block &target, const search_params ¶ms);
|
u32 rev_search(const block &target, const search_params ¶ms);
|
||||||
|
|
||||||
// synaptic search
|
// synaptic search
|
||||||
double calc_average_diff(search_params ¶ms);
|
// double calc_average_diff(search_params ¶ms);
|
||||||
void build_synapses_thresh(search_params ¶ms, double threshold);
|
// void build_synapses_thresh(search_params ¶ms, double threshold);
|
||||||
void build_synapses_fixed(search_params ¶ms);
|
void build_synapses_fixed(search_params ¶ms);
|
||||||
u32 search_synapses(const block &target, search_params ¶ms);
|
u32 search_synapses(const block &target, search_params ¶ms);
|
||||||
double get_current_error() { return m_current_error; }
|
double get_current_error() { return m_current_error; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user