Skip to content

Commit

Permalink
Force bin json (#2456)
Browse files Browse the repository at this point in the history
* Fix bug where small values of max_bin cause crash.

* Revert "Fix bug where small values of max_bin cause crash."

This reverts commit fe5c8e2.

* Add json files for forced bin example.

* Add second json file.
  • Loading branch information
btrotta authored and guolinke committed Sep 26, 2019
1 parent a0d7313 commit e771538
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/regression/forced_bins.json
@@ -0,0 +1,10 @@
[
{
"feature": 0,
"bin_upper_bound": [ 0.3, 0.35, 0.4 ]
},
{
"feature": 1,
"bin_upper_bound": [ -0.1, -0.15, -0.2 ]
}
]
6 changes: 6 additions & 0 deletions examples/regression/forced_bins2.json
@@ -0,0 +1,6 @@
[
{
"feature": 0,
"bin_upper_bound": [ 0.19, 0.39, 0.59, 0.79 ]
}
]

1 comment on commit e771538

@beiyouwangzi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the numbers of bin_upper_bound will change according to the different datasets? If so, what's the basis of values?

Please sign in to comment.