d4l3k/go-bayesopt

How to we constraints the X

yuxiaoba opened this issue · 0 comments

I have define this

	X := bayesopt.UniformParam{
		Max: 5,
		Min: 1,
	}
	o := bayesopt.New(
		[]bayesopt.Param{
			X,
		},
	)
	x, y, err := o.Optimize(func(params map[bayesopt.Param]float64) float64 {
		return ……
	})

I want to the minimal X is 1,but in the result, it perfroms map[{ 5 1}:0] 0
How could I contrain the X > min?