Skip to content

Commit

Permalink
Update godoc comment of AppendTrial
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Mar 11, 2020
1 parent 1a0fd0b commit 0e11a80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions study.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ type Study struct {
// This is an EXPERIMENTAL API and may be changed in the future.
// Currently EnqueueTrial only accepts internal representations.
// This means that you need to encode categorical parameter to its index number.
// Furthermore, please caution that there is a concurrency problem in RDB storage
// like https://github.com/optuna/optuna/pull/1014.
func (s *Study) EnqueueTrial(internalParams map[string]float64) error {
systemAttrs := make(map[string]string, 8)
paramJSONBytes, err := json.Marshal(internalParams)
Expand Down

0 comments on commit 0e11a80

Please sign in to comment.