microsoft / microsoft/FLAML

tune.uniform upper bound included

Open
#980 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
4.4k
Forks
565
Avg merge
5d 8m
Merged PRs (30d)
17

Description

When sampling from `tune.uniform(0, 1)`, I got a 1. According to its [docstring](https://github.com/microsoft/FLAML/blob/7f9402b8fd64f25e8f95d342fefc8eea1c006f2a/flaml/tune/sample.py#L535), uniform is supposed to behave like `numpy.random.uniform`. According to the latest [docs](https://numpy.org/doc/stable/reference/random/generated/numpy.random.uniform.html) of the `numpy`, however, `high` should be excluded.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.