Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BSD
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chengshuyao
BSD
Commits
a21e2bfa
Commit
a21e2bfa
authored
Dec 15, 2025
by
chengshuyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug minimum sample = 64
parent
08ef141d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/BSD.h
+6
-6
src/BSD_top.h
+1
-1
No files found.
src/BSD.h
View file @
a21e2bfa
...
...
@@ -26,8 +26,8 @@ public:
mask
=
new
bool
[
parameter_input_bit_width
];
};
~
BDD_node
(){
//
arr_delete ( which_root_node_all );
//arr_del
arr_delete ( mask );
arr_delete
(
which_root_node_all
);
arr_delete
(
mask
);
};
};
...
...
@@ -38,7 +38,7 @@ public:
mask
=
new
bool
[
parameter_input_bit_width
];
}
~
BDD_node_mask
(){
//
arr_delete (mask);
arr_delete
(
mask
);
}
};
class
BDD_class
{
...
...
@@ -249,12 +249,12 @@ public:
int
BDD_class
::
BSD_samples_train_each_layer
(){
int
BSD_samples_train
;
if
(
total_finish_weight
/
((
pow
(
2
.
0
,
20
)
*
how_many_start_nodes
))
>
0
.
9999999999
){
BSD_samples_train
=
10
;
BSD_samples_train
=
64
;
if
(
total_finish_weight
/
((
pow
(
2
.
0
,
20
)
*
how_many_start_nodes
))
>
1
){
BSD_samples_train
=
2
;
BSD_samples_train
=
64
;
}
}
else
{
BSD_samples_train
=
max
(
4
,
min
(
int
(
total_sample_max
*
(
1
-
total_finish_weight
/
(
pow
(
2
.
0
,
20
)
*
how_many_start_nodes
))),
parameter_max_samples
-
1
));
BSD_samples_train
=
max
(
6
4
,
min
(
int
(
total_sample_max
*
(
1
-
total_finish_weight
/
(
pow
(
2
.
0
,
20
)
*
how_many_start_nodes
))),
parameter_max_samples
-
1
));
}
cout
<<
"BSD train samples: "
<<
BSD_samples_train
<<
endl
;
return
BSD_samples_train
;
...
...
src/BSD_top.h
View file @
a21e2bfa
...
...
@@ -10,7 +10,7 @@ extern const int parameter_max_orders = 1;
//算法的parameter Algorithm_parameter
extern
const
int
parameter_multi_output_index
=
0
;
//BSD从第几层开始化简,前面若干层展开序确定
extern
const
int
parameter_max_BDD_width
=
32000
;
//BSD每一层最多多少个节点
extern
const
int
parameter_max_BDD_width
=
32000
0
;
//BSD每一层最多多少个节点
int
parameter_early_stop_depth
=
parameter_input_bit_width
;
//BSD到第几层终止,输出此时的不准确BSD
int
parameter_early_stop_split_nodes
=
1000000
;
//BSD每一层最多多少个节点
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment